/* v34: навигация без “Ещё” и пролистывание материалов */
.site-header {
  gap: 10px;
}

.site-nav-shell {
  flex: 1 1 460px;
  min-width: 220px;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.site-nav-shell::before,
.site-nav-shell::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22px;
  pointer-events: none;
  z-index: 2;
}

.site-nav-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,0));
}

.site-nav-shell::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255,255,255,.98), rgba(255,255,255,0));
}

.site-nav.site-nav-scroll {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 22px 7px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.site-nav.site-nav-scroll::-webkit-scrollbar {
  height: 6px;
}

.site-nav.site-nav-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(37, 99, 235, .22);
}

.site-nav.site-nav-scroll > a {
  flex: 0 0 auto;
  max-width: none;
  scroll-snap-align: start;
  border-radius: 999px;
  padding: 9px 13px;
  min-height: 38px;
  background: rgba(255, 255, 255, .84);
  color: #10264f;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.site-nav.site-nav-scroll > a:hover,
.site-nav.site-nav-scroll > a.active {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(79, 70, 229, .24);
}

.nav-more {
  display: none !important;
}

.content-carousel {
  position: relative;
  width: 100%;
}

.content-carousel-viewport,
.tile-carousel-viewport {
  overflow: hidden;
  border-radius: 22px;
}

.content-carousel-track,
.tile-carousel-track {
  display: flex;
  transition: transform .28s ease;
  will-change: transform;
}

.content-carousel-slide,
.tile-carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.content-carousel-slide > .content-card {
  height: 100%;
  margin: 0;
}

.content-carousel-controls,
.tile-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.carousel-arrow,
.tile-carousel-arrow {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #eef2ff;
  color: #2457d6;
  font-size: 26px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}

.carousel-arrow:hover,
.tile-carousel-arrow:hover {
  transform: translateY(-1px);
  background: #2457d6;
  color: #fff;
}

.carousel-arrow:disabled,
.tile-carousel-arrow:disabled {
  opacity: .35;
  cursor: default;
  transform: none;
}

.carousel-dots,
.tile-carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.carousel-dot,
.tile-carousel-dot {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: rgba(100, 116, 139, .36);
  transition: width .16s ease, background .16s ease;
}

.carousel-dot.active,
.tile-carousel-dot.active {
  width: 22px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.tile-content-carousel {
  position: relative;
  z-index: 2;
  margin-top: auto;
  min-width: 0;
}

.tile-content-carousel .tile-latest {
  margin-top: 8px;
  max-width: 100%;
}

.tile-content-carousel .tile-carousel-controls {
  margin-top: 7px;
  justify-content: flex-start;
}

.tile-content-carousel .tile-carousel-arrow {
  width: 24px;
  height: 24px;
  font-size: 18px;
  background: rgba(255, 255, 255, .25);
  color: currentColor;
  border: 1px solid rgba(255,255,255,.25);
}

.tile-content-carousel .tile-carousel-dot {
  background: rgba(255,255,255,.42);
}

.tile-content-carousel .tile-carousel-dot.active {
  background: currentColor;
}

.tile-content-source-box {
  border: 1px solid rgba(148, 163, 184, .28);
  background: #f8fbff;
  border-radius: 18px;
  padding: 12px;
}

.carousel-source-field[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .site-nav-shell {
    display: none !important;
  }

  .content-carousel-controls {
    margin-top: 10px;
  }

  .carousel-arrow {
    width: 34px;
    height: 34px;
  }
}
