/* Публичная страница школы — макет sport_school */
html:has(.spd-page) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:has(.spd-page) {
    scroll-behavior: auto;
  }
}

.spd-page {
  background: #f4f5f7;
  padding: 0 0 3rem;
}

.spd-page__inner {
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
  max-width: 75rem;
}

/* Якорь после смены месяца/недели: не уезжает под фиксированный header */
#spd-schedule {
  scroll-margin-top: 5.5rem;
}

#spd-branches,
#spd-awards,
#spd-teams,
#spd-students,
#spd-masters,
#spd-games,
#spd-enroll {
  scroll-margin-top: 5.5rem;
}

#school-owner-schedule {
  scroll-margin-top: 1rem;
}

.spd-hero-shell {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

/* Логотип (вымпел) наезжает на обложку; долю наезда см. --spd-hero-logo-overlap-ratio */
.spd-hero-shell--has-cover {
  overflow: visible;
  background: transparent;
  border-radius: 0;
}

.spd-hero-shell--has-cover .spd-hero-cover {
  position: relative;
  z-index: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.spd-hero-shell--has-cover .spd-hero {
  position: relative;
  z-index: 1;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 1px 0 rgba(0, 18, 36, 0.06);
  padding-top: 24px;
}

.spd-hero__side {
  flex-shrink: 0;
  width: 14.5rem;
  --spd-hero-logo-box: 14.5rem;
  --spd-hero-logo-overlap-ratio: 0.64;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spd-hero-shell--has-cover .spd-hero__logo {
  margin-top: calc(-1 * var(--spd-hero-logo-box) * var(--spd-hero-logo-overlap-ratio));
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 28px rgba(18, 42, 61, 0.22);
}

/* Логотип и кнопки чуть выше поверх обложки */
.spd-hero-shell--has-cover .spd-hero__side {
  transform: translateY(-5px);
}

.spd-hero-cover {
  line-height: 0;
  position: relative;
}

.spd-hero-cover img {
  display: block;
  width: 100%;
  height: clamp(10rem, 28vw, 17.5rem);
  object-fit: cover;
}

.spd-hero {
  --spd-hero-sidebar: 14.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: #fff;
  border-radius: 0;
  overflow: visible;
}

.spd-hero__row-head {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: stretch;
}

.spd-hero__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.spd-hero__lead {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
}

/* Название и теги ближе к обложке: 24px от верхнего края белого блока */
.spd-hero-shell--has-cover .spd-hero__lead {
  justify-content: flex-start;
}

.spd-hero__meta-skip {
  padding-left: 0;
}

.spd-hero__logo {
  width: 14.5rem;
  height: 14.5rem;
  border-radius: 8px;
  object-fit: cover;
  background: #f7f8fa;
}

.spd-hero__logo--placeholder {
  object-fit: contain;
  padding: 1rem;
}

.spd-hero__cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

.spd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.spd-btn--primary {
  background: #037cbd;
  color: #fff;
}

.spd-btn--primary:hover {
  background: #005d96;
}

.spd-btn--ghost {
  background: transparent;
  color: #ffa629;
}

.spd-hero__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  color: #001224;
}

.spd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.spd-tags--on-cover {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  margin: 0;
  line-height: normal;
  z-index: 1;
  justify-content: flex-end;
}

.spd-tags--on-cover .spd-tag {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 6px rgba(0, 18, 36, 0.18);
}

.spd-tag {
  padding: 0.375rem 0.75rem;
  background: #e9f5fa;
  border-radius: 4px;
  color: #005d96;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
}

.spd-meta-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.spd-meta {
  padding: 0.75rem;
  background: #f9fafd;
  border-radius: 8px;
}

.spd-meta__label {
  color: #acb9c1;
  font-size: 0.875rem;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.spd-meta__value {
  color: #252a2f;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
}

.spd-stats {
  display: flex;
  gap: 2.5rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
}

.spd-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.5rem;
  text-align: center;
  border-radius: 8px;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.spd-stat:hover {
  background: #f7f8fa;
}

.spd-stat__value {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.15;
  color: #005d96;
  transition: color 0.15s ease;
}

.spd-stat:hover .spd-stat__value,
.spd-stat:hover .spd-stat__label {
  color: #037cbd;
}

.spd-stat__label {
  color: #6c757b;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  transition: color 0.15s ease;
}

a.spd-stat {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.spd-stat:focus-visible {
  outline: 2px solid #037cbd;
  outline-offset: 2px;
}

.spd-stat--current {
  background: #f7f8fa;
}

.spd-stat--current .spd-stat__value,
.spd-stat--current .spd-stat__label {
  color: #037cbd;
}

.spd-awards-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
}

.spd-awards-head__title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  color: #252a2f;
}

.spd-awards-head__school {
  margin: 0;
  color: #6c757b;
  font-size: 1rem;
  font-weight: 500;
}

.spd-awards-head__tags {
  margin-top: 1rem;
}

.spd-awards-section .trainer-awards-lead {
  margin-top: 0;
}

a.trainer-award-frame__team--link {
  display: block;
  color: #037cbd;
  text-decoration: none;
}

a.trainer-award-frame__team--link:hover {
  text-decoration: underline;
}

.spd-section {
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
}

.spd-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.spd-section__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  color: #004170;
}

.spd-section__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #037cbd;
  font-weight: 600;
  text-decoration: none;
}

