:root {
  --page-background: #175e50;
  --surface-background: #1b6759;
  --surface-alt: #155649;
  --header-background: #078671;
  --primary-color: #ff7b2d;
  --primary-hover: #ff914f;
  --text-color: #f6f3e9;
  --muted-color: #d4e4dd;
  --border-color: rgba(255, 255, 255, 0.14);
  --container-width: 1080px;
  --content-width: 950px;
  --shadow: 0 14px 34px rgba(4, 32, 27, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-background);
  color: var(--text-color);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container-width));
  margin-inline: auto;
}

header {
  position: relative;
  z-index: 10;
  background: var(--header-background);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header > .container {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

header .logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

header .logo img {
  width: 142px;
}

header nav {
  margin-left: auto;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

header nav a:hover,
header nav a:focus-visible {
  border-color: rgba(255, 255, 255, 0.26);
  outline: none;
}

.mobile-menu {
  display: none;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border: 1px solid rgba(87, 37, 9, 0.25);
  border-radius: 2px;
  background: var(--primary-color);
  box-shadow: 0 2px 0 rgba(99, 36, 3, 0.34);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  background: var(--primary-hover);
  outline: none;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 420px;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(4, 56, 49, 0.97) 0%,
      rgba(5, 61, 54, 0.92) 38%,
      rgba(6, 68, 61, 0.66) 58%,
      rgba(7, 72, 65, 0.12) 100%
    ),
    url("/images/hero-character.webp") center center / cover no-repeat,
    #0a554a;
}

.hero > .container {
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero article {
  width: min(610px, 59%);
  padding: 54px 0 58px;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #fff;
  line-height: 1.18;
}

h1 {
  max-width: 660px;
  margin-bottom: 19px;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.018em;
}

h3 {
  margin: 38px 0 16px;
  font-size: clamp(21px, 2.2vw, 27px);
}

.hero p {
  max-width: 600px;
  margin: 0 0 22px;
  color: #eff8f5;
  font-size: 16px;
  line-height: 1.58;
}

.hero .age-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
}

.hero .age-line strong {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
}

.games {
  padding: 35px 0 42px;
  background: var(--surface-background);
}

.games h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.games .container > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.games a {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  background: #0a332c;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  aspect-ratio: 1;
}

.games a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.48));
  pointer-events: none;
}

.games a:hover img,
.games a:focus-visible img {
  transform: scale(1.035);
}

.games a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.games img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.promo {
  background: var(--header-background);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.promo .container {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.promo img {
  width: 132px;
}

.promo p {
  margin: 0;
  color: #f5fbf9;
  font-size: 14px;
  text-align: center;
}

.promo p strong {
  margin-right: 8px;
}

.promo .primary-link {
  justify-self: end;
}

.content > section {
  padding: 66px 0 70px;
  background: var(--page-background);
  border-top: 1px solid rgba(255, 255, 255, 0.035);
}

.content > section:nth-child(even) {
  background: var(--surface-alt);
}

.content .container {
  width: min(calc(100% - 40px), var(--content-width));
}

.content p,
.content li,
.content td,
.content th,
.content dd,
.content dt {
  color: var(--muted-color);
}

.content p {
  margin: 0 0 17px;
  text-align: justify;
}

.content ul,
.content ol {
  margin: 18px 0 24px;
  padding-left: 23px;
}

.content li {
  margin: 7px 0;
  padding-left: 4px;
}

.content li::marker {
  color: var(--primary-color);
}

.content strong {
  color: #fff;
}

.table-wrap {
  margin: 32px 0 38px;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.content table {
  width: 100%;
  margin: 30px 0 34px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.025);
  font-size: 15px;
}

.table-wrap table {
  margin: 0;
}

.content th,
.content td {
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
  vertical-align: top;
}

.content th {
  width: 34%;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  font-weight: 700;
}

.content table tr:first-child td,
.content table tr:first-child th {
  color: #fff;
  font-weight: 700;
}

.wide-screen,
.game-catalog {
  margin: 42px auto;
}

.wide-screen img,
.game-catalog img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  image-rendering: auto;
}

.wide-screen {
  max-width: 840px;
}

.wide-screen img {
  aspect-ratio: 2.125;
  object-fit: cover;
}

.phone {
  float: right;
  width: 210px;
  margin: 4px 0 22px 42px;
}

.phone img {
  width: 100%;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.32));
}

