/* Хабы «Профессии» и «Курсы» — визуально разные маршруты, одна система ТЕРАКОР */

.hub-page {
  /* Корпоративная палитра ТЕРАКОР */
  --hub-ink: #0b1424;
  --hub-muted: #5d6d7e;
  --hub-line: #e2e8f0;
  --hub-soft: #f4f7fb;
  --hub-orange: #f39c12;
  --hub-orange-dark: #e67e22;
  --hub-gold: #ffd166;
  --hub-teal: #2e7d6e;
  --hub-blue: #2e7d6e;
  --hub-cyan: #2e7d6e;
  --hub-navy: #16213e;
  --hub-navy-deep: #0b1120;
  --hub-accent-soft: #fff8e7;
  background:
    radial-gradient(ellipse 60% 28rem at 6% 8%, rgba(46, 125, 110, 0.05), transparent 70%),
    radial-gradient(ellipse 50% 22rem at 94% 30%, rgba(243, 156, 18, 0.05), transparent 65%),
    #fff;
  color: var(--hub-ink);
}

.hub-page h1,
.hub-page h2,
.hub-page h3 {
  font-family: "Manrope", system-ui, sans-serif;
}

.hub-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
}

.hub-crumbs a {
  color: inherit;
  text-decoration: none;
  opacity: 0.72;
}

.hub-crumbs a:hover {
  opacity: 1;
  text-decoration: underline;
}

.hub-crumbs span[aria-current="page"] {
  opacity: 1;
  font-weight: 700;
}

.hub-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2.1rem 0 2.6rem;
  color: #fff;
}

.hub-hero--cinematic {
  min-height: clamp(36rem, 82vh, 48rem);
  display: flex;
  align-items: center;
  padding: 3.6rem 0 3rem;
  background: #16213e;
}

.hub-hero--cinematic::before {
  display: none;
}

.hub-hero--cinematic .hub-hero__scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hub-hero--cinematic .hub-hero__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hub-hero--cinematic .hub-hero__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0b1120 0%, #0b1120 30%, rgba(11, 17, 32, 0.88) 40%, rgba(11, 17, 32, 0.28) 58%, rgba(11, 17, 32, 0.08) 100%),
    linear-gradient(180deg, rgba(11, 17, 32, 0.2) 0%, transparent 18%, transparent 80%, rgba(11, 17, 32, 0.28) 100%);
}

.hub-hero--cinematic .hub-hero__inner {
  max-width: 38rem;
}

.hub-hero--cinematic h1 {
  font-size: clamp(2.15rem, 5vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  word-spacing: 0.04em;
  line-height: 1.08;
}

.hub-hero--cinematic h1 span {
  color: #f39c12 !important;
  -webkit-text-fill-color: #f39c12 !important;
}

.hub-hero--cinematic .hub-hero__lead {
  max-width: 34rem;
  color: #e2e8f0 !important;
  -webkit-text-fill-color: #e2e8f0 !important;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  word-spacing: 0.05em;
}

.hub-hero--cinematic .hub-btn {
  border-radius: 999px;
  min-height: 3.05rem;
  padding: 0.75rem 1.35rem;
}

.hub-hero--cinematic .hub-btn--primary {
  box-shadow: 0 12px 28px rgba(243, 156, 18, 0.38);
}

.hub-hero--cinematic .hub-btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(10px);
}

.hub-hero--cinematic .hub-facts {
  gap: 0.85rem 1.15rem;
}

.hub-hero--cinematic .hub-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #e2e8f0 !important;
  -webkit-text-fill-color: #e2e8f0 !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  word-spacing: 0.04em;
}

.hub-hero--cinematic .hub-facts i {
  color: #ffd166;
}