.spd-about {
  color: #6c757b;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.spd-about p + p {
  margin-top: 1rem;
}

/* Превью тренеров на главной странице школы — фото 250×250 */
.spd-coaches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 250px);
  justify-content: start;
  gap: 1.5rem;
  align-items: start;
}

.spd-coach-card {
  display: flex;
  flex-direction: column;
  width: 250px;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.spd-coach-card--head {
  box-shadow: 0 0 0 2px rgba(3, 124, 189, 0.35), 0 2px 8px rgba(3, 124, 189, 0.12);
}

.spd-coach-card__photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f0f2f5;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.spd-coach-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spd-coach-card__photo--placeholder {
  position: absolute;
  inset: 0;
  background: #1a2840 url("/static/images/placeholders/man.svg") center/68% no-repeat;
}

.spd-coach-card__head-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.4rem 0.65rem;
  border-radius: 0;
  background: rgba(3, 124, 189, 0.92);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.spd-coach-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 4.5rem;
  padding: 0.85rem 0.65rem 1rem;
  text-align: center;
  box-sizing: border-box;
}

.spd-coach-card__name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: #252a2f;
  word-break: break-word;
}

.spd-coach-card__role {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: #5c6370;
  word-break: break-word;
}

@media (max-width: 560px) {
  .spd-coaches-grid {
    grid-template-columns: repeat(auto-fill, minmax(0, 250px));
    justify-content: start;
  }

  .spd-advantages {
    grid-template-columns: 1fr;
  }
}

.spd-advantages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.spd-advantage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
}

.spd-advantage__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #e9f5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #037cbd;
  font-size: 1.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

.spd-advantage__visual {
  width: min(100%, 11.5rem);
  aspect-ratio: 1;
  border-radius: 12px;
  background: #e9f5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.spd-advantage__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.spd-advantage__title {
  color: #252a2f;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.spd-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.spd-plan {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8ecef;
  display: flex;
  flex-direction: column;
}

.spd-plan__head {
  padding: 1.25rem 1rem;
  text-align: center;
}

.spd-plan__name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #252a2f;
  margin-bottom: 0.75rem;
}

