/* Hub tiles from hybrid demo — production */
:root { --pad: 14px; --max: 1120px; }
.hero {
  position: relative;
  padding: 14px var(--pad) 10px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 8% 0 auto;
  height: 60%;
  background: radial-gradient(ellipse at center, var(--brand-a16), transparent 68%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
}
.hero__logo {
  width: min(200px, 56vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55));
}
.hero__tag {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 28em;
}
.hero__cta {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.toolbar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 6px var(--pad) 2px;
}
.chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  min-height: 36px;
  cursor: pointer;
}
.chip.is-on {
  border-color: var(--gold);
  color: var(--gold-hi);
  background: var(--brand-a12);
}
.section { padding: 10px var(--pad) 4px; max-width: var(--max); margin: 0 auto; }
.section__h {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-a70);
}
/* По умолчанию — обычная сетка */
.grid--primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}
.grid--primary .tile {
  min-height: 100px;
}
.grid--primary .tile--hero {
  grid-column: 1 / -1;
  min-height: 110px;
}

/* Слайдер только с классом .is-slider */
.grid--primary.is-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--pad));
  padding: 4px var(--pad) 12px;
  touch-action: pan-x;
}
.grid--primary.is-slider::-webkit-scrollbar { display: none; }
.grid--primary.is-slider .tile {
  flex: 0 0 min(78vw, 280px);
  scroll-snap-align: center;
  min-height: 140px;
  grid-column: auto;
}
.grid--primary.is-slider .tile--hero { min-height: 140px; }

.layout-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.layout-bar .chip {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 11px;
}

.slider-hint,
.slider-dots {
  display: none;
}
body.is-mobile-slider .slider-hint {
  display: block;
  margin: -2px 0 8px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}
body.is-mobile-slider .slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 0 8px;
}
.slider-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.slider-dots span.is-on { background: var(--gold); }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 92px;
  padding: 12px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--tile-border);
  background: var(--tile);
  overflow: hidden;
}
.tile__glow { position: absolute; inset: 0; pointer-events: none; }
.tile__icon { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; }
.tile__icon svg { width: 100%; height: 100%; display: block; }
/* маскот в полный рост «стоит» в правой части плитки, без рамки */
.tile__icon--mascot {
  top: auto;
  bottom: 0;
  right: 6px;
  width: auto;
  height: 90px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.55));
}
.tile__icon--mascot img {
  width: auto;
  height: 100%;
  display: block;
}
.tile--hero .tile__icon--mascot {
  height: 108px;
  right: 10px;
}
@media (min-width: 768px) {
  .tile__icon--mascot { height: 108px; right: 8px; }
  .tile--hero .tile__icon--mascot { height: 126px; right: 16px; }
}
.tile__label {
  position: relative;
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.tile__sub {
  position: relative;
  font-size: 11px;
  color: rgba(245, 232, 212, 0.72);
  margin-top: 3px;
}
.tile--hero {
  min-height: 110px;
  border-color: var(--gold);
}
.tile--hero .tile__label { font-size: 17px; color: var(--gold-hi); }
.list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

@media (min-width: 768px) {
  body.hub-page {
    padding-bottom: 24px;
    --pad: 24px;
  }
  .dock,
  .brand-dock { display: none; }

  .hero { padding: 28px var(--pad) 18px; }
  .hero__inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 36px;
  }
  .hero__logo { width: 240px; flex-shrink: 0; }
  .hero__tag { font-size: 15px; max-width: 34em; }
  .hero__cta { justify-content: flex-start; }

  .toolbar {
    justify-content: flex-start;
    max-width: var(--max);
    margin: 0 auto;
  }
  .layout-bar { display: none !important; }
  .slider-hint,
  .slider-dots,
  body.is-mobile-slider .slider-hint,
  body.is-mobile-slider .slider-dots { display: none !important; }

  .grid--primary,
  .grid--primary.is-slider {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
    touch-action: auto;
  }
  .grid--primary .tile,
  .grid--primary.is-slider .tile {
    flex: none;
    min-height: 120px;
    grid-column: auto;
  }
  .grid--primary .tile--hero,
  .grid--primary.is-slider .tile--hero {
    grid-column: 1 / -1;
    min-height: 130px;
  }
  .tile { min-height: 120px; padding: 16px; }
  .tile:hover { border-color: var(--gold); }
  .list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .row:hover {
    border-color: var(--brand-a35);
    background: rgba(40, 14, 16, 0.75);
  }
  .stub__ghost-grid { grid-template-columns: repeat(3, 1fr); }
  .note { margin-left: auto; margin-right: auto; }
}

@media (min-width: 1024px) {
  .grid--primary,
  .grid--primary.is-slider {
    grid-template-columns: repeat(4, 1fr);
  }
  .list { grid-template-columns: 1fr 1fr 1fr; }
  .hero__logo { width: 280px; }
}
