/* Boomba home — noir editorial layout */

.home-catalog {
  float: left;
  width: 100%;
  margin: 0 0 40px;
  padding: 0 4px 24px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  margin: 8px 0 28px;
  padding: clamp(28px, 5vw, 56px) clamp(18px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(120deg, transparent 0 48%, rgba(255, 255, 255, 0.03) 48% 52%, transparent 52%),
    radial-gradient(700px 360px at 85% 10%, rgba(255, 255, 255, 0.08), transparent 60%),
    #0a0a0a;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 4px
    );
  pointer-events: none;
  opacity: 0.7;
}

.home-hero__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  top: -30%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: boombaScan 7s linear infinite;
  pointer-events: none;
}

@keyframes boombaScan {
  0% { transform: translateY(0); }
  100% { transform: translateY(420%); }
}

.home-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
}

.home-hero__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.home-hero__mark {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.home-hero__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.home-hero__title {
  margin: 0;
  font-family: var(--font-family-heading);
  font-size: clamp(2.8rem, 1.8rem + 4vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  color: #fff;
  border: 0;
  padding: 0;
}

.home-hero__lead {
  max-width: 34rem;
  margin: 0 0 24px;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 0;
  font-family: var(--font-family-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.home-btn--primary {
  color: #fff;
  background: var(--color-accent, #ff3355);
}

.home-btn--primary:hover {
  color: #fff;
  background: var(--color-accent-hover, #ff5270);
  transform: translateY(-2px);
  opacity: 1;
}

.home-btn--ghost {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.home-btn--ghost:hover {
  color: #fff;
  background: rgba(255, 51, 85, 0.16);
  border-color: var(--color-accent, #ff3355);
  transform: translateY(-2px);
  opacity: 1;
}

.home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.home-hero__meta span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.home-hero__showcase {
  min-width: 0;
}

.home-hero__stage {
  position: relative;
  aspect-ratio: 8 / 5;
  min-height: 140px;
  max-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #111;
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s ease;
}

.home-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.home-hero__slide-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.home-hero__slide-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-hero__slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 14px 14px;
  font-family: var(--font-family-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
}

.home-hero__thumbs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.home-hero__thumb {
  flex: 0 0 auto;
  width: 48px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  opacity: 0.55;
  transition: border-color var(--transition-base), transform var(--transition-base), opacity var(--transition-base);
}

.home-hero__thumb.is-active {
  border-color: var(--color-accent, #ff3355);
  transform: translateY(-2px);
  opacity: 1;
}

.home-hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-intro-more {
  margin: 0 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.72);
}

.home-intro-more summary {
  cursor: pointer;
  padding: 14px 16px;
  font-family: var(--font-family-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  list-style: none;
}

.home-intro-more summary::-webkit-details-marker {
  display: none;
}

.home-intro-more[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.home-intro-more p {
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
}

.home-intro-more p + p {
  padding-top: 0;
}

.home-block {
  margin: 0 0 28px;
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.home-block--feature {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 50%),
    rgba(255, 255, 255, 0.03);
}

.home-block__intro {
  margin-bottom: 16px;
}

.home-block__title {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.home-block__title a {
  color: inherit;
}

.home-block__desc {
  margin: 0;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.5;
}

.home-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-chips a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-base);
}

.home-chips a:hover {
  background: var(--color-accent, #ff3355);
  border-color: var(--color-accent, #ff3355);
  color: #fff;
  transform: translateY(-2px);
  opacity: 1;
}

.home-chips__all {
  background: var(--color-accent, #ff3355) !important;
  border-color: var(--color-accent, #ff3355) !important;
  color: #fff !important;
}

.home-mosaic {
  display: grid;
  gap: 12px;
}

.home-mosaic--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-mosaic--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 220px;
  padding: 18px 16px;
  border-radius: 0;
  text-decoration: none;
  color: #fff;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  transition: transform var(--transition-slow), border-color var(--transition-base);
}

.home-tile__preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.home-tile__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-tile__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.15) 100%);
}

.home-tile:hover .home-tile__preview img {
  transform: scale(1.08);
}

.home-tile__title,
.home-tile__text,
.home-tile__index {
  position: relative;
  z-index: 2;
}

.home-tile__index {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-family-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
}

.home-tile:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent, #ff3355);
  color: #fff;
  opacity: 1;
}

.home-tile:hover .home-tile__index {
  color: var(--color-accent, #ff3355);
}

.home-tile__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
}

.home-tile__text {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

.allcats-section {
  margin: 0 0 28px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.allcats-section__head {
  margin-bottom: 16px;
}

.allcats-title {
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.allcats-title a {
  color: inherit;
}

.allcats-section__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.home-catalog .allcats-grid--round {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 14px 12px;
}

.home-catalog .allcats-grid--round .itemcatsmotrt {
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

.home-catalog .allcats-grid--round .catmentumb__media {
  width: 96px;
  height: 96px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.home-catalog .allcats-grid--round .itemcatsmotrt:hover .catmentumb__media {
  border-color: var(--color-accent, #ff3355);
  box-shadow: none;
}

.home-catalog .allcats-grid--round .catlink {
  color: rgba(255, 255, 255, 0.78);
  max-width: 110px;
  letter-spacing: 0.02em;
}

.home-catalog .allcats-grid--round .itemcatsmotrt:hover .catlink {
  color: #fff;
}

.home-catalog .allcats-grid--round .viewnewscount {
  top: -4px;
  left: auto;
  right: calc(50% - 52px);
  transform: none;
  min-width: 36px;
  padding: 3px 6px;
  border-radius: 0;
  background: #fff;
  color: #0a0a0a;
  font-weight: 800;
  backdrop-filter: none;
}

.home-hubs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-hub {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  text-decoration: none;
  color: #fff;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.home-hub:hover {
  border-color: #fff;
  transform: translateY(-2px);
  opacity: 1;
  color: #fff;
}

.home-hub__preview,
.home-hub .catpreview,
.home-hub .catpreview__media {
  display: block;
  width: 88px;
  height: 88px;
  overflow: hidden;
}

.home-hub .catpreview__media img,
.home-hub__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-hub__title {
  display: block;
  font-family: var(--font-family-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-hub__desc {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.cat-carousel {
  float: none;
  clear: both;
  width: 100%;
  margin: 0 0 28px;
  padding: var(--spacing-lg);
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  box-shadow: none;
}

.cat-carousel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.cat-carousel__title {
  margin: 0 0 4px;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.cat-carousel__desc {
  margin: 0;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
}

.cat-carousel__nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cat-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.cat-carousel__btn:hover:not(:disabled) {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.cat-carousel__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.cat-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.cat-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  width: max-content;
}

.cat-carousel__slide {
  flex: 0 0 220px;
  width: 220px;
  scroll-snap-align: start;
}

.cat-carousel__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.cat-carousel__media {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #111;
}

.cat-carousel__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.cat-carousel__link:hover .cat-carousel__media img {
  transform: scale(1.05);
}

.cat-carousel__caption {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
}

.home-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-strip__item {
  padding: 18px 16px;
  background: #0a0a0a;
  text-align: left;
}

.home-strip__num {
  display: block;
  font-family: var(--font-family-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.home-strip__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 1000px) {
  .home-hero__layout {
    grid-template-columns: 1fr;
  }

  .home-hero__showcase {
    order: -1;
  }

  .home-mosaic--4,
  .home-hubs,
  .home-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-mosaic--4,
  .home-mosaic--3,
  .home-hubs,
  .home-strip {
    grid-template-columns: 1fr;
  }

  .home-hub {
    grid-template-columns: 72px 1fr;
  }

  .home-hero__stage {
    aspect-ratio: 16 / 9;
    min-height: 120px;
    max-height: 200px;
  }

  .home-catalog .allcats-grid--round {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__scan,
  .home-hero__slide {
    animation: none;
    transition: none;
  }
}
