/* Витрина кейсов /projects/ (archive-cases.php), 06.10.2026.
   Отдельный файл, а не блок в style.css: style.css правят параллельные сессии.
   Подключается только из archive-cases.php. Префикс lcka- свободен (проверено грепом).
   Селекторы через #caseshead / #allcases - чтобы не проигрывать style-old.css. */

#caseshead.lcka-head { padding-bottom: 0; margin-bottom: 0; }
body.post-type-archive-cases #caseshead.lcka-head h1 { font-size: 40px; line-height: 1.1; font-weight: 700; margin: 12px 0 12px; color: #152237; }
#caseshead .lcka-lead { font-family: SFPro, SFProFb, SFProFbR, sans-serif; font-size: 18px; line-height: 1.5; color: #5a6b85; margin: 0 0 24px; max-width: 720px; }

/* Фильтры: чипы типа + список отраслей */
#caseshead .lcka-filters { display: flex; align-items: flex-start; gap: 16px; padding: 0 0 20px; border-bottom: 1px solid #e3e9f0; }
#caseshead .lcka-filters .lc-case-filter { flex: 1; min-width: 0; margin: 0; }
#caseshead .lcka-filters .lc-filter-label { display: none; }
#caseshead .lcka-filters .lc-industry-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
#caseshead .lcka-filters .lc-industry-chip { font-size: 15px; padding: 8px 14px; line-height: 20px; gap: 8px; }
#caseshead .lcka-filters .lc-industry-chip i { font-size: 12px; padding: 1px 7px; }
#caseshead .lcka-ind { flex: none; display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
#caseshead .lcka-ind__label { font-size: 14px; color: #5a6b85; }
#caseshead .lcka-ind .lcka-ind__select {
	height: 38px; min-width: 210px; padding: 0 36px 0 14px; border: 1px solid #e3e9f0; border-radius: 999px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6b85' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
	font: 400 15px/1 SFPro, SFProFb, SFProFbR, sans-serif; color: #152237; -webkit-appearance: none; appearance: none; cursor: pointer;
}
#caseshead .lcka-ind .lcka-ind__select:focus-visible { outline: 2px solid #0070f3; outline-offset: 2px; }

/* Разделы */
#allcases.lcka { padding-top: 8px; }
#allcases .lcka-sec { margin: 56px 0 0; }
#allcases .lcka-sec[hidden] { display: none; }
#allcases .lcka-sec__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 24px; }
#allcases .lcka-sec__head h2 { font-size: 26px; line-height: 1.2; font-weight: 600; margin: 0; color: #152237; }
#allcases .lcka-sec__cnt { font-size: 15px; color: #5a6b85; }
#allcases .lcka-sec__to { margin-left: auto; font-size: 15px; font-weight: 500; color: #0070f3; }
#allcases .lcka-sec__to:hover { text-decoration: underline; }

/* Сетки */
#allcases .lcka-grid, #allcases .lcka-feat { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { #allcases .lcka-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { #allcases .lcka-grid, #allcases .lcka-feat { grid-template-columns: repeat(3, 1fr); } }

/* Карточка */
#allcases .lcka-card, #allcases .lcka-fcard {
	display: flex; flex-direction: column; background: #fff; border: 1px solid #e3e9f0; border-radius: 16px;
	overflow: hidden; color: #152237; text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