.spd-plan__badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.spd-plan__badge {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.spd-plan--blue .spd-plan__head {
  background: #e9f5fa;
}
.spd-plan--blue .spd-plan__badge {
  color: #005d96;
  background: #fff;
}

.spd-plan--orange .spd-plan__head {
  background: #fff4e6;
}
.spd-plan--orange .spd-plan__badge {
  color: #ff8b00;
  background: #fff;
}

.spd-plan--green .spd-plan__head {
  background: #e8f8f3;
}
.spd-plan--green .spd-plan__badge {
  color: #1cb08b;
  background: #fff;
}

.spd-plan--purple .spd-plan__head {
  background: #f3ecfc;
}
.spd-plan--purple .spd-plan__badge {
  color: #8753db;
  background: #fff;
}

.spd-plan--pink .spd-plan__head {
  background: #fce8f2;
}
.spd-plan--pink .spd-plan__badge {
  color: #e8539a;
  background: #fff;
}

.spd-plan--red .spd-plan__head {
  background: #fdecec;
}
.spd-plan--red .spd-plan__badge {
  color: #c62828;
  background: #fff;
}

.spd-plan--teal .spd-plan__head {
  background: #e6f7f6;
}
.spd-plan--teal .spd-plan__badge {
  color: #0d9488;
  background: #fff;
}

.spd-plan--yellow .spd-plan__head {
  background: #fffbeb;
}
.spd-plan--yellow .spd-plan__badge {
  color: #b45309;
  background: #fff;
}

.spd-plan--indigo .spd-plan__head {
  background: #eef2ff;
}
.spd-plan--indigo .spd-plan__badge {
  color: #4338ca;
  background: #fff;
}

.spd-plan--coral .spd-plan__head {
  background: #fff1eb;
}
.spd-plan--coral .spd-plan__badge {
  color: #ea580c;
  background: #fff;
}

.spd-plan--slate .spd-plan__head {
  background: #f1f5f9;
}
.spd-plan--slate .spd-plan__badge {
  color: #475569;
  background: #fff;
}

.spd-plan--brown .spd-plan__head {
  background: #f5f0eb;
}
.spd-plan--brown .spd-plan__badge {
  color: #92400e;
  background: #fff;
}

.spd-plan--lime .spd-plan__head {
  background: #f4fce8;
}
.spd-plan--lime .spd-plan__badge {
  color: #65a30d;
  background: #fff;
}

.spd-plan--navy .spd-plan__head {
  background: #e8edf5;
}
.spd-plan--navy .spd-plan__badge {
  color: #1e3a5f;
  background: #fff;
}

.spd-plan__rows {
  padding: 0.5rem 0;
}

.spd-plan__row {
  padding: 0.75rem 1rem;
  text-align: center;
  border-top: 1px solid #f0f2f5;
}

.spd-plan__row-label {
  color: #6c757b;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.spd-plan__row-price {
  color: #037cbd;
  font-size: 1.25rem;
  font-weight: 600;
}

.spd-schedule-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.spd-schedule-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #acb9c1;
}

