/* Schools catalog 2026 redesign (Figma: Терра - дизайн сайта - 2026) */
.s26-page { background: #F4F7FE; }

/* --- hero --- */
.s26-hero { text-align: center; padding: 8px 0 4px; }
.s26-hero .section__title { font-size: 45px; line-height: 1.2; font-weight: 600; color: #16181D; margin: 0 0 14px; }
.s26-hero__subtitle { max-width: 660px; margin: 0 auto; font-size: 17px; line-height: 1.45; color: #5A6472; }

/* --- chips --- */
.s26-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 6px; padding: 0; list-style: none; }
.s26-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; background: #fff; border-radius: 24px; font-size: 15px; color: #1F2937; text-decoration: none; box-shadow: 0 1px 2px rgba(22,24,29,.05); transition: box-shadow .15s ease, background .15s ease; }
.s26-chip:hover { box-shadow: 0 3px 10px rgba(22,24,29,.10); color: #1F2937; }
.s26-chip::before { content: ''; width: 15px; height: 15px; border-radius: 50%; border: 4px solid #DBE7FF; background: #3D7BF7; box-sizing: border-box; flex: none; }
.s26-chip--active { background: #2E6BE6; color: #fff; }
.s26-chip--active:hover { color: #fff; }
.s26-chip--active::before { border-color: rgba(255,255,255,.45); background: #fff; }

/* --- found counter --- */
.s26-found { font-size: 15px; color: #6B7280; margin: 18px 0 14px; }

/* --- layout --- */
.s26 .list__inner { align-items: flex-start; }

/* --- filter panel --- */
.s26 .list__sidebar { background: #fff; border-radius: 20px; padding: 22px 20px; box-shadow: 0 2px 14px rgba(22,24,29,.06); }
.s26 .filter-form__item { margin-bottom: 18px; }
.s26 .filter-form__item-title { font-size: 18px; font-weight: 600; color: #16181D; margin-bottom: 12px; }
.s26 .filter-form__buttons { display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; gap: 4px; max-height: none !important; height: auto !important; width: 100%; }
.s26 .filter-form__button.tag { display: flex; align-items: center; gap: 10px; width: 100%; background: transparent; border: none; padding: 7px 2px; border-radius: 8px; font-size: 15px; color: #1F2937; justify-content: flex-start; text-align: left; cursor: pointer; }
.s26 .filter-form__button.tag:hover { background: #F2F6FF; }
.s26 .filter-form__button.tag input.js-filter-checkbox { appearance: none !important; -webkit-appearance: none !important; order: -1; width: 22px !important; height: 22px !important; margin: 0 !important; flex: none; border: 2px solid #AEB9CA !important; box-shadow: inset 0 0 0 1px rgba(174,185,202,.15); border-radius: 6px; background: #fff; cursor: pointer; position: static !important; opacity: 1 !important; display: inline-block !important; clip: auto !important; z-index: 1 !important; clip-path: none !important; visibility: visible !important; pointer-events: auto !important; left: auto !important; top: auto !important; }
.s26 .filter-form__button.tag input.js-filter-checkbox:checked { background: #2E6BE6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-6' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: #2E6BE6; }
.s26 .form__checkbox { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #1F2937; padding: 7px 2px; cursor: pointer; }
.s26 .filter-form__actions--desktop { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.s26 .s26-apply { width: 100%; height: 44px; background: #3D7BF7; color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 500; cursor: pointer; transition: background .15s ease; }
.s26 .s26-apply:hover { background: #2E6BE6; }
.s26 .s26-reset { background: none; border: none; color: #3D7BF7; font-size: 14px; cursor: pointer; padding: 6px; }
.s26 .s26-reset:hover { text-decoration: underline; }

/* поисковая строка сверху */
.s26 .list__search .form__field { border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(22,24,29,.05); }

/* --- cards grid --- */
.s26 .list__items-courses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.s26-card { position: relative; overflow: hidden; border-radius: 24px; padding: 26px 26px 24px; color: #fff; display: flex; flex-direction: column; min-height: 230px; }
.s26-card::after { content: ''; position: absolute; right: -70px; top: -70px; width: 230px; height: 230px; border-radius: 50%; background: rgba(255,255,255,.10); pointer-events: none; }
.s26-card::before { content: ''; position: absolute; left: -50px; bottom: -80px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.s26-card--c0 { background: linear-gradient(135deg, #3F7DF8 0%, #2E5FE0 100%); }
.s26-card--c1 { background: linear-gradient(135deg, #49BBD6 0%, #35A3C4 100%); }
.s26-card--c2 { background: linear-gradient(135deg, #8D83F2 0%, #7466E8 100%); }
.s26-card--c3 { background: linear-gradient(135deg, #4A90F4 0%, #3272DE 100%); }
.s26-card--cover { background-size: cover; background-position: center; }
.s26-card--cover .s26-card__shade { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,24,38,.25), rgba(18,24,38,.65)); }
.s26-card > * { position: relative; z-index: 1; }
.s26-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; min-height: 0; }
.s26-badge { font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 4px 9px; border-radius: 6px; background: rgba(255,255,255,.92); color: #16181D; }
.s26-badge--online { background: #CFFADD; color: #067A46; }
.s26-badge--rating { background: #FFDB00; color: #16181D; }
.s26-card__title { font-size: 24px; line-height: 1.25; font-weight: 600; margin: 0 0 10px; color: #fff; }
.s26-card__desc { font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.85); margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s26-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 16px; padding: 0; list-style: none; }
.s26-card__tag { font-size: 13px; color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 16px; padding: 4px 12px; }
.s26-card__btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; background: #fff; color: #16181D; border-radius: 10px; font-size: 15px; font-weight: 500; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.s26-card__btn:hover { color: #16181D; box-shadow: 0 6px 16px rgba(10,20,50,.25); transform: translateY(-1px); }
.s26-card__btn svg { width: 12px; height: 12px; }

/* --- pagination --- */
.s26 .pagination__link { border-radius: 10px; }
.s26 .pagination__link--current { background: #2E6BE6; color: #fff; }

@media (max-width: 900px) {
  .s26 .list__items-courses { grid-template-columns: 1fr; }
  .s26-hero .section__title { font-size: 30px; }
  .s26-chips { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .s26-chip { white-space: nowrap; }
}

/* --- niche filter: wrap + collapse (задача 3) --- */
.s26 .list__sidebar, .s26 .filter-form__item, .s26 .filter-form__buttons { max-width: 100%; overflow-x: visible; min-width: 0; }
.s26 .filter-form__button.tag { white-space: normal; word-break: break-word; }
.s26-niche-hidden { display: none !important; }
.s26-more-niches { margin-top: 8px; background: none; border: none; color: #3D7BF7; font-size: 14px; cursor: pointer; padding: 6px 2px; text-align: left; }
.s26-more-niches:hover { text-decoration: underline; }
