/* SkillUnit: сторінка «Кейси» як на старому сайті (заголовок із кільцем, фільтр, сітка 4×N із підписами на зображеннях). */
.su-cwrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Верх (відступ зверху як у блогу) ---------- */
.su-chero { padding-top: 10px; }
.su-chero__title { margin: 0; font-weight: 700; font-size: 68px; line-height: 68px; color: #232323; }
.su-chero__t { text-decoration: underline; text-decoration-thickness: from-font; }
.su-chero__title .su-hero__ring { font-size: 26px; }
.su-chero__intro { margin: 38px 0 0; font-size: 24px; line-height: 27px; color: #232323; }
.su-chero__soc { display: flex; align-items: center; margin-top: 66px; min-height: 46px; }
.su-chero__join { margin-left: 175px; font-size: 16px; line-height: 24px; color: #232323; text-decoration: underline; transition: padding .5s ease; }
.su-chero__soc .su-soc:hover + .su-chero__join { padding-left: 5px; }
.su-chero .su-soc__i { width: 46px; height: 46px; box-sizing: border-box; border: 3px solid #fff; box-shadow: none; font-size: 20px; margin-left: -14px; transition: color .3s ease; }
.su-chero .su-soc__i:first-child { margin-left: 0; }
.su-chero .su-soc__i:hover { transform: none; color: #000; }
.su-chero .su-soc__i--facebook { background: #15548B; }
.su-chero .su-soc__i--telegram { background: #55B0FF; }
.su-chero .su-soc__i--instagram { background: #8BC8FC; }

/* ---------- Фільтр ---------- */
.su-clist { padding-top: 28px; }
.su-cfilters { display: flex; flex-wrap: wrap; gap: 0 14px; margin-bottom: 7px; }
.su-cfilter { padding: 8px; border: 0; background: none; font-family: var(--f-head); font-size: 18px; line-height: 27px; color: #232323; cursor: pointer; transition: color .3s; }
.su-cfilter:hover, .su-cfilter.is-on { color: #8BC8FC; }

/* ---------- Сітка ---------- */
.su-clist__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.su-ccard { position: relative; aspect-ratio: 301.5 / 600.27; border-radius: 20px; overflow: hidden; background: #eee; transition: transform .45s ease-in-out, opacity .45s ease-in-out; }
.su-ccard.is-out { opacity: 0; transform: scale(.5); }
.su-ccard[hidden] { display: none; }
.su-ccard__link { position: absolute; inset: 0; display: block; color: #fff; }
.su-ccard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.su-ccard__go { position: absolute; z-index: 3; top: 23px; right: 12px; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: #000; font-size: 16px; transition: .4s; }
.su-ccard__go svg { width: 1em; height: 1em; }
.su-ccard:hover .su-ccard__go { background: var(--lime); transform: rotate(50deg); }
.su-ccard__over { position: absolute; inset: 0; z-index: 2; box-sizing: border-box; padding: 15px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; overflow: hidden; }
.su-ccard__title { margin: 455px 0 5px; padding: 0; font-family: var(--f-head); font-weight: 400; font-size: 28px; line-height: 28px; color: #fff; }
.su-ccard__desc { display: block; font-size: 14px; line-height: 21px; color: #f1f1f1; }
.su-ccard--dark .su-ccard__title, .su-ccard--dark .su-ccard__desc { color: #232323; }

/* SEO-текст внизу: 18/27, без вікна прокрутки */
.page-template-template-cases .su-seo__text { font-size: 18px; line-height: 27px; color: #2A2929; }

@media (min-width: 1600px) {
	.su-ccard__title { margin-top: 495px; }
	.su-ccard__desc { font-size: 18px; line-height: 27px; }
}
@media (min-width: 1750px) {
	.su-ccard__title { margin-top: 545px; }
	.su-ccard__desc { font-size: 20px; line-height: 30px; }
}

/* ---------- Планшет і телефон ---------- */
@media (max-width: 1024px) {
	.su-clist__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.su-chero__title { font-size: 50px; line-height: 50px; }
	.su-chero__intro { margin-top: 40px; font-size: 18px; line-height: 27px; }
	.su-chero__soc { display: none; }
	.su-clist { padding-top: 32px; }
	.su-cfilter { font-size: 16px; line-height: 24px; }
	.su-ccard__go { width: 28px; height: 28px; top: 6px; right: 6px; font-size: 14px; }
	.su-ccard__over { justify-content: flex-end; padding: 10px; }
	.su-ccard__title { margin: 0; font-size: 20px; line-height: 22px; }
	.su-ccard__desc { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.su-ccard { transition: none; }
}