.training-cal__item.is-schedule-fade-out {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

.training-cal__item.is-schedule-hidden {
  display: none !important;
}

.training-cal__item[data-schedule-item] {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

@media (prefers-reduced-motion: reduce) {
  .training-cal__item[data-schedule-item] {
    transition: none;
  }
}

.spd-schedule-filters select {
  min-width: 10rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e8ecef;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.875rem;
}

.spd-hall-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.spd-hall-tab {
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: #005d96;
  background: #e9f5fa;
}

.spd-hall-tab.is-active {
  background: #037cbd;
  color: #fff;
}

.spd-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.spd-branch {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.25rem;
  border: 1px solid #e8ecef;
  border-radius: 8px;
}

.spd-branch__content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.spd-branch__body {
  flex: 1;
  min-width: 0;
}

.spd-branch__map-btn {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e8ecef;
  width: 100%;
}

.spd-branch__name {
  font-weight: 600;
  color: #252a2f;
  margin-bottom: 0.5rem;
}

.spd-branch__meta {
  color: #6c757b;
  font-size: 0.875rem;
  line-height: 1.4;
}

.spd-branch__photo {
  flex-shrink: 0;
  width: 160px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  background: #f0f3f5;
}

.spd-branch__photo--empty {
  border: 1px dashed #d5dde3;
}

.spd-uniform {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.spd-uniform__img {
  height: 12rem;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.spd-calendar-wrap .training-cal {
  width: 100%;
}

.spd-calendar-wrap .training-cal__weekdays,
.spd-calendar-wrap .training-cal__row {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.spd-calendar-wrap .training-cal__cell {
  min-width: 0;
  overflow: hidden;
}

.spd-calendar-wrap .training-cal__cell:has(.training-cal__item:hover),
.spd-calendar-wrap .training-cal__cell:has(.training-cal__item:focus-within) {
  overflow: visible;
  z-index: 3;
}

.spd-calendar-wrap .training-cal__item {
  font-size: 0.7rem;
  line-height: 1.25;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.spd-calendar-wrap .training-cal__item--readonly {
  position: relative;
  overflow: hidden;
  cursor: default;
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 0.25rem 0.35rem;
  border-radius: 4px;
  background: #e9f5fa;
  margin-bottom: 0.2rem;
}

.spd-calendar-wrap .training-cal__item--readonly:hover,
.spd-calendar-wrap .training-cal__item--readonly:focus-within {
  overflow: visible;
  z-index: 5;
}

#spd-teams,
.spd-teams-page {
  scroll-margin-top: 5.5rem;
}

.spd-teams-page {
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.spd-page--teams-only .spd-teams-page {
  margin-top: 0;
}

.spd-teams-filters-panel {
  margin-bottom: 1.25rem;
}

.spd-teams-filters-panel .ss-filters.card {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .ss-filters__grid--teams {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ss-filters__control--readonly {
  background: #f7f8fa;
  cursor: default;
}

.spd-teams-empty.card {
  margin: 0;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  color: #252a2f;
  text-align: center;
}

.spd-teams-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spd-teams-list .spd-public-team-block.team-expanded-card {
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.spd-teams-list .spd-public-team-block.team-expanded-card:last-child {
  margin-bottom: 0;
}

.spd-public-team-block__toggle .team-expanded-head__row.spd-public-team-head {
  align-items: stretch;
  gap: 1rem;
  flex-wrap: nowrap;
}

.spd-public-team-head__crest {
  position: relative;
  flex-shrink: 0;
  width: 5.5rem;
  align-self: stretch;
  min-height: 5.5rem;
  border-radius: 8px;
  background: #f7f8fa;
  overflow: hidden;
}

.spd-public-team-head__crest-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.spd-public-team-head__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 2px 0;
}

.spd-public-team-head__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.spd-public-team-head__name {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.33;
  color: #001224;
  margin: 0;
}

.spd-public-team-head__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.spd-public-team-block__toggle .team-expanded-head__meta {
  align-self: center;
  padding-top: 0;
}

.spd-team-stat {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.spd-team-stat__icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.spd-team-stat__icon-wrap .spd-team-stat-icon {
  display: block;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.spd-team-stat__icon-wrap .spd-team-stat-icon--asset {
  object-fit: contain;
  object-position: center;
}

.spd-team-stat__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.spd-team-stat__label {
  font-size: 0.75rem;
  line-height: 1.25;
  color: #acb9c1;
}

.spd-team-stat__value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #001224;
  line-height: 1.25;
}

/* Плавное раскрытие как в профиле тренера (grid 0fr → 1fr) */
.spd-teams-list .spd-public-team-block .trainer-team-block__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.spd-teams-list .spd-public-team-block.is-open .trainer-team-block__body {
  grid-template-rows: 1fr;
}

.spd-teams-list .spd-public-team-block .trainer-team-block__body-inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.spd-teams-list .spd-public-team-block.is-open .trainer-team-block__body-inner {
  opacity: 1;
  transition: opacity 0.25s ease 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  .spd-teams-list .spd-public-team-block .trainer-team-block__body,
  .spd-teams-list .spd-public-team-block .trainer-team-block__head,
  .spd-teams-list .spd-public-team-block .trainer-team-block__body-inner {
    transition-duration: 0.01ms;
  }
}

.spd-public-team-block__body-inner {
  padding: 0 2px 2px;
}

.spd-teams-list .spd-public-team-block .trainer-team-block__head {
  margin-bottom: 0;
  transition: margin-bottom 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.spd-teams-list .spd-public-team-block.is-open .trainer-team-block__head {
  margin-bottom: 0.75rem;
}

.spd-team-staff {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.spd-team-staff__person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 14rem;
}

.spd-team-staff__photo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.spd-team-staff__photo--empty {
  background: #1a2840 url("/static/images/placeholders/man.svg") center/72% no-repeat;
}

.spd-team-staff__role {
  font-size: 0.75rem;
  color: #acb9c1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.spd-team-staff__name {
  font-size: 1rem;
  font-weight: 600;
  color: #001224;
}

.spd-team-roster__title,
.spd-team-kits__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #002b49;
}

.spd-team-roster {
  margin-bottom: 1.5rem;
}

.spd-team-roster__captain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  margin-left: 0.35rem;
  border-radius: 50%;
  background: #005d96;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  vertical-align: middle;
}

.spd-team-formation {
  margin-bottom: 1.5rem;
}

.pitch-player--readonly {
  pointer-events: none;
  cursor: default;
  border: none;
  background: transparent;
  padding: 0;
}

.spd-team-kits__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.spd-team-kit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.spd-team-kit__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #005d96;
}

.spd-team-kit__figure {
  max-width: 10rem;
}

.spd-team-kit__figure .kit-figure-svg {
  width: 100%;
  height: auto;
}

@media (max-width: 960px) {
  .spd-hero__row-head {
    flex-direction: column;
    align-items: center;
  }

  .spd-hero__lead {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .spd-hero__main {
    width: 100%;
    align-items: stretch;
  }

  .spd-hero__meta-skip {
    padding-left: 0;
  }

  .spd-hero-shell--has-cover .spd-hero__side {
    align-items: center;
    align-self: center;
  }

  .spd-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spd-stats {
    flex-wrap: wrap;
  }

  .spd-stat {
    min-width: calc(50% - 1.25rem);
  }

  .spd-advantages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spd-coaches-grid,
  .spd-pricing,
  .spd-branches {
    grid-template-columns: 1fr;
  }

  .spd-coaches-grid {
    grid-template-columns: repeat(auto-fill, minmax(0, 250px));
    justify-content: start;
  }

  .spd-branch__photo {
    width: 120px;
    height: 90px;
  }

  .spd-teams-list .spd-public-team-block.team-expanded-card {
    padding: 10px;
  }

  .spd-public-team-block__toggle .team-expanded-head__row.spd-public-team-head {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .spd-public-team-head__crest {
    width: 4.5rem;
    min-height: 4.5rem;
  }

  .spd-public-team-head__stats {
    gap: 0.75rem 1rem;
  }

  .spd-team-stat__icon-wrap {
    width: 1.75rem;
    height: 1.75rem;
  }

  .spd-team-stat__icon-wrap .spd-team-stat-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .spd-team-kits__grid {
    grid-template-columns: 1fr;
  }
}

/* Ученики школы */
.spd-students-section {
  padding: 0;
  background: transparent;
}

.spd-students-filters-panel {
  margin-bottom: 1rem;
}

.spd-students-filters-panel .ss-filters.card {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .ss-filters__grid--students {
    grid-template-columns: 1fr 1fr 2fr;
    align-items: end;
  }
}

.spd-students-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.6rem;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  background: #fff;
  min-height: 2.125rem;
}

.spd-students-search:focus-within {
  border-color: #037cbd;
  box-shadow: 0 0 0 2px rgba(3, 124, 189, 0.15);
}

.spd-students-search .ss-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: #252a2f;
}

.spd-students-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  padding-left: 0;
  box-shadow: none;
}

.spd-students-search__input:focus {
  border: none;
  box-shadow: none;
}

.spd-students-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.spd-students-empty {
  margin: 1rem 0 0;
  padding: 2rem;
  text-align: center;
  color: #5c6370;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.spd-students-empty.is-visible,
.spd-students-empty:not([hidden]) {
  opacity: 1;
}

.spd-student-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  background: #fff;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.32s ease,
    transform 0.32s ease;
  will-change: opacity, transform;
}

.spd-student-card.is-filtered-out {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}

.spd-student-card.is-hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .spd-student-card {
    transition: none;
  }
}

.spd-student-card__photo-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #f0f2f5;
  overflow: hidden;
}

.spd-student-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spd-student-card__photo--placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #1a2840 url("/static/images/placeholders/man.svg") center/68% no-repeat;
}

.spd-student-card__tags {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.45rem 0.35rem;
  list-style: none;
  background: linear-gradient(180deg, rgba(0, 18, 36, 0) 0%, rgba(0, 18, 36, 0.72) 100%);
}

.spd-student-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  color: #005d96;
}

.spd-student-card__tag .ss-icon,
.spd-student-card__tag .spd-team-stat-icon {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

.spd-student-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem 0.85rem;
  text-align: center;
}

.spd-student-card__name {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: #252a2f;
}

.spd-student-card__team {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.25;
  color: #5c6370;
}

@media (max-width: 1199px) {
  .spd-students-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .spd-students-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ss-filters__grid--students {
    grid-template-columns: 1fr;
  }

  .spd-students-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 479px) {
  .spd-students-grid {
    grid-template-columns: 1fr;
    max-width: 14rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Игры школы */
.spd-games-section {
  padding: 0;
  background: transparent;
}

.spd-games-board__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0;
}

.spd-games-board__toolbar .spd-games-period-tabs {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.spd-games-filters-panel {
  margin-bottom: 1rem;
}

.spd-games-filters-panel .ss-filters.card {
  margin-bottom: 0;
}

.spd-masters-section__toolbar,
.spd-students-section__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0.25rem;
}

.spd-masters-section__toolbar:empty,
.spd-students-section__toolbar:empty {
  display: none;
  margin: 0;
}

[data-collapsible-filters] .spd-games-board__toolbar .ss-filters-fab,
[data-collapsible-filters] .spd-masters-section__toolbar .ss-filters-fab,
[data-collapsible-filters] .spd-students-section__toolbar .ss-filters-fab {
  margin-bottom: 0;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .ss-filters__grid--games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
  }
}

.spd-games-board {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 1.25rem 1.5rem 1.5rem;
}

.spd-games-board .tp-res-subtabs {
  margin: 0 0 1.25rem;
  padding: 0;
}

.spd-games-period-tabs {
  margin-bottom: 0;
}

.spd-games-period-tabs .tp-res-subtab {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.spd-games-panels {
  min-height: 0;
}

.spd-games-panel[hidden] {
  display: none !important;
}

.spd-games-schedule {
  margin-top: 0;
}

.spd-game-card-wrap {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.32s ease,
    transform 0.32s ease;
  will-change: opacity, transform;
}

.spd-game-card-wrap.is-filtered-out {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

.spd-game-card-wrap.is-hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .spd-game-card-wrap {
    transition: none;
  }
}

.spd-games-board .tp-fig-schedule-empty {
  background: transparent;
  border: none;
  padding: 2rem 0;
}

.spd-games-empty {
  margin: 1rem 0 0;
  padding: 2rem 0;
  text-align: center;
  color: #5c6370;
  background: transparent;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.spd-games-empty.is-visible,
.spd-games-empty:not([hidden]) {
  opacity: 1;
}

/* Мастера спорта школы */
.spd-masters-section {
  padding: 0;
  background: transparent;
}

.spd-masters-filters-panel {
  margin-bottom: 1rem;
}

.spd-masters-filters-panel .ss-filters.card {
  margin-bottom: 0;
}

.spd-masters-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.spd-masters-empty {
  margin: 1rem 0 0;
  padding: 2rem;
  text-align: center;
  color: #5c6370;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.spd-masters-empty.is-visible,
.spd-masters-empty:not([hidden]) {
  opacity: 1;
}

.spd-master-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  background: #fff;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.32s ease,
    transform 0.32s ease;
  will-change: opacity, transform;
}

.spd-master-card.is-filtered-out {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}

.spd-master-card.is-hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .spd-master-card {
    transition: none;
  }
}

.spd-master-card__photo-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #f0f2f5;
  overflow: hidden;
}

.spd-master-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spd-master-card__photo--placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #1a2840 url("/static/images/placeholders/man.svg") center/68% no-repeat;
}

.spd-master-card__tags {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.45rem 0.35rem;
  list-style: none;
  background: linear-gradient(180deg, rgba(0, 18, 36, 0) 0%, rgba(0, 18, 36, 0.72) 100%);
}

.spd-master-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  color: #005d96;
}

.spd-master-card__tag .ss-icon,
.spd-master-card__tag .spd-team-stat-icon {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

.spd-master-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem 0.85rem;
  text-align: center;
}

.spd-master-card__name {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: #252a2f;
}

.spd-master-card__role {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.25;
  color: #5c6370;
}

@media (max-width: 1199px) {
  .spd-masters-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .spd-masters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .spd-masters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 479px) {
  .spd-masters-grid {
    grid-template-columns: 1fr;
    max-width: 14rem;
    margin-left: auto;
    margin-right: auto;
  }
}
