:root {
  --ink: #1a1a1a;
  --muted: #444;
  --line: #e4e4e4;
  --accent: #2e7d32;
  --bg: #fff;
}
@font-face {
  font-family: 'SolferinoDisplay-Bold';
  font-weight: 400;
  font-style: normal;
  src: url(../fonts/SolferinoDisplay-Bold.woff2) format('woff2');
}
@font-face {
  font-family: Roboto-Medium;
  font-style: normal;
  font-weight: 500;
  src: url(../fonts/KFOlCnqEu92Fr1MmEU9fBBc4AMP6lQ.woff2) format('woff2');
}
@font-face {
  font-family: Roboto-Regular;
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2) format('woff2');
}
@font-face {
  font-family: Brera-Bold;
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/brerabd-webfont.woff) format('woff');
}
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: 'SolferinoDisplay-Bold', Georgia, 'Times New Roman', serif;
}
.content {
  flex: 1 0 auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.site-header {
  border-bottom: 1px solid var(--line);
  font-family: 'Brera-Bold', 'Segoe UI', system-ui, Arial, sans-serif;
}
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.top {
  display: grid;
  grid-template-columns: 1fr minmax(0, auto) 1fr;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
}
.menu-btn {
  justify-self: start;
  display: flex;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.logo svg {
  display: block;
  width: 100%;
  max-width: 618px;
  height: auto;
}
.login {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
}
.login:hover,
.menu-btn:hover {
  opacity: 0.7;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 6px 0 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 34px;
}
.nav li {
  position: relative;
}
.nav button {
  font-size: 18px;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav button::after {
  content: '';
  border: 5px solid transparent;
  border-top: 7px solid var(--ink);
  margin-top: 6px;
  transition: transform 0.15s;
}
.nav button:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  z-index: 10;
  min-width: 180px;
  padding: 8px 0;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.nav .dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
}
.nav .dropdown a:hover {
  background: #f3f3f3;
}
.nav li.open .dropdown {
  display: block;
}
.nav li.open button::after {
  transform: rotate(180deg) translateY(6px);
}

.games {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 40px;
  flex-wrap: wrap;
  padding: 12px 0 14px;
}
.games-label {
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.games-label small {
  display: block;
  font-size: 8px;
  margin-top: 3px;
  letter-spacing: 0.3px;
}
.game {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 190px;
}
.game:hover .game-title {
  text-decoration: underline;
}
.game-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.game-title {
  font-size: 12px;
  font-weight: 700;
}
.game-desc {
  font-size: 12px;
  line-height: 1.25;
  color: var(--muted);
}

@media (max-width: 700px) {
  .login span {
    display: none;
  }
  .nav ul {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 22px;
  }
  .nav button {
    font-size: 16px;
    white-space: nowrap;
  }
  .nav .dropdown {
    position: fixed;
    left: 16px;
    right: 16px;
    top: auto;
  }
  .games {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
  }
  .game {
    flex: none;
  }
}

.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 16px;
}

.content {
  padding: clamp(20px, 4vw, 40px) 0 48px;
  text-align: center;
  /* Текст */
  font-family: 'Roboto-Regular', 'Segoe UI', system-ui, Arial, sans-serif;
}
.content h1 {
  margin: 0 0 clamp(16px, 3vw, 28px);
  font-family: 'Roboto-Medium', 'Segoe UI', system-ui, Arial, sans-serif;
  font-size: clamp(24px, 4.2vw, 42px);
  line-height: 1.2;
  text-wrap: balance;
}
.media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.media video {
  display: block;
  width: 620px;
  max-width: 100%;
  height: auto;
  background: #000;
  border-radius: 6px;
}
.cta {
  display: inline-block;
  margin-top: 28px;
  padding: 18px 40px;
  background: #1e5bb8;
  color: #fff;
  font-family: 'Roboto-Medium', 'Segoe UI', system-ui, Arial, sans-serif;
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition:
    background 0.2s,
    transform 0.05s;
}
.cta:hover {
  background: #184a96;
}
.cta:active {
  transform: translateY(1px);
}

.media-link {
  display: inline-block;
}
.media-link img {
  display: block;
  width: 420px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  .content {
    padding: 20px 0 32px;
  }
}

/* FOOTER */

.footer-overflow-container {
  display: flex;
  background-color: #000000;
  position: relative;
}

.footer-container {
  flex-grow: 1;
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
}

.footer-pill {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border-radius: 1000px;
  border: none;
  background: none;
  padding: 4px 8px;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    Helvetica,
    Arial,
    sans-serif;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  font-style: normal;
  font-size: calc(12px * var(--rfso, var(--bfso, 1)));
  color: #ffffff;
  transition: background-color 0.2s;
}
.footer-pill:hover {
  cursor: pointer;
}

.footer-pill-secondary {
  background-color: rgba(255, 255, 255, 0);
}
.footer-pill-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.footer-pill-secondary:active {
  background-color: rgba(255, 255, 255, 0.15);
}

@supports selector(:focus-visible) {
  .footer-pill-primary:focus-visible > .footer-pill-primary-background::after {
    transform: translateX(110%);
  }

  .footer-pill-primary:focus-visible > .footer-pill-primary-background {
    opacity: 1;
  }

  .footer-pill-primary:focus-visible
    > .footer-pill-primary-background
    .animation-container {
    animation-play-state: running;
  }
}

@media only screen and (max-width: 600px) {
  @supports (padding: env(safe-area-inset-bottom)) {
    .footer-container {
      padding: 6px 6px calc(6px + env(safe-area-inset-bottom)) 6px;
    }
  }
}
