

/* Start:/local/css/posts.css?178362622311411*/
/**
 * SNTClub — Blog / Posts Page Styles
 * Используется на: /posts/
 * Шаблон: main_site/news.php + news.list/main_site_posts/template.php
 */

/* =====================================================================
   HERO
   ===================================================================== */
.posts-hero {
    padding: var(--space-16) 0 var(--space-12);
    background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue) 100%);
}

.posts-hero__inner {
    max-width: 720px;
}

.posts-hero__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.posts-hero__title {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.posts-hero__desc {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, .8);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .posts-hero { padding: var(--space-10) 0 var(--space-8); }
    .posts-hero__title { font-size: var(--text-3xl); }
}

/* =====================================================================
   SEARCH BLOCK
   ===================================================================== */
.posts-search {
    background: var(--color-white);
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--color-border-light);
}

/* Обёртка формы — ограничиваем ширину */
.posts-search__wrap {
    max-width: 680px;
}

/* Форма: инпут слева, кнопка справа */
.posts-search__form {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

/* Поле с иконкой внутри */
.posts-search__field {
    flex: 1;
    position: relative;
}

/* SVG-лупа */
.posts-search__icon {
    position: absolute;
    left: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    pointer-events: none;
    flex-shrink: 0;
}

/* Инпут */
.posts-search__input {
    width: 100%;
    padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10) !important;
    padding-left: 42px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--fs-base);
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-white);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: 48px;
    box-sizing: border-box;
}

.posts-search__input::placeholder {
    color: var(--color-text-muted);
}

.posts-search__input:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(27, 111, 255, 0.12);
}

/* Кнопка поиска */
.posts-search__btn {
    flex-shrink: 0;
    height: 48px;
    padding: 0 var(--space-5);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .posts-search__form {
        flex-direction: column;
        align-items: stretch;
    }

    .posts-search__btn {
        width: 100%;
    }
}

/* =====================================================================
   POSTS LIST GRID
   ===================================================================== */
.posts-list__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.posts-pager {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: var(--space-6) 0 0;
}

/* После AJAX: JS удаляет .posts__pager из .posts-pager,
   оставляя пустую обёртку. Скрываем её. */
.posts-pager:not(:has(*)) {
    display: none;
    padding: 0;
}

/* После AJAX: .posts__pager вставляется прямо в grid-контейнер.
   Центрируем кнопку через flex и растягиваем на всю ширину. */
.posts__pager {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: var(--space-6) 0 0;
    width: 100%;
}

@media (max-width: 1024px) {
    .posts-list__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .posts-list__grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   POST CARD
   ===================================================================== */
.post-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}

@media (hover: hover) {
    .post-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-4px);
    }
}

/* Image */
.post-card__img-wrap {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-bg-section);
    flex-shrink: 0;
}

.post-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

@media (hover: hover) {
    .post-card__img-wrap:hover .post-card__img {
        transform: scale(1.04);
    }
}

.post-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-section) 0%, var(--color-border) 100%);
}

/* Tag */
.post-card__tag {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: var(--color-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
}

/* Body */
.post-card__body {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-2);
}

.post-card__date {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-weight: 500;
}

.post-card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text);
    margin: 0;
}

.post-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

@media (hover: hover) {
    .post-card__title a:hover {
        color: var(--color-blue);
    }
}

.post-card__excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-blue);
    text-decoration: none;
    margin-top: auto;
    padding-top: var(--space-3);
    transition: gap var(--transition), color var(--transition);
}

.post-card__link::after {
    content: '→';
    font-size: 1em;
    transition: transform var(--transition);
}

@media (hover: hover) {
    .post-card__link:hover {
        color: var(--color-blue-dark);
    }

    .post-card__link:hover::after {
        transform: translateX(4px);
    }
}

/* =====================================================================
   CTA BLOCK
   ===================================================================== */
.posts-cta {
    background: linear-gradient(135deg, #0F2261 0%, #1B4FCC 100%);
    padding: var(--space-16) 0;
}

.posts-cta__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.posts-cta__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.posts-cta__title {
    font-size: var(--fs-3xl);
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    color: var(--color-white);
    margin: 0;
    line-height: var(--lh-snug);
}

.posts-cta__desc {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--lh-relaxed);
    margin: 0;
}

