/* Раздел /ai/: каталог AI-сервисов и карточка сервиса */
.ai-page { padding: 20px 0 48px; }
.ai-crumbs { font-size: 13px; color: #6b7a80; margin-bottom: 14px; }
.ai-crumbs a { color: #0c6a91; text-decoration: none; }
.ai-crumbs a:hover { text-decoration: underline; }
.ai-crumbs__sep { margin: 0 6px; color: #b6c2c7; }
.ai-crumbs__current { color: #6b7a80; }
.ai-title { font-size: 30px; line-height: 1.2; margin: 0 0 12px; color: #123; }
.ai-subtitle { font-size: 21px; line-height: 1.3; margin: 0 0 14px; color: #123; }
.ai-intro { max-width: 820px; color: #4a5a60; margin: 0 0 20px; }

/* Фильтры */
.ai-filter { background: #f4f9fb; border: 1px solid #e7ecee; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.ai-filter__group { margin-bottom: 14px; }
.ai-filter__group:last-child { margin-bottom: 0; }
.ai-filter__label { display: block; font-size: 13px; font-weight: 700; color: #123; margin-bottom: 8px; }
.ai-filter__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-chip { display: inline-flex; align-items: center; cursor: pointer; }
.ai-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ai-chip span { display: inline-block; padding: 7px 12px; border: 1px solid #cddde5; border-radius: 999px; background: #fff; font-size: 13px; color: #123; transition: background .15s, border-color .15s; }
.ai-chip:hover span { border-color: #0c6a91; }
.ai-chip.is-checked span, .ai-chip input:checked + span { background: #0c6a91; border-color: #0c6a91; color: #fff; }
.ai-filter__group--search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ai-filter__input { flex: 1 1 220px; max-width: 320px; height: 40px; padding: 0 12px; border: 1px solid #cddde5; border-radius: 6px; font-size: 14px; }
.ai-filter__submit { margin: 0; }
.ai-filter__reset { font-size: 13px; color: #0c6a91; }
.ai-count { font-size: 14px; color: #4a5a60; margin-bottom: 18px; }

/* Сетка карточек */
.ai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.ai-grid--top { margin-bottom: 18px; }
.ai-card { background: #fff; border: 1px solid #e7ecee; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.ai-card:hover { border-color: #0c6a91; box-shadow: 0 4px 14px rgba(12, 106, 145, .08); }
.ai-card__link { display: flex; flex-direction: column; height: 100%; padding: 16px; color: inherit; text-decoration: none; }
.ai-card__logo { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.ai-card__logo img { display: block; width: 56px; height: 56px; object-fit: contain; }
.ai-card__initial { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; background: #0c6a91; color: #fff; font-size: 24px; font-weight: 700; }
.ai-card__body { display: block; }
.ai-card__name { display: block; font-size: 17px; font-weight: 700; color: #123; margin-bottom: 6px; }
.ai-card__tagline { display: block; font-size: 13px; color: #5b6b71; line-height: 1.45; margin-bottom: 10px; }
.ai-card__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-card__price { display: block; margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 700; color: #2f8f3c; }
.ai-tag { display: inline-block; padding: 3px 9px; border-radius: 999px; background: #eef5f8; color: #0c6a91; font-size: 11px; line-height: 1.6; white-space: nowrap; }
.ai-tag--type { background: #f1f7ec; color: #4d8a2f; }

/* Пустое состояние, пагинация */
.ai-empty { border: 1px dashed #cddde5; border-radius: 10px; padding: 32px 20px; text-align: center; margin-bottom: 28px; }
.ai-empty__text { font-size: 15px; color: #4a5a60; margin-bottom: 14px; }
.ai-pager { margin-bottom: 28px; }

/* Тизер новостей */
.ai-news-teaser { margin-top: 8px; }
.ai-news-teaser__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ai-news-teaser__all { font-size: 13px; color: #0c6a91; text-decoration: none; }
.ai-news-teaser__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ai-news-mini { display: flex; flex-direction: column; padding: 14px; border: 1px solid #e7ecee; border-radius: 10px; text-decoration: none; color: inherit; background: #fff; }
.ai-news-mini:hover { border-color: #0c6a91; }
.ai-news-mini__img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.ai-news-mini__date { font-size: 12px; color: #8a979c; margin-bottom: 6px; }
.ai-news-mini__title { font-size: 14px; font-weight: 700; color: #123; line-height: 1.35; }

/* Карточка сервиса */
.ai-hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; background: #f4f9fb; border: 1px solid #e7ecee; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.ai-hero__logo img, .ai-hero__logo { display: block; width: 88px; height: 88px; border-radius: 16px; object-fit: contain; }
.ai-hero__initial { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 16px; background: #0c6a91; color: #fff; font-size: 38px; font-weight: 700; }
.ai-hero__main { flex: 1 1 320px; min-width: 0; }
.ai-hero__main .ai-title { margin-bottom: 8px; }
.ai-hero__tagline { font-size: 15px; color: #4a5a60; margin: 0 0 12px; }
.ai-hero__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-hero__aside { flex: 0 0 240px; display: flex; flex-direction: column; gap: 10px; }
.ai-hero__rating, .ai-hero__price { font-size: 14px; color: #123; }
.ai-hero__price { font-weight: 700; color: #2f8f3c; }
.ai-hero__cta { text-align: center; margin: 0; }
.ai-description { font-size: 15px; line-height: 1.6; color: #2c3a40; margin-bottom: 26px; }
.ai-description p { margin: 0 0 12px; }
.ai-block { margin-bottom: 26px; }
.ai-block--proscons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ai-proscons { border: 1px solid #e7ecee; border-radius: 10px; padding: 16px; }
.ai-proscons--pros { background: #f6fbf2; }
.ai-proscons--cons { background: #fdf6f5; }
.ai-proscons .ai-subtitle { font-size: 17px; margin-bottom: 10px; }
.ai-list { list-style: none; padding: 0; margin: 0; }
.ai-list li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.55; color: #2c3a40; margin-bottom: 8px; }
.ai-list li:before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #0c6a91; }
.ai-proscons--pros .ai-list li:before { background: #60ae3d; }
.ai-proscons--cons .ai-list li:before { background: #d06a5f; }
.ai-grid--similar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ai-card--mini .ai-card__link { padding: 14px; }
.ai-related-news { list-style: none; padding: 0; margin: 0; }
.ai-related-news li { padding: 10px 0; border-bottom: 1px solid #eef2f4; font-size: 15px; }
.ai-related-news li:last-child { border-bottom: none; }
.ai-related-news a { color: #0c6a91; text-decoration: none; }
.ai-related-news a:hover { text-decoration: underline; }
.ai-related-news__date { display: block; font-size: 12px; color: #8a979c; margin-top: 3px; }

/* Адаптив */
@media (max-width: 992px) {
    .ai-grid, .ai-grid--similar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ai-news-teaser__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ai-hero__aside { flex: 1 1 100%; }
}
@media (max-width: 600px) {
    .ai-page { padding: 14px 0 32px; }
    .ai-title { font-size: 24px; }
    .ai-grid, .ai-grid--similar, .ai-news-teaser__grid, .ai-block--proscons { grid-template-columns: 1fr; }
    .ai-hero { padding: 16px; }
    .ai-hero__logo img, .ai-hero__logo, .ai-hero__initial { width: 64px; height: 64px; font-size: 28px; }
    .ai-card__link { padding: 14px; }
    .ai-filter { padding: 12px; }
    .ai-filter__input { max-width: none; }
    .ai-filter__group--search .ai-filter__submit { width: 100%; }
}

