.feed-shell {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 30px 28px 70px;
}

.feed-heading,
.feed-filters,
.feed-list,
.feed-empty {
    width: min(100%, 1140px);
}

.feed-heading {
    margin-bottom: 22px;
}

.feed-heading h1 {
    margin: 0 0 9px;

    color: #17211c;

    font-size: clamp(34px, 5vw, 44px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.feed-heading p {
    max-width: 680px;
    margin: 0;

    color: #707b75;

    font-size: 15px;
    line-height: 1.5;
}

.feed-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 16px;
}

.feed-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;
    padding: 0 14px;

    border: 1px solid #dfe6e2;
    border-radius: 999px;

    background: #fff;
    color: #59645e;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    transition:
        border-color .15s ease,
        background .15s ease,
        color .15s ease;
}

.feed-filter:hover {
    border-color: #b9c9c0;
    color: #17211c;
}

.feed-filter.active {
    border-color: #17211c;
    background: #17211c;
    color: #fff;
}

.feed-list {
    display: grid;
    gap: 10px;
}

.feed-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);

    overflow: hidden;

    border: 1px solid #e0e7e3;
    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 1px 2px rgba(20, 35, 27, .025);
}

.feed-card.has-image {
    grid-template-columns: minmax(0, 1fr) 184px;
}

.feed-card-content {
    min-width: 0;
    padding: 17px 20px 18px;
}

.feed-event {
    margin-bottom: 10px;
}

.feed-event-text {
    min-width: 0;

    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;

    color: #7b8580;

    font-size: 13px;
    line-height: 1.35;
}

.feed-event-line {
    min-width: 0;

    display: flex;
    align-items: baseline;
    gap: 6px;

    white-space: nowrap;
    overflow: hidden;
}

.feed-user {
    flex: 0 1 auto;

    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;

    color: #29342e;

    font-weight: 800;
    text-decoration: none;
}

a.feed-user:hover {
    text-decoration: underline;
}

.feed-dot {
    color: #a3aaa6;
}

.feed-kind {
    flex: 0 0 auto;

    color: #159a63;

    font-weight: 750;
}

.feed-card-trip .feed-kind {
    color: #3970b8;
}

.feed-card-news .feed-kind {
    color: #a96719;
}

.feed-card-forum_topic .feed-kind {
    color: #5a667a;
}

.feed-card-garage_car .feed-kind {
    color: #16845a;
}

.feed-event time {
    flex: 0 0 auto;

    color: #959d98;

    font-size: 12px;
    white-space: nowrap;
}

.feed-title {
    display: block;

    max-width: 680px;

    color: #17211c;

    font-size: 19px;
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: -.018em;
    text-decoration: none;
}

.feed-title:hover {
    color: #118d59;
}

.feed-meta {
    margin-top: 6px;

    color: #7b8580;

    font-size: 12.5px;
    line-height: 1.4;
}

.feed-excerpt {
    max-width: 700px;
    margin: 8px 0 0;

    color: #56615b;

    font-size: 14px;
    line-height: 1.5;
}

.feed-image {
    width: 166px;
    height: 108px;

    align-self: center;
    justify-self: end;

    display: block;
    overflow: hidden;

    margin: 12px 14px 12px 0;

    border-radius: 13px;

    background: #edf1ef;
}

.feed-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .2s ease;
}

.feed-card:hover .feed-image img {
    transform: scale(1.025);
}

.feed-empty {
    min-height: 200px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 30px;

    border: 1px dashed #ccd8d1;
    border-radius: 18px;

    background: #fff;

    text-align: center;
}

.feed-empty strong {
    color: #253129;
    font-size: 18px;
}

.feed-empty span {
    color: #7b8680;
    font-size: 14px;
}


@media (max-width: 720px) {

    .feed-shell {
        padding: 28px 16px 52px;
    }

    .feed-heading {
        margin-bottom: 18px;
    }

    .feed-heading h1 {
        font-size: 34px;
    }

    .feed-heading p {
        font-size: 14px;
    }

    .feed-filters {
        flex-wrap: nowrap;
        overflow-x: auto;

        margin-left: -16px;
        margin-right: -16px;
        padding: 0 16px 4px;

        scrollbar-width: none;
    }

    .feed-filters::-webkit-scrollbar {
        display: none;
    }

    .feed-filter {
        flex: 0 0 auto;
    }

    .feed-card.has-image {
        grid-template-columns: minmax(0, 1fr) 112px;
    }

    .feed-card-content {
        padding: 15px 16px 16px;
    }

    .feed-image {
        width: 98px;
        height: 98px;

        margin: 12px 12px 12px 0;

        border-radius: 12px;
    }

    .feed-event-text {
        gap: 10px;
    }

    .feed-event-line {
        gap: 5px;
    }

    .feed-title {
        font-size: 17px;
    }

    .feed-meta {
        font-size: 12px;
    }

    .feed-excerpt {
        display: -webkit-box;
        overflow: hidden;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

}


@media (max-width: 480px) {

    .feed-card.has-image {
        grid-template-columns: minmax(0, 1fr);
    }

    .feed-image {
        width: auto;
        height: 170px;

        justify-self: stretch;

        margin: 0 12px 12px;

        border-radius: 12px;
    }

    .feed-event-text {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

}

.feed-more {
    width: min(100%, 1140px);

    display: flex;
    justify-content: center;

    padding-top: 18px;
}

.feed-more-button {
    min-width: 180px;
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 22px;

    border: 1px solid #d7e0db;
    border-radius: 999px;

    background: #fff;
    color: #243029;

    font-size: 14px;
    font-weight: 800;
    text-decoration: none;

    transition:
        border-color .15s ease,
        background .15s ease,
        color .15s ease;
}

.feed-more-button:hover {
    border-color: #159a63;
    background: #f3fbf7;
    color: #118759;
}


/* =========================================================
   FEED LAYOUT + SIDEBAR
   ========================================================= */

.feed-layout {
    display: grid;
    grid-template-columns: minmax(0, 1140px) 220px;
    gap: 24px;
    align-items: start;
}

.feed-main {
    min-width: 0;
}

.feed-main .feed-list,
.feed-main .feed-empty,
.feed-main .feed-more {
    width: 100%;
}

.feed-sidebar {
    position: sticky;
    top: 88px;
}

.feed-discussions {
    padding: 17px 16px;

    border: 1px solid #e0e7e3;
    border-radius: 18px;

    background: #fff;
}

.feed-discussions-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;

    margin-bottom: 8px;
}

.feed-discussions-head h2 {
    margin: 0;

    color: #17211c;

    font-size: 15px;
    line-height: 1.3;
    font-weight: 850;
    letter-spacing: -.015em;
}

.feed-discussions-head a {
    flex: 0 0 auto;

    color: #159a63;

    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.feed-discussions-list {
    display: grid;
}

.feed-discussion {
    display: block;

    padding: 12px 0;

    border-top: 1px solid #edf1ef;

    text-decoration: none;
}

.feed-discussion:first-child {
    border-top: 0;
}

.feed-discussion-forum {
    display: block;

    margin-bottom: 4px;

    color: #159a63;

    font-size: 10px;
    line-height: 1.3;
    font-weight: 750;
}

.feed-discussion strong {
    display: block;

    color: #28332d;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

.feed-discussion:hover strong {
    color: #118d59;
}

.feed-discussion-meta {
    display: block;

    margin-top: 5px;

    color: #929a96;

    font-size: 10.5px;
    line-height: 1.3;
}


@media (max-width: 1439px) {

    .feed-layout {
        grid-template-columns: minmax(0, 1140px);
    }

    .feed-sidebar {
        display: none;
    }

}
