/*
 * Новости 2026: карточка новости (Asia\News\Card), блок «Новости компании» на главных
 * (компонент asia:news.preview — /, /kg/, /uz/, /tj/) и страницы списка /about-news*.php
 * (шаблон news.list «news2026»). Подключается через $PAGE_CSS.
 */

/* ---------------------------------------------------------------- сетка */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* -------------------------------------------------------------- карточка */
.news-card {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(143, 173, 190, .18);
    font-family: 'Google Sans', sans-serif;
    color: #2A323D;
    text-decoration: none;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover,
.news-card:focus-visible {
    color: #2A323D;
    transform: translateY(-3px);
    box-shadow: 0 14px 44px rgba(143, 173, 190, .28);
}
.news-card__img {
    display: block;
    aspect-ratio: 380 / 210;
    border-radius: 15px;
    background: #F0F6F9;
    overflow: hidden;
}
.news-card__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* новость без картинки — бледный логотип вместо пустого места */
.news-card__img--empty {
    position: relative;
    background: linear-gradient(135deg, #F0F6F9 0%, #E2ECF1 100%);
}
.news-card__img--empty::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/img/closer/logo.svg') center / 46% auto no-repeat;
    filter: grayscale(1);
    opacity: .3;
}
.news-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 18px 22px 20px;
}
.news-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    transition: color .2s ease;
}
.news-card:hover .news-card__title { color: #E6007E; }
.news-card__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 8px;
    font-size: 15px;
    line-height: 21px;
}
.news-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    font-size: 15px;
    line-height: 20px;
}
.news-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #E6007E;
    font-weight: 500;
}
.news-card__more svg { width: 17px; height: 12px; transition: transform .2s ease; }
.news-card:hover .news-card__more svg { transform: translateX(4px); }
.news-card__date {
    color: #A6B4BB;
    white-space: nowrap;
}