.hub-hero--cinematic .hub-exam {
  padding: 1.5rem 1.45rem 1.55rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.45rem;
  background: #fff;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hub-hero--cinematic .hub-exam,
.hub-hero--cinematic .hub-exam h2,
.hub-hero--cinematic .hub-exam p,
.hub-hero--cinematic .hub-exam__lead {
  color: #16213e !important;
  -webkit-text-fill-color: #16213e !important;
}

.hub-hero--cinematic .hub-exam__badge {
  border-color: rgba(243, 156, 18, 0.28);
  background: #fff8e7;
  color: #e67e22 !important;
  -webkit-text-fill-color: #e67e22 !important;
}

.hub-hero--cinematic .hub-exam h2 {
  color: #16213e !important;
  -webkit-text-fill-color: #16213e !important;
  font-weight: 800;
}

.hub-hero--cinematic .hub-exam__lead {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  word-spacing: 0.04em;
}

.hub-hero--cinematic .hub-exam__tracks {
  margin-top: 1.05rem;
}

.hub-hero--cinematic .hub-exam__track {
  min-height: 2.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #16213e !important;
  -webkit-text-fill-color: #16213e !important;
  font-weight: 800;
  box-shadow: none;
}

.hub-hero--cinematic .hub-exam__track:hover,
.hub-hero--cinematic .hub-exam__track:focus-visible {
  background: #fff8e7;
  border-color: #ffd166;
  color: #9a5b00 !important;
  -webkit-text-fill-color: #9a5b00 !important;
}

.hub-hero--cinematic .hub-exam__track--wide {
  grid-column: 1 / -1;
  max-width: 11.5rem;
  justify-self: center;
}

.hub-hero--cinematic .hub-exam__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 3rem;
  margin-top: 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f39c12 0%, #f39c12 100%);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 12px 26px rgba(243, 156, 18, 0.36);
}

.hub-hero--cinematic .hub-exam__cta:hover,
.hub-hero--cinematic .hub-exam__cta:focus-visible {
  filter: brightness(1.05);
  color: #fff !important;
}

.hub-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 2.6rem 2.6rem;
  mask-image: linear-gradient(#000, transparent 88%);
}

.hub-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(17.5rem, 23rem);
  gap: 1.75rem 2.25rem;
  align-items: center;
}

.hub-hero__inner {
  position: relative;
  max-width: 46rem;
}

.hub-hero .hub-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffd166 !important;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-hero h1 {
  margin: 0;
  color: #fff !important;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hub-hero .hub-hero__lead {
  max-width: 40rem;
  margin: 0.9rem 0 0;
  color: #e2e8f0 !important;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.65;
}

.hub-exam {
  position: relative;
  scroll-margin-top: 5.5rem;
  padding: 1.2rem 1.25rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 1.15rem;
  background:
    linear-gradient(165deg, rgba(30, 58, 138, 0.28), transparent 46%),
    rgba(8, 15, 28, 0.78);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  color: #f8fafc;
}

.hub-hero .hub-exam__badge {
  display: inline-flex;
  margin: 0 0 0.7rem;
  padding: 0.22rem 0.58rem;
  border: 1px solid rgba(243, 156, 18, 0.38);
  border-radius: 999px;
  background: rgba(243, 156, 18, 0.12);
  color: #ffd166 !important;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-hero .hub-exam h2 {
  margin: 0;
  color: #fff !important;
  font-size: clamp(1.18rem, 2.1vw, 1.48rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hub-hero .hub-exam__lead {
  margin: 0.55rem 0 0;
  color: #e2e8f0 !important;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.55;
}

.hub-hero .hub-exam__label {
  margin: 0.95rem 0 0.5rem;
  color: #cbd5e1 !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-exam__tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.hub-hero .hub-exam__track {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
}

.hub-hero .hub-exam__track:hover,
.hub-hero .hub-exam__track:focus-visible {
  border-color: rgba(243, 156, 18, 0.75);
  background: rgba(243, 156, 18, 0.18);
  color: #fff !important;
}

.hub-hero .hub-exam__note {
  margin: 0.85rem 0 0;
  color: #cbd5e1 !important;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

.hub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none !important;
}

.hub-btn--primary {
  background: var(--hub-orange);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(243, 156, 18, 0.22);
}

.hub-btn--ghost {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.28);
  color: #fff !important;
}

.hub-btn--light {
  background: #fff;
  color: var(--hub-ink) !important;
  border-color: var(--hub-line);
}

.hub-btn--outline {
  border-color: var(--hub-line);
  background: #fff;
  color: var(--hub-blue) !important;
}

.hub-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.hub-facts li {
  padding: 0.32rem 0.62rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  color: #f1f5f9 !important;
  font-size: 0.74rem;
  font-weight: 600;
}

.hub-section {
  padding: 2.6rem 0;
}

.hub-section--soft {
  background: var(--hub-soft);
}

.hub-section--dark {
  background: var(--hub-navy);
  color: #e2e8f0;
}

.hub-section__head {
  max-width: 42rem;
  margin: 0 0 1.6rem;
}

.hub-section__head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.04em;
}

