:root {
  --accent: #e8241a;
  --line: rgba(255, 255, 255, 0.14);
  --text: #fff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --header-h: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #000;
  background-image: radial-gradient(ellipse at top, #2a2a2e 0%, #121214 45%, #000 100%);
  background-attachment: fixed;
}

/* ---------- Header / tab bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: stretch;
  gap: 40px;
  height: var(--header-h);
  padding: 0 32px;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo img {
  height: 56px;
  width: auto;
}

.tabbar {
  display: flex;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabbar::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.tab:hover,
.tab:focus-visible {
  color: var(--text);
}

.tab.is-active {
  color: var(--text);
}

.tab.is-active::after {
  transform: scaleX(1);
}

.tab:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -6px;
}

/* ---------- Language switch ---------- */

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  align-self: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-btn {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  background: var(--accent);
  color: var(--text);
}

.lang-btn:focus-visible,
.lang-select:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.lang-select {
  display: none;
  margin-left: auto;
  align-self: center;
  padding: 6px 28px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.05)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E")
    no-repeat right 11px center;
}

.lang-select option {
  background: #141416;
  color: #fff;
}

@media (max-width: 760px) {
  .lang {
    display: none;
  }

  .lang-select {
    display: block;
  }
}

/* ---------- Banner slider ---------- */

.banner-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1034 / 96;
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slide.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: none;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 64px;
  }

  .site-header {
    gap: 12px;
    padding: 0 16px;
  }

  .logo img {
    height: 40px;
  }

  .tab {
    padding: 0 7px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .tab::after {
    left: 4px;
    right: 4px;
  }

  .lang-select {
    padding: 5px 22px 5px 9px;
    font-size: 11px;
    background-position: right 8px center;
  }
}