/* --------------------------------------------- блок «Новости компании» на главной */
.news-home {
    padding: 50px 0 60px;
    font-family: 'Google Sans', sans-serif;
    color: #2A323D;
}
.news-home__wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "title all" "grid grid";
    align-items: center;
    row-gap: 24px;
}
.news-home__title {
    grid-area: title;
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #2A323D;
}
.news-home__all {
    grid-area: all;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 48px;
    padding: 0 24px 0 26px;
    box-sizing: border-box;
    border: 2px solid #E6007E;
    border-radius: 35px;
    background: #fff;
    color: #E6007E;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}
.news-home__all:hover,
.news-home__all:focus-visible {
    background: #E6007E;
    color: #fff;
}
.news-home__grid { grid-area: grid; }

/* ------------------------------------------------ страницы списка /about-news*.php */
.news-correct .about_news-row {
    margin-top: 8px;
    row-gap: 10px;
}
.news-correct .news-btn {
    display: inline-flex;
    align-items: center;
    border-radius: 30px;
    background: #F0F6F9;
    color: #2A323D;
    transition: background-color .2s ease, color .2s ease;
}
.news-correct .news-btn:hover { background: #E2ECF1; color: #2A323D; }
.news-correct .news-btn.news-select,
.news-correct .news-btn.news-select:hover { background: #2A323D; color: #fff; }
.news-correct .contact_txt {
    margin: 32px 0 24px;
    line-height: 1.2;
}
/* на страницах есть встроенный .container { padding: 0 15px } — он обнулял отступ до подвала */
.container.news-correct { padding-bottom: 80px; }

/* -------------------------------------------- страница новости /about-news-open.php */
.container.news-open-correct { padding-top: 8px; padding-bottom: 80px; }
.news-article {
    padding: 36px 40px 32px;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(143, 173, 190, .18);
    font-family: 'Google Sans', sans-serif;
    color: #2A323D;
}
.news-article__meta.news-open-row { margin-top: 0; align-items: center; }
.news-article .news-view { gap: 8px; }
.news-article .news-view img { padding-right: 0; }
.news-article__title.contact_txt {
    margin: 14px 0 26px;
    font-size: 36px;
    line-height: 1.2;
}
/* картинка целиком, без обрезки (на ней бывает текст), на мягкой подложке */
.news-article__img.news-box-img {
    justify-content: center;
    padding: 24px;
    border-radius: 20px;
    background: #F0F6F9;
}
.news-article__img.news-box-img img {
    width: auto;
    max-width: 100%;
    max-height: 440px;
    margin: 0;
    border-radius: 14px;
    object-fit: contain;
}
.news-article__text.news-open-text {
    max-width: 880px;
    margin-top: 28px;
    font-size: 18px;
    line-height: 28px;
}
.news-article__text p { margin: 0 0 14px; }
.news-article__text ul,
.news-article__text ol { margin: 0 0 14px; padding-left: 22px; }
.news-article__text li { margin-bottom: 6px; }
.news-article__text a { color: #E6007E; }
.news-article__foot {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E2ECF1;
}
.news-article__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 26px;
    border: 2px solid #E6007E;
    border-radius: 35px;
    color: #E6007E;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.news-article__back:hover,
.news-article__back:focus-visible { background: #E6007E; color: #fff; }

.news-empty {
    padding: 4px 0 30px;
    font-family: 'Google Sans', sans-serif;
    font-size: 18px;
    color: #566274;
}
.news-empty a { color: #E6007E; }

/* пагинация (шаблон system.pagenavigation «azia») — по центру, кнопки-пилюли */
.news-pager { margin-top: 36px; font-family: 'Google Sans', sans-serif; }
.news-pager .bx_pagination_bottom { max-width: none; }
.news-pager .bx_pagination_page ul {
    justify-content: center;
    gap: 8px;
    margin: 0;
}
.news-pager .bx_pagination_page li {
    min-width: 36px;
    font-size: 16px;
    line-height: 36px;
}
.news-pager .bx_pagination_page li a {
    min-width: 36px;
    padding: 0 12px;
    border-radius: 25px;
    color: #2A323D;
    line-height: 36px;
}
.news-pager .bx_pagination_page li a:hover { background: #F0F6F9; color: #E6007E; }
.news-pager .bx_pagination_page li a.paginator_btn { background: #F0F6F9; }
.news-pager .bx_pagination_page li a.paginator_btn[disabled] { opacity: .45; pointer-events: none; }
.news-pager .bx_pagination_page li.paginator-active {
    border-radius: 50%;
    background: #2A323D;
    color: #fff;
}

/* ------------------------------------------------------------- адаптив */
@media (max-width: 991px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-home { padding: 40px 0 50px; }
    .news-home__title { font-size: 30px; }
}
/* телефон: карточки в колонку, кнопка «Все материалы» под ними по центру */
@media (max-width: 575px) {
    .news-grid { grid-template-columns: 1fr; gap: 14px; }
    .news-home { padding: 32px 0 36px; }
    .news-home__wrap {
        grid-template-columns: 1fr;
        grid-template-areas: "title" "grid" "all";
        row-gap: 16px;
    }
    .news-home__title { font-size: 22px; line-height: 24px; }
    .news-home__all { justify-self: center; height: 46px; font-size: 16px; margin-top: 6px; }
    .news-card__img { aspect-ratio: 280 / 160; }
    .news-card__body { padding: 14px 16px 16px; }
    .news-card__title { font-size: 16px; line-height: 20px; }
    .news-card__text { margin-top: 6px; font-size: 13px; line-height: 17px; }
    .news-card__foot { padding-top: 12px; font-size: 13px; line-height: 16px; }
    .news-card__more svg { width: 15px; height: 11px; }
    .container.news-correct { padding-bottom: 50px; }
    .container.news-open-correct { padding-bottom: 50px; }
    .news-article { padding: 20px 16px 20px; border-radius: 18px; }
    .news-article__title.contact_txt { width: auto; margin: 10px 0 16px; font-size: 22px; }
    .news-article__img.news-box-img { padding: 12px; border-radius: 14px; }
    .news-article__img.news-box-img img { max-height: 300px; border-radius: 10px; }
    .news-article__text.news-open-text { margin-top: 18px; font-size: 15px; line-height: 23px; }
    .news-article__foot { margin-top: 22px; padding-top: 18px; }
    .news-article__back { height: 44px; padding: 0 20px; font-size: 15px; }
    .news-correct .contact_txt { margin: 20px 0 16px; font-size: 26px; }
}