.hub-section__head p {
  margin: 0.55rem 0 0;
  color: var(--hub-muted);
  line-height: 1.6;
}

.hub-section--dark .hub-section__head p {
  color: #94a3b8;
}

.hub-prof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.hub-prof {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem 1.25rem 1.15rem;
  border: 1px solid var(--hub-line);
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 1rem 2.4rem rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-prof:hover {
  border-color: #7eb8ad;
  box-shadow: 0 1.1rem 2.6rem rgba(46, 125, 110, 0.1);
}

.hub-prof__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.95rem;
}

.hub-prof__mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.8rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hub-prof__mark--java { background: linear-gradient(145deg, #f39c12, #e67e22); }
.hub-prof__mark--python { background: linear-gradient(145deg, #1b5e50, #164e45); }
.hub-prof__mark--dotnet { background: linear-gradient(145deg, #512bd4, #3b1a8a); font-size: 0.62rem; }
.hub-prof__mark--javascript { background: #f7df1e; color: #1a1a1a; }
.hub-prof__mark--php { background: linear-gradient(145deg, #777bb4, #4f5b93); }
.hub-prof__mark--postgresql { background: linear-gradient(145deg, #336791, #1f4b6e); }

.hub-prof__label {
  color: var(--hub-orange);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-prof h3 {
  margin: 0 0 0.45rem;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.hub-prof__offer {
  min-height: 3.4rem;
  margin: 0 0 0.85rem;
  color: var(--hub-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.hub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.95rem;
}

.hub-tags span {
  padding: 0.22rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 700;
}

.hub-meta {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  color: #475569;
  font-size: 0.8rem;
}

.hub-meta li {
  display: flex;
  gap: 0.45rem;
}

.hub-meta i {
  color: #2e7d6e;
}

.hub-prof__price {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--hub-line);
}

.hub-prof__price strong {
  display: block;
  font-size: 1.35rem;
}

.hub-prof__price small {
  color: var(--hub-muted);
  font-size: 0.75rem;
}

.hub-prof__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  color: var(--hub-blue) !important;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none !important;
}

.hub-prof__more {
  display: inline-block;
  margin-top: 0.45rem;
  color: #64748b !important;
  font-size: 0.76rem;
  text-decoration: none !important;
}

.hub-prof__more:hover {
  color: var(--hub-blue) !important;
}

.hub-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hub-compare article {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.45rem;
  border: 1px solid var(--hub-line);
  border-radius: 1.2rem;
  background: #fff;
}

.hub-compare article:first-child {
  border-color: #7eb8ad;
  background: linear-gradient(180deg, #fff, #f4f7fb);
}

.hub-compare span {
  color: var(--hub-orange);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hub-compare h3 {
  margin: 0.35rem 0 0.85rem;
  font-size: 1.2rem;
}

.hub-compare ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #475569;
  font-size: 0.88rem;
}

.hub-compare li::before {
  content: "→ ";
  color: #2e7d6e;
  font-weight: 800;
}

.hub-compare .hub-btn {
  margin-top: 1.2rem;
  align-self: flex-start;
}

.hub-entry,
.hub-final,
.hub-cross {
  border: 1px solid var(--hub-line);
  border-radius: 1.25rem;
  background: #fff;
}

.hub-entry,
.hub-final,
.hub-cross {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.4rem 1.5rem;
}

.hub-entry h2,
.hub-final h2,
.hub-cross h2 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}

.hub-entry p,
.hub-final p,
.hub-cross p {
  margin: 0;
  max-width: 40rem;
  color: var(--hub-muted);
  line-height: 1.6;
}

.hub-entry__actions,
.hub-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hub-why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hub-why article {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem 1.3rem 1.4rem;
  border: 1px solid #e8eef5;
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hub-why article:hover {
  transform: translateY(-4px);
  border-color: #ffd166;
  box-shadow: 0 16px 36px rgba(243, 156, 18, 0.12);
}

.hub-why__icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 0.95rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, #fff8e7, #fff3d6);
  color: #e67e22;
  font-size: 1.15rem;
}

.hub-why h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.hub-why p {
  margin: 0;
  color: #475569 !important;
  font-size: 0.9rem;
  line-height: 1.55;
}

.hub-toolbar {
  --hub-toolbar-bg: rgba(244, 247, 251, 0.94);
  position: sticky;
  top: var(--hub-chrome-offset, 10.5rem);
  z-index: 40;
  padding: 0.7rem 0 0.75rem;
  background: var(--hub-toolbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hub-line);
}

.hub-toolbar__inner {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.hub-toolbar__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.45rem 1.5rem;
  min-width: 0;
}

.hub-filter-group {
  display: grid;
  grid-template-columns: 6.75rem minmax(0, 1fr);
  align-items: center;
  gap: 0.4rem 0.75rem;
  min-width: 0;
}

.hub-filter-group__label {
  color: #64748b;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.hub-filters-clip {
  position: relative;
  min-width: 0;
}

.hub-filter-group--tracks .hub-filters-clip::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.1rem;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--hub-toolbar-bg));
}

.hub-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.12rem 0.15rem 0.22rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}

.hub-filters::-webkit-scrollbar {
  display: none;
}

.hub-filter {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  min-height: 2.05rem;
  padding: 0.35rem 0.85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #2c3e50;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hub-filter:hover {
  border-color: rgba(243, 156, 18, 0.55);
  background: #fffaf3;
}

.hub-filter.is-active {
  border-color: #f39c12;
  background: #f39c12;
  color: #fff;
  box-shadow: 0 6px 16px rgba(243, 156, 18, 0.28);
}

.hub-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.hub-course-grid .prof-card-wrap {
  min-width: 0;
}

.hub-track-block {
  margin: 0 0 2.1rem;
  padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid #e8eef5;
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.hub-track-block:last-child {
  margin-bottom: 0;
}

.hub-track-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.2rem;
  margin: 0 0 1.15rem;
  padding: 0 0.15rem;
}

.hub-track-block__title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.hub-track-block__mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hub-track-block__mark--java { background: linear-gradient(145deg, #f39c12, #e67e22); }
.hub-track-block__mark--python { background: linear-gradient(145deg, #1b5e50, #164e45); }
.hub-track-block__mark--dotnet { background: linear-gradient(145deg, #512bd4, #3b1a8a); font-size: 0.62rem; }
.hub-track-block__mark--javascript { background: #f7df1e; color: #1a1a1a; }
.hub-track-block__mark--php { background: linear-gradient(145deg, #777bb4, #4f5b93); }
.hub-track-block__mark--postgresql { background: linear-gradient(145deg, #336791, #1f4b6e); }
.hub-track-block__mark--rust { background: linear-gradient(145deg, #dea584, #b45309); color: #1a1a1a; }

.hub-track-block__head h3 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.hub-track-block__head p {
  margin: 0.2rem 0 0;
  color: #64748b !important;
  font-size: 0.88rem;
}

.hub-track-block__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
}

.hub-track-block__count {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}

.hub-track-block__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hub-track-block__links a {
  color: #2e7d6e !important;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none !important;
}

.hub-track-block__links a:hover {
  text-decoration: underline !important;
}

.hub-course-card__price {
  margin: auto 0 0.85rem !important;
  color: #111827 !important;
  font-size: 1.15rem;
  font-weight: 800;
}

[data-hub-courses-page] .hub-section {
  background:
    radial-gradient(ellipse 55% 20rem at 12% 0%, rgba(46, 125, 110, 0.06), transparent 70%),
    radial-gradient(ellipse 45% 18rem at 90% 8%, rgba(243, 156, 18, 0.06), transparent 65%),
    linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
}

[data-hub-courses-page] .hub-section__head {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

[data-hub-courses-page] .hub-section__head h2 {
  color: #16213e !important;
  font-weight: 800;
  letter-spacing: -0.04em;
}

[data-hub-courses-page] .hub-track-block {
  border-color: rgba(22, 33, 62, 0.08);
  background: #fff;
  box-shadow: 0 1rem 2.4rem rgba(22, 33, 62, 0.06);
}

[data-hub-courses-page] .hub-track-block:hover {
  border-color: rgba(243, 156, 18, 0.35);
}

[data-hub-courses-page] .hub-cross {
  margin-top: 2rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(22, 33, 62, 0.08);
  border-radius: 1.2rem;
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 55%, #0b1120 100%);
  color: #e2e8f0;
  box-shadow: 0 1.2rem 2.8rem rgba(22, 33, 62, 0.18);
}

[data-hub-courses-page] .hub-cross h2 {
  color: #fff !important;
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 800;
}

[data-hub-courses-page] .hub-cross p {
  color: rgba(226, 232, 240, 0.88) !important;
  margin: 0;
  line-height: 1.55;
}

[data-hub-courses-page] .hub-cross .hub-btn--outline {
  border-color: rgba(255, 209, 102, 0.55);
  background: #f39c12;
  color: #16213e !important;
  font-weight: 800;
}

[data-hub-courses-page] .hub-cross .hub-btn--outline:hover {
  background: #ffd166;
  border-color: #ffd166;
  color: #0b1120 !important;
}

[data-hub-courses-page] .hub-hero--cinematic .hub-hero__scene::after {
  background:
    linear-gradient(90deg, #0b1120 0%, rgba(22, 33, 62, 0.92) 28%, rgba(22, 33, 62, 0.55) 48%, rgba(22, 33, 62, 0.18) 68%, rgba(11, 17, 32, 0.08) 100%),
    linear-gradient(180deg, rgba(11, 17, 32, 0.22) 0%, transparent 20%, transparent 78%, rgba(11, 17, 32, 0.35) 100%),
    radial-gradient(ellipse 40% 50% at 70% 40%, rgba(46, 125, 110, 0.18), transparent 70%);
}

.hub-course {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.05rem 1.05rem 1rem;
  border: 1px solid var(--hub-line);
  border-radius: 1.05rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-course:hover {
  border-color: rgba(46, 125, 110, 0.45);
  box-shadow: 0 0.8rem 1.8rem rgba(46, 125, 110, 0.1);
}

.hub-course__marker {
  width: max-content;
  margin-bottom: 0.55rem;
  padding: 0.16rem 0.45rem;
  border-radius: 0.35rem;
  background: #16213e;
  color: #ffd166;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hub-course h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  line-height: 1.3;
}

.hub-course__stack {
  margin: 0 0 0.55rem;
  color: #2e7d6e;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
}

.hub-course__desc {
  flex: 1;
  margin: 0 0 0.85rem;
  color: var(--hub-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.hub-course__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0 0 0.7rem;
  color: #64748b;
  font-size: 0.72rem;
}

.hub-course__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid var(--hub-line);
}

.hub-course__foot strong {
  font-size: 1.02rem;
}

.hub-course__foot a {
  color: var(--hub-blue) !important;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none !important;
}

.hub-empty {
  display: none;
  margin: 1.2rem 0 0;
  color: var(--hub-muted);
  text-align: center;
}

.hub-empty.is-visible {
  display: block;
}

.hub-final {
  background: linear-gradient(145deg, #102a4b, #081426);
  border-color: #1e3a5f;
  color: #e2e8f0;
}

.hub-final h2 {
  color: #fff !important;
}

.hub-final p {
  color: #e2e8f0 !important;
}

@media (max-width: 1199.98px) {
  .hub-course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .hub-hero--cinematic {
    min-height: 0;
    padding: 2.1rem 0 2rem;
  }

  .hub-hero--cinematic .hub-hero__inner {
    max-width: none;
  }

  .hub-hero--cinematic .hub-exam__track--wide {
    max-width: none;
    justify-self: stretch;
  }

  .hub-hero {
    padding: 1.35rem 0 1.75rem;
    overflow-x: clip;
  }

  .hub-hero__layout {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    align-items: stretch;
  }

  .hub-hero__inner,
  .hub-exam {
    min-width: 0;
    max-width: 100%;
  }

  .hub-exam {
    max-width: none;
    padding: 1rem 0.95rem 1.05rem;
  }

  .hub-hero h1 {
    font-size: clamp(1.35rem, 6.2vw, 1.75rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
  }

  .hub-hero .hub-hero__lead {
    margin-top: 0.7rem;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hub-hero .hub-exam h2 {
    font-size: clamp(1.05rem, 4.5vw, 1.25rem);
    line-height: 1.25;
  }

  .hub-hero .hub-exam__lead {
    font-size: 0.88rem;
  }

  .hub-hero__actions {
    margin-top: 1rem;
    gap: 0.55rem;
  }

  .hub-facts {
    margin-top: 1rem;
    gap: 0.35rem;
  }

  .hub-facts li {
    font-size: 0.7rem;
    padding: 0.28rem 0.5rem;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hub-exam__tracks {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .hub-hero .hub-exam__track {
    min-height: 2.35rem;
    padding: 0.4rem 0.4rem;
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .hub-prof-grid,
  .hub-compare,
  .hub-why {
    grid-template-columns: 1fr 1fr;
  }

  .hub-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-toolbar__meta {
    grid-template-columns: 1fr;
  }

  .hub-filter-group {
    grid-template-columns: 1fr;
    gap: 0.28rem;
  }
}

@media (max-width: 767.98px) {
  .hub-toolbar {
    padding: 0.55rem 0 0.6rem;
  }

  .hub-filter {
    min-height: 2.2rem;
  }

  .hub-hero .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .hub-hero__actions .hub-btn {
    width: 100%;
    min-height: 2.65rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.86rem;
  }

  .hub-exam__tracks {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575.98px) {
  .hub-hero {
    padding: 1.1rem 0 1.4rem;
  }

  .hub-hero .hub-badge {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    padding: 0.24rem 0.55rem;
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
    border-radius: 0.65rem;
  }

  .hub-hero h1 {
    font-size: clamp(1.22rem, 6.8vw, 1.48rem);
  }

  .hub-hero .hub-hero__lead {
    font-size: 0.9rem;
  }

  .hub-exam__tracks {
    grid-template-columns: 1fr;
  }

  .hub-hero .hub-exam__track {
    justify-content: flex-start;
    padding-left: 0.75rem;
    font-size: 0.88rem;
  }

  .hub-prof-grid,
  .hub-compare,
  .hub-why,
  .hub-course-grid {
    grid-template-columns: 1fr;
  }

  .hub-why article {
    border-right: 0;
  }

  .hub-btn {
    width: 100%;
  }

  .hub-entry,
  .hub-final,
  .hub-cross {
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-prof,
  .hub-course,
  .hub-btn,
  .hub-why article {
    transition: none;
  }
}
