:root {
  --accent: #6c4cff;
  --accent-2: #00d1b2;
  --text: #1b1d24;
  --muted: #6b7080;
  --bg: #ffffff;
  --bg-alt: #f4f5f9;
  --dark: #12131a;
  --line: #e8e9ef;
  --radius: 12px;
  --sidebar: 240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Manrope", system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Боковое меню */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 28px 20px; background: #fff; border-right: 1px solid var(--line); z-index: 50; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.logo--light { color: #fff; margin-bottom: 12px; }
.side-nav { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 14px; padding: 12px 12px; border-radius: 10px; font-weight: 600; color: #3a3d4a; }
.side-nav a:hover { background: var(--bg-alt); color: var(--accent); }
.side-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.burger span { width: 22px; height: 2px; background: var(--text); }

.page { margin-left: var(--sidebar); }

/* Баннер */
.hero { position: relative; overflow: hidden; height: 600px; background: var(--dark); }
.hero__track { display: flex; height: 100%; transition: transform .7s ease; }
.hero__slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; position: relative; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent 45%); }
.hero__content { position: relative; z-index: 1; padding: 0 24px 80px; }
.hero__content h1 { font-size: clamp(32px, 5vw, 64px); font-weight: 800; line-height: 1.1; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.hero__content p { font-size: 18px; margin: 12px 0 24px; opacity: .9; }
.hero__tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.hero__tab { position: relative; flex: 1; padding: 22px 12px; color: rgba(255,255,255,.55); font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__tab:hover, .hero__tab.is-active { color: #fff; }
.hero__tab i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent-2); }
.hero__tab.is-active i { animation: progress 6s linear forwards; }
@keyframes progress { to { width: 100%; } }

.btn { display: inline-block; padding: 12px 28px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; }
.btn:hover { filter: brightness(1.1); }

/* Контент */
.content { max-width: 1400px; margin: 0 auto; padding: 0 48px; }
.section { padding-top: 72px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section__head h2 { font-size: 30px; font-weight: 800; }
.more { color: var(--muted); font-weight: 600; font-size: 14px; }
.more:hover { color: var(--accent); }

/* Игры */
.games { display: grid; grid-template-columns: 1fr 340px; gap: 48px; padding-top: 72px; }
.poster-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.poster { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; color: #fff; transition: transform .25s, box-shadow .25s; }
.poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent 55%); }
.poster:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(20,20,40,.25); }
.poster__info { position: relative; padding: 18px; }
.poster__info h3 { font-size: 18px; line-height: 1.2; }
.poster__info span { font-size: 13px; opacity: .8; }
.pc-list { display: flex; flex-direction: column; gap: 16px; }
.pc-item { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; padding: 10px; border-radius: var(--radius); background: var(--bg-alt); }
.pc-item:hover h3 { color: var(--accent); }
.pc-item__img { aspect-ratio: 16 / 10; border-radius: 8px; }
.pc-item h3 { font-size: 16px; line-height: 1.3; }
.pc-item span { font-size: 13px; color: var(--muted); }

/* Новости */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news__item { border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.news__img { aspect-ratio: 16 / 9; }
.news__body { padding: 18px; }
.news__meta { font-size: 13px; color: var(--muted); }
.news__body h3 { font-size: 17px; margin-top: 6px; }
.news__item:hover h3 { color: var(--accent); }

/* Турниры */
.events { margin: 80px 0; padding: 48px; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; gap: 40px; background: linear-gradient(120deg, #1d1446, #3b2a8f); color: #fff; }
.events h2 { font-size: 30px; font-weight: 800; }
.events p { margin: 10px 0 24px; opacity: .85; max-width: 460px; }
.events .btn { background: #fff; color: var(--accent); }
.events__stats { display: flex; gap: 40px; }
.events__stats strong { display: block; font-size: 36px; font-weight: 800; }
.events__stats span { opacity: .75; }

/* Подвал */
.footer { background: #17181f; color: #8d909c; padding: 56px 48px 64px; font-size: 14px; }
.footer__inner { max-width: 1304px; margin: 0 auto; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.footer .logo { margin-bottom: 0; }
.footer__family { position: relative; }
.family__btn { min-width: 200px; display: flex; justify-content: space-between; padding: 12px 16px; border-radius: 8px; background: #22232c; color: #b9bcc7; }
.family__btn:hover { color: #fff; }
.family__list { display: none; position: absolute; right: 0; bottom: calc(100% + 6px); min-width: 100%; list-style: none; padding: 6px; border-radius: 8px; background: #22232c; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.family__list.is-open { display: block; }
.family__list a { display: block; padding: 8px 10px; border-radius: 6px; color: #b9bcc7; }
.family__list a:hover { background: #2d2e38; color: #fff; }
.footer__links { display: flex; flex-wrap: wrap; row-gap: 8px; }
.footer__links a { color: #b9bcc7; }
.footer__links a:hover { color: #fff; }
.footer__links a.is-strong { color: #fff; font-weight: 700; }
.footer__links a:not(:last-child)::after { content: "|"; margin: 0 14px; color: #4a4c58; font-weight: 400; }
.footer__info { margin-top: 24px; line-height: 1.8; }
.footer__social { display: flex; gap: 10px; margin-top: 24px; }
.footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #22232c; color: #b9bcc7; }
.footer__social a:hover { background: var(--accent); color: #fff; }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }

/* Адаптив */
@media (max-width: 1200px) {
  .games { grid-template-columns: 1fr; }
  .pc-list { display: grid; grid-template-columns: repeat(3, 1fr); }
  .pc-item { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  .sidebar { position: sticky; top: 0; width: 100%; height: 64px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); }
  .burger { display: flex; }
  .side-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; margin: 0; padding: 8px; background: #fff; border-bottom: 1px solid var(--line); }
  .side-nav.is-open { display: flex; }
  .content { padding: 0 16px; }
  .hero { height: 440px; }
  .hero__tab { font-size: 13px; padding: 16px 6px; }
  .poster-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pc-list { grid-template-columns: 1fr; }
  .pc-item { grid-template-columns: 120px 1fr; }
  .news { grid-template-columns: 1fr; }
  .events { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .events__stats { gap: 24px; }
  .footer { padding: 40px 16px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__links a:not(:last-child)::after { margin: 0 8px; }
}
@media (max-width: 560px) {
  .hero__tab:not(.is-active) span { font-size: 0; }
  .hero__tab:not(.is-active) { flex: 0 0 36px; }
}