.game-catalog {
  clear: both;
  max-width: 820px;
}

.game-catalog img {
  aspect-ratio: 2;
  object-fit: cover;
}

.with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 44px;
  align-items: start;
}

.payments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border-color);
  background: rgba(5, 55, 47, 0.34);
  box-shadow: var(--shadow);
}

.payments img {
  width: 100%;
  min-height: 55px;
  object-fit: contain;
  background: #090909;
}

.support-banner {
  display: block;
  max-width: 810px;
  margin: 38px auto 0;
  border: 1px solid var(--border-color);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.support-banner img {
  width: 100%;
  aspect-ratio: 2.58;
  object-fit: cover;
}

.faq-list {
  margin-top: 28px;
  border-top: 1px solid var(--border-color);
}

.faq-list article {
  padding: 0;
  border-bottom: 1px solid var(--border-color);
}

.faq h3 {
  margin: 0;
  font-size: 21px;
}

.faq h3 a {
  position: relative;
  display: block;
  padding: 22px 46px 22px 0;
  color: #fff;
  text-decoration: none;
}

.faq h3 a::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 8px;
  color: var(--primary-color);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.faq h3 a[aria-expanded="true"]::after {
  content: "−";
}

.faq h3 a:hover,
.faq h3 a:focus-visible {
  color: #fff;
  outline: none;
}

.faq h3 a:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 123, 45, 0.7);
}

.faq-list article > p {
  margin: -5px 46px 22px 0;
}

.faq-list article > p[hidden] {
  display: none;
}

footer {
  padding: 36px 0;
  background: #073f36;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

footer .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

footer img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

footer p {
  margin: 0;
  color: var(--muted-color);
}

@media (max-width: 900px) {
  header .container {
    gap: 16px;
  }

  header nav a {
    padding-inline: 11px;
    font-size: 12px;
  }

  .hero article {
    width: 68%;
  }

  .games .container > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .with-aside {
    grid-template-columns: 1fr;
  }

  .payments {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
    line-height: 1.58;
  }

  .container,
  .content .container {
    width: min(calc(100% - 30px), var(--content-width));
  }

  header {
    position: sticky;
    top: 0;
  }

  header > .container {
    min-height: 58px;
  }

  header .logo img {
    width: 116px;
  }

  .mobile-menu {
    display: inline-flex;
    min-height: 36px;
    padding-inline: 13px;
    border-color: rgba(255, 255, 255, 0.32);
  }

  header nav ul {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 10px 15px 16px;
    background: #077963;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  }

  header nav ul.open {
    display: grid;
  }

  header nav ul a {
    width: 100%;
  }

  .hero,
  .hero > .container {
    min-height: 510px;
  }

  .hero {
    background:
      linear-gradient(
        180deg,
        rgba(4, 61, 52, 0.97) 0%,
        rgba(7, 72, 63, 0.89) 58%,
        rgba(7, 72, 63, 0.3) 100%
      ),
      url("/images/hero-character.webp") center / cover no-repeat,
      #0a554a;
  }

  .hero article {
    width: 100%;
    align-self: flex-start;
    padding: 36px 0 230px;
  }

  h1 {
    font-size: clamp(31px, 10vw, 42px);
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  .hero p {
    font-size: 15px;
  }

  .games {
    padding: 28px 0 34px;
  }

  .games h2 {
    font-size: 22px;
  }

  .games .container > div {
    gap: 8px;
  }

  .promo .container {
    min-height: 70px;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .promo img {
    width: 105px;
  }

  .promo p {
    display: none;
  }

  .promo .primary-link {
    padding-inline: 16px;
    font-size: 11px;
  }

  .content > section {
    padding: 46px 0 50px;
  }

  .phone {
    float: none;
    width: 170px;
    margin: 28px auto 34px;
  }

  .content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .table-wrap table {
    display: table;
    min-width: 520px;
  }

  .payments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq h3 {
    font-size: 19px;
  }

  footer .container {
    grid-template-columns: auto 1fr;
  }

  footer .primary-link {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 430px) {
  .container,
  .content .container {
    width: min(calc(100% - 24px), var(--content-width));
  }

  .hero,
  .hero > .container {
    min-height: 550px;
  }

  .hero article {
    padding-bottom: 245px;
  }

  .games .container > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .promo .primary-link {
    min-height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition: none;
  }
}