/* Белая кнопка на тёмном фоне */
.posts-cta__btn {
    background: var(--color-white);
    color: var(--color-blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    align-self: flex-start;
}

@media (hover: hover) {
    .posts-cta__btn:hover {
        background: var(--color-blue-light);
        color: var(--color-blue-hover);
        transform: translateY(-1px);
    }
}

.posts-cta__media {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.posts-cta__media img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

@media (max-width: 968px) {
    .posts-cta__inner {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .posts-cta__media {
        justify-content: center;
    }

    .posts-cta__media img {
        max-width: 500px;
    }
}

/* =====================================================================
   ABOUT SECTION
   ===================================================================== */
.posts-about__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.posts-about__text {
    margin-top: var(--space-6);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.posts-about__text p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
}

.posts-about__text a {
    color: var(--color-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* =====================================================================
   BUH FORM SECTION (fp-cta)
   ===================================================================== */
.fp-cta__card {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg) 100%);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-12) var(--space-10);
    box-shadow: var(--shadow-xs);
}

.fp-cta__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: stretch;
}

.fp-cta__left {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    justify-content: space-between;
}

.fp-cta__title {
    font-size: var(--fs-2xl);
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin: 0;
    line-height: var(--lh-snug);
}

.fp-cta__desc {
    font-size: var(--fs-base);
    color: var(--color-text-muted);
    margin: 0;
    line-height: var(--lh-relaxed);
}

.fp-cta__visual {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0 auto;
    flex-shrink: 0;
    mix-blend-mode: multiply;
}

@media screen and (max-width: 968px) {
    .fp-cta__inner {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .fp-cta__visual {
        max-width: 260px;
    }

    .fp-cta__card {
        padding: var(--space-8) var(--space-6);
    }
}

@media screen and (max-width: 560px) {
    .fp-cta__card {
        padding: var(--space-6) var(--space-4);
    }
}


/* End */


/* Start:/local/templates/.default/components/bitrix/search.title/main_site/style.css?17836262232317*/
/*
 * search.title / main_site — стили живого поиска
 * Bitrix автоматически подключает этот файл.
 */

/* ─── Выпадающий блок результатов ─── */
.title-search-result {
    background: #fff;
    border: 1px solid var(--color-border-light, #e2e8f0);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .06);
    overflow: hidden;
    z-index: 1000;
    /* position/top/left/width приходят inline от JS — не трогаем */
}

/* ─── Таблица ─── */
.title-search-list {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    display: block;
}

.title-search-list tbody {
    display: block;
}

.title-search-list tr {
    display: block;
    border-bottom: 1px solid var(--color-border-light, #f1f5f9);
}

.title-search-list tr:last-child {
    border-bottom: none;
}

/* ─── Обычный результат ─── */
.title-search-item {
    display: block;
    padding: 0;
}

.title-search-item a {
    display: block;
    padding: 10px 16px;
    font-size: var(--fs-sm, 0.875rem);
    color: var(--color-text, #1e293b);
    text-decoration: none;
    line-height: 1.45;
    transition: background 0.15s ease, color 0.15s ease;
}

.title-search-item a:hover {
    background: var(--color-bg-section, #f8fafc);
    color: var(--color-blue, #1b6fff);
}

/* Выделение совпадения */
.title-search-item a b {
    font-weight: 700;
    color: var(--color-blue, #1b6fff);
    font-style: normal;
}

/* ─── «Все результаты» ─── */
.title-search-all {
    display: block;
    background: var(--color-bg-section, #f8fafc);
}

.title-search-all a {
    display: block;
    padding: 10px 16px;
    font-size: var(--fs-sm, 0.875rem);
    font-weight: 600;
    color: var(--color-blue, #1b6fff);
    text-decoration: none;
    transition: background 0.15s ease;
}

.title-search-all a:hover {
    background: #eff6ff;
}

/* ─── Фейдер (градиент снизу если много результатов) ─── */
.title-search-fader {
    display: none; /* скрываем — мешает кликать по последнему пункту */
}

/* End */


/* Start:/local/templates/.default/components/bitrix/search.tags.cloud/blog/style.css?17836262231901*/
/*
 * search.tags.cloud / blog — стили фильтров-чипов
 * Битрикс подключает этот файл автоматически.
 */

.search-filters {
    margin-top: var(--space-4);
}

.search-filters__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Чип-кнопка */
.search-filters__chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 6px var(--space-4);
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    font-family: var(--font-body);
    color: var(--color-blue);
    background: rgba(27, 111, 255, 0.07);
    border: 1.5px solid rgba(27, 111, 255, 0.2);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease,
                border-color 0.2s ease, transform 0.15s ease,
                box-shadow 0.2s ease;
}

@media (hover: hover) {
    .search-filters__chip:hover {
        background: var(--color-blue);
        color: #fff;
        border-color: var(--color-blue);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(27, 111, 255, 0.3);
    }
}

/* Активный фильтр */
.search-filters__chip.is-active {
    background: var(--color-blue);
    color: #fff;
    border-color: var(--color-blue);
    box-shadow: 0 4px 12px rgba(27, 111, 255, 0.3);
}

/* Крестик "убрать тег" внутри активного чипа */
.search-filters__chip-close {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

@media (hover: hover) {
    .search-filters__chip.is-active:hover .search-filters__chip-close {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* End */


/* Start:/local/templates/.default/components/bitrix/news.list/main_site_posts/style.css?1783626223805*/
/*
 * news.list / main_site_posts
 * Кнопка "Показать еще" имеет только класс btn--primary load-more (без базового btn).
 * Добавляем базовые стили через .load-more.
 */

/* Базовые стили кнопки (аналог .btn из common.css) */
button.load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    line-height: 1;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition-base);
    white-space: nowrap;
    width: fit-content;
}

/* End */
/* /local/css/posts.css?178362622311411 */
/* /local/templates/.default/components/bitrix/search.title/main_site/style.css?17836262232317 */
/* /local/templates/.default/components/bitrix/search.tags.cloud/blog/style.css?17836262231901 */
/* /local/templates/.default/components/bitrix/news.list/main_site_posts/style.css?1783626223805 */