#allcases .lcka-fcard { border-radius: 20px; }
#allcases .lcka-card[hidden], #allcases .lcka-fcard[hidden], #allcases .lcka-row[hidden] { display: none; }
#allcases .lcka-card:hover, #allcases .lcka-fcard:hover { border-color: #c9d6e6; box-shadow: 0 10px 30px -18px rgba(21, 34, 55, .35); }
#allcases .lcka-card__cover { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #eef2f7; }
#allcases .lcka-fcard .lcka-card__cover { aspect-ratio: 16 / 10; }
#allcases .lcka-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .4s ease; }
#allcases .lcka-card:hover .lcka-card__cover img, #allcases .lcka-fcard:hover .lcka-card__cover img { transform: scale(1.03); }
#allcases .lcka-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
#allcases .lcka-fcard .lcka-card__body { padding: 22px 24px 24px; }
#allcases .lcka-card__meta { display: block; min-height: 18px; margin: 0 0 8px; font-size: 13px; line-height: 18px; font-weight: 500; color: #5a6b85; }
#allcases .lcka-card__title {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
	font-size: 18px; line-height: 1.35; font-weight: 600; color: #152237;
}
#allcases .lcka-fcard .lcka-card__title { font-size: 19px; }
#allcases .lcka-card:hover .lcka-card__title, #allcases .lcka-fcard:hover .lcka-card__title { color: #0070f3; }
#allcases .lcka-card__res { display: block; margin-top: auto; padding-top: 16px; }
#allcases .lcka-card__res span { display: inline-block; padding: 6px 10px; border-radius: 8px; background: #f5f9ff; color: #0070f3; font-size: 14px; line-height: 1.3; font-weight: 600; }
#allcases .lcka-fcard__num { display: block; margin: 4px 0 4px; font-size: 34px; line-height: 1.05; font-weight: 700; color: #0070f3; letter-spacing: -.01em; }
#allcases .lcka-fcard__cap { display: block; margin: 0 0 14px; font-size: 14px; line-height: 1.4; color: #5a6b85; }

/* Компактный список */
#allcases .lcka-list { display: grid; grid-template-columns: 1fr; gap: 0 32px; margin: 24px 0 0; border-top: 1px solid #e3e9f0; }
@media (min-width: 900px) { #allcases .lcka-list { grid-template-columns: 1fr 1fr; } }
#allcases .lcka-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #e3e9f0; color: #152237; text-decoration: none; min-height: 72px; }
#allcases .lcka-row img, #allcases .lcka-row__ph { flex: none; width: 72px; height: 48px; object-fit: cover; border-radius: 8px; background: #eef2f7; }
#allcases .lcka-row__txt { display: block; min-width: 0; }
#allcases .lcka-row__t { display: block; font-size: 16px; line-height: 1.35; font-weight: 500; }
#allcases .lcka-row__s { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: #5a6b85; }
#allcases .lcka-row:hover .lcka-row__t { color: #0070f3; }

#allcases .lcka-empty { margin: 48px 0 0; font-size: 16px; color: #5a6b85; }
#allcases .lcka-empty button.lcka-reset { margin-left: 8px; padding: 0; border: 0; background: none; color: #0070f3; font: inherit; text-decoration: underline; cursor: pointer; }

/* Блок «Что ИИ делает в вашей отрасли» внизу - заголовок в общий стиль */
#allcases .lc-industry-filter.lcka-sec { margin-bottom: 0; }

@media (max-width: 767px) {
	body.post-type-archive-cases #caseshead.lcka-head h1 { font-size: 32px; }
	#caseshead .lcka-lead { font-size: 16px; margin-bottom: 16px; }
	#caseshead .lcka-filters { flex-direction: column; align-items: stretch; gap: 12px; }
	#caseshead .lcka-filters .lc-industry-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
	#caseshead .lcka-filters .lc-industry-list::-webkit-scrollbar { display: none; }
	#caseshead .lcka-filters .lc-industry-chip { flex: none; white-space: nowrap; }
	#caseshead .lcka-ind { width: 100%; }
	#caseshead .lcka-ind .lcka-ind__select { flex: 1; min-width: 0; }
	#allcases .lcka-sec { margin-top: 40px; }
	#allcases .lcka-sec__head h2 { font-size: 22px; }
	#allcases .lcka-sec__to { margin-left: 0; flex-basis: 100%; }
	#allcases .lcka-card__title { font-size: 17px; }
	#allcases .lcka-fcard__num { font-size: 30px; }
}
