/* ==========================================================================
   Страница: График наборов (page-schedule.css)
   Mobile First
   ========================================================================== */

.nav__link--active {
  color: var(--color-accent);
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 20px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5.6px 8px;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "›";
  color: var(--color-text-muted);
  opacity: 0.7;
}

.breadcrumbs__link:hover {
  color: var(--color-accent);
}

.breadcrumbs__current {
  color: var(--color-text);
  font-weight: 600;
}

/* Hero — текст + фото машины */
.sch-hero {
  padding-top: clamp(12px, 8px + 0.6vw, 20px);
  padding-bottom: clamp(28px, 20px + 1.5vw, 48px);
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(227, 6, 19, 0.07), transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--color-bg-soft) 100%);
}

.sch-hero__grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

.sch-hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.sch-hero__accent {
  color: var(--color-accent);
}

.sch-hero__text {
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  max-width: 640px;
  line-height: 1.55;
  margin-bottom: 0;
}

.sch-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.sch-hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: transparent;
}

.sch-hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  max-height: min(360px, 48vw);
}


/* Filters */
.sch-filters {
  margin-top: -24px;
  position: relative;
  z-index: 2;
  background: radial-gradient(ellipse 70% 50% at 100% 0%, rgba(227, 6, 19, 0.07), transparent 50%), linear-gradient(180deg, #fff 0%, var(--color-bg-soft) 100%);
}

.sch-filters__panel {
  padding: clamp(16px, 12px + 1vw, 24px);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(21, 36, 69, 0.12);
}

.sch-filters__label {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 13.6px;
  color: var(--color-text);
}

.sch-filters__tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10.4px;
}

.sch-filters__tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14.4px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
  text-align: left;
  transition: border-color var(--transition), background-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.sch-filters__tab:hover {
  border-color: rgba(21, 36, 69, 0.4);
}

.sch-filters__tab.is-active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(21, 36, 69, 0.28);
}

.sch-filters__tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--color-navy);
}

.sch-filters__tab-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.sch-filters__tab.is-active .sch-filters__tab-icon {
  color: var(--color-white);
}

.sch-filters__tab-text {
  display: flex;
  flex-direction: column;
  gap: 1.6px;
  min-width: 0;
}

.sch-filters__tab-title {
  font-size: var(--fs-sm);
  font-weight: 800;
  line-height: 1.2;
}

.sch-filters__tab-note {
  font-size: var(--fs-xs);
  opacity: 0.7;
  font-weight: 600;
}

/* Groups grid */
.sch-groups {
  padding-top: clamp(28px, 20px + 1.5vw, 48px);
  padding-bottom: clamp(24px, 16px + 1.5vw, 40px);
  background: var(--color-bg-soft);
}

.sch-groups__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10.4px 16px;
}

.sch-groups__count {
  display: inline-flex;
  align-items: center;
  padding: 4.8px 11.2px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: var(--fs-xs);
  font-weight: 800;
}

.sch-groups__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.sch-groups__more {
  display: flex;
  justify-content: center;
  margin-top: 14.4px;
}

.sch-groups__more-btn {
  gap: 8px;
}

.sch-groups__more-btn[hidden] {
  display: none;
}

/* Schedule card styles live in style.css (shared with homepage) */

/* CTA banner */
.sch-cta {
  padding-block: 0;
  background: transparent;
  margin-top: 44px;
  margin-bottom: 44px;
}

.sch-cta__banner {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: clamp(20px, 16px + 1.2vw, 28px) clamp(20px, 16px + 1.5vw, 32px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 70% 90% at 88% 50%, rgba(70, 120, 220, 0.35), transparent 55%),
    linear-gradient(105deg, #152445 0%, #1a3a6e 55%, #2450a0 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.sch-cta__icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: var(--color-white);
  flex-shrink: 0;
}

.sch-cta__title {
  font-size: clamp(20px, 17px + 0.7vw, 26px);
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.sch-cta__text {
  font-size: var(--fs-sm);
  opacity: 0.88;
  max-width: 520px;
  line-height: 1.45;
}

.sch-cta__link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sch-cta__link:hover {
  opacity: 1;
}

.sch-cta__btn {
  justify-self: start;
}

.btn--solid-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-white);
  color: var(--color-navy);
  border: 1.5px solid var(--color-white);
  font-weight: 700;
}

.btn--solid-light:hover {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
}

.btn--outline-light:hover {
  background: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-white);
}

/* Empty filter state */
.sch-groups__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Breakpoints */
@media (min-width: 480px) {
  .sch-filters__tabs {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .sch-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
  }

  .sch-hero__img {
    max-height: 380px;
  }

  .sch-filters__tabs {
    grid-template-columns: repeat(4, 1fr);
  }

  .sch-groups__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sch-cta__banner {
    grid-template-columns: auto 1fr auto;
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .sch-groups__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sch-filters {
    margin-top: -36px;
    position: relative;
    z-index: 2;
    background: radial-gradient(ellipse 70% 50% at 100% 0%, rgba(227, 6, 19, 0.07), transparent 50%), linear-gradient(180deg, #fff 0%, var(--color-bg-soft) 100%);
  }
}

@media (min-width: 1280px) {
  .sch-hero__grid {
    gap: 40px;
  }

  .sch-hero__img {
    max-height: 420px;
  }
}
