/**
 * Блок «Новости и статьи» — главная (редизайн)
 */
:root {
    --news-container: 1500px;
    --news-gap-section: 80px;
    --news-card-height: 460px;
    --news-card-media-height: 260px;
    --news-card-radius: 20px;
    --news-color-text: #111827;
    --news-color-muted: #5a616c;
    --news-color-brand: #b04481;
    --news-color-white: #ffffff;
    --news-color-dark: #111827;
    --news-bg-1: #f5f6fb;
    --news-bg-2: #eceef4;
    --news-font: 'Vela Sans', 'Onest', system-ui, -apple-system, sans-serif;
}

.news-main {
    box-sizing: border-box;
    padding: var(--news-gap-section) 16px;
    font-family: var(--news-font);
    color: var(--news-color-text);
}

@media (min-width: 1533px) {
    .news-main {
        padding-left: 0;
        padding-right: 0;
    }
}

.news-main__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    max-width: var(--news-container);
    margin: 0 auto;
}

.news-main__title {
    margin: 0;
    font-size: 52px;
    font-weight: 600;
    line-height: 64px;
    color: var(--news-color-text);
}

.news-main__grid {
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    min-height: var(--news-card-height);
}

.news-main__track {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    gap: 16px;
    min-width: 0;
}

.news-main__track .news-main__card {
    flex: 1 1 0;
}

.news-main__cta {
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 8px;
    background: var(--news-color-brand);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--news-color-white);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.news-main__cta:hover {
    background: var(--redesign-color-brand-hover, #a53976);
    color: var(--news-color-white);
    text-decoration: none;
}

.news-main__card {
    box-sizing: border-box;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    min-width: 0;
    min-height: var(--news-card-height);
    border-radius: var(--news-card-radius);
    background: var(--news-bg-1);
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.35s ease;
}

.news-main__card:hover {
    color: inherit;
    text-decoration: none;
    background: var(--news-bg-2);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.news-main__card-media {
    flex: none;
    width: 100%;
    height: var(--news-card-media-height);
    overflow: hidden;
    border-radius: var(--news-card-radius);
}

.news-main__card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-main__card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 176px;
    padding: 0 24px 24px;
}

.news-main__card-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.news-main__card-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: var(--news-color-text);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-main__card-desc {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    color: var(--news-color-muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-main__card-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.news-main__card-category {
    overflow: hidden;
    flex: none;
    max-width: 100%;
    color: var(--Text-Link, var(--news-color-brand, #b04481));
    font-family: var(--news-font);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-main__card-date {
    overflow: hidden;
    flex: none;
    font-family: var(--news-font);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    color: var(--news-color-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-main__more {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex: 0 0 363px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    isolation: isolate;
    width: 363px;
    min-height: var(--news-card-height);
    padding: 32px;
    overflow: hidden;
    border-radius: var(--news-card-radius);
    background: var(--news-color-dark);
    color: var(--news-color-white);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.news-main__more:hover {
    color: var(--news-color-white);
    text-decoration: none;
}

.news-main__more-glow {
    position: absolute;
    left: 50.44px;
    top: 162.55px;
    z-index: 0;
    width: 293.54px;
    height: 299.08px;
    border-radius: 50%;
    background: rgba(87, 96, 114, 0.71);
    filter: blur(89px);
    transform: rotate(150deg);
    pointer-events: none;
}

.news-main__more-title {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 299px;
    font-size: 40px;
    font-weight: 600;
    line-height: 46px;
    color: var(--news-color-white);
}

.news-main__more-btn {
    position: relative;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 155px;
    min-height: 52px;
    margin-top: auto;
    padding: 14px 24px;
    border-radius: 10px;
    background: var(--news-color-brand);
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    color: var(--news-color-white);
    transition: background-color 0.2s ease;
}

.news-main__more:hover .news-main__more-btn {
    display: inline-flex;
}

.news-main__more:hover .news-main__more-btn {
    background: var(--redesign-color-brand-hover, #a53976);
}

.news-main__more-visual {
    position: absolute;
    left: -5px;
    top: 117px;
    z-index: 2;
    width: 369px;
    height: 373px;
    pointer-events: none;
    transform: rotate(0deg);
    transform-origin: 52% 58%;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-main__more:hover .news-main__more-visual {
    transform: rotate(-7deg);
}

.news-main__more-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 364px;
    height: 369px;
    max-width: none;
    object-fit: contain;
}

.news-main__more:hover .news-main__more-image {
    transform: none;
}

.news-main__more:hover {
    justify-content: space-between;
    gap: 52px;
}

.drag-block.container[data-class='NEWS_MAIN_drag'] {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
}

.drag-block.container[data-class='NEWS_MAIN_drag'] > .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

@media (max-width: 1199px) {
    .news-main__title {
        font-size: 40px;
        line-height: 48px;
    }

    .news-main__grid {
        flex-wrap: wrap;
        height: auto;
        min-height: 0;
    }

    .news-main__track {
        flex: 1 1 100%;
        flex-wrap: wrap;
    }

    .news-main__track .news-main__card,
    .news-main__more {
        flex: 1 1 calc(50% - 8px);
        width: auto;
        min-width: 280px;
    }

    .news-main__more {
        flex-basis: 100%;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .news-main {
        padding: 64px 20px;
    }

    .news-main__inner {
        gap: 24px;
    }

    .news-main__title {
        font-size: 28px;
        line-height: 34px;
    }

    .news-main__grid {
        flex-direction: column;
        gap: 16px;
    }

    .news-main__card,
    .news-main__more {
        flex: none;
        width: 100%;
        min-width: 0;
    }

    .news-main__card {
        min-height: 0;
    }

    .news-main__more-btn {
        display: inline-flex;
    }

    .news-main__more-visual {
        left: 50%;
        top: auto;
        bottom: -20px;
        width: 300px;
        height: 304px;
        transform: translateX(-50%) rotate(0deg);
        transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .news-main__more:hover .news-main__more-visual {
        left: 50%;
        top: auto;
        bottom: -8px;
        transform: translateX(-50%) rotate(-7deg);
    }

    .news-main__more-image {
        width: 280px;
        height: 284px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-main__card,
    .news-main__more-visual,
    .news-main__more-image {
        transition: none;
    }
}
