/* Шапка */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 8px var(--pad) 6px;
  background: rgba(0, 6, 24, .93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* тонкая полоска под шапкой: розовый → жёлтый (как в фэнтези) */
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(238, 18, 143, .8) 14%,
    rgba(238, 18, 143, .28) 38%,
    rgba(125, 132, 148, .22) 50%,
    rgba(250, 183, 44, .32) 64%,
    rgba(250, 183, 44, .85) 88%,
    transparent 100%);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.brand__name {
  display: flex;
  align-items: baseline;
  font-family: "Oswald", "Jost", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.brand__letters { color: var(--yellow); }
.brand__season { color: var(--pink); }

/* Вкладки — как в фэнтези: капс, разделители и жёлтая черта у открытого */
.tabs {
  order: 3;
  width: 100%;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  padding: 8px 12px 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  transition: color .2s ease;
}

/* жёлтая черта: растёт слева, как в фэнтези */
.tab::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.tab:hover { color: #e8eaf0; }
.tab:hover::before { transform: scaleX(.3); }

.tab.is-active { color: var(--yellow); }
.tab.is-active::before { transform: scaleX(1); }

.topbar__fantasy { margin-left: auto; }

/* Страница */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--pad) 44px;
}

/* Футер */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--pad) 36px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__note { font-size: 11.5px; color: var(--dim); }
.footer__links { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); }
.footer__links a:hover { color: var(--yellow); }

@media (min-width: 860px) {
  :root { --pad: 40px; }

  body { font-size: 16px; }

  .topbar { height: 58px; flex-wrap: nowrap; padding: 0 var(--pad); }
  .brand__name { font-size: 25px; }

  .tabs {
    order: 0;
    width: auto;
    margin-left: 24px;
    overflow: visible;
    align-self: center;
  }

  .tab { padding: 6px 16px 7px; font-size: 12.5px; }

  .tab::before { left: 16px; right: 16px; }

  /* разделители между пунктами — только на десктопе */
  .tab:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 34%;
    bottom: 34%;
    width: 1px;
    background: rgba(125, 132, 148, .22);
  }

  .page { padding: 44px var(--pad) 56px; }

  .footer { flex-direction: row; align-items: center; justify-content: space-between; }
}
