:root {
  --bg: #0d0b2a;
  --surface: #161337;
  --surface-2: #201b4c;
  --border: #342c6e;
  --text: #f6f3ff;
  --muted: #b6b0dc;
  --primary: #e8962e;
  --primary-hover: #f5ad3c;
  --primary-text: #17102f;
  --login-bg: #2a2366;
  --accent-grad: linear-gradient(135deg, #5a32cd 0%, #9f5dc9 100%);
  --gold: #f5b942;
  --radius: 8px;
  --container: 1110px;
  --gutter: 15px;
  --font: Arial, Helvetica, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, label:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
h1, h2, h3, h4 { margin: 0 0 16px; font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: 42px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
strong { font-weight: 700; }
table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 32px; overflow: hidden; border-radius: var(--radius); }
th, td { padding: 14px 16px; border: 1px solid var(--border); text-align: center; vertical-align: middle; font-size: 15px; }
th { background: var(--surface-2); font-weight: 700; }
td { background: var(--surface); }
tr:nth-child(even) td { background: var(--surface-2); }
td:first-child { font-weight: 700; }
table tr:first-child th:first-child { border-top-left-radius: var(--radius); }
table tr:first-child th:last-child { border-top-right-radius: var(--radius); }

.wrapper { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
.entry-content { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter) 40px; }

.ref { cursor: pointer; -webkit-user-select: none; user-select: none; }

@keyframes cta-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.main-button:not(.main-button--secondary), .registr-btn, .reviews__button {
  animation: cta-pulse 2.2s ease-in-out infinite;
  will-change: transform;
}
.main-button:not(.main-button--secondary):hover, .registr-btn:hover, .reviews__button:hover { animation-play-state: paused; transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .main-button, .registr-btn, .reviews__button { animation: none; }
}
.main-button {
  display: flex; align-items: center; justify-content: center; text-align: center;
  max-width: 340px; width: 100%; min-height: 60px; margin: 8px auto 0; padding: 12px 24px;
  border-radius: var(--radius); background: linear-gradient(180deg, #f7c04a 0%, var(--primary) 100%); color: var(--primary-text);
  box-shadow: 0 6px 22px rgba(232, 150, 46, .35);
  font-size: 18px; font-weight: 700; text-decoration: none; transition: background .2s, transform .1s;
}
.main-button:hover { background: linear-gradient(180deg, #ffd062 0%, var(--primary-hover) 100%); }
.main-button:active { transform: scale(.98); }
.main-button--secondary { background: transparent; border: 2px solid var(--primary); color: var(--text); cursor: pointer; font-family: inherit; box-shadow: none; }
.main-button--secondary:hover { background: rgba(232, 150, 46, .15); }

.header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); }
.header__inner { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: 24px; }
.logo img { height: 40px; width: auto; }
.header .logo { margin-right: auto; }
.main-nav__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav__list li { margin: 0; }
.main-nav__list a, .main-nav__list .ref { display: block; padding: 8px 14px; border-radius: 6px; font-size: 15px; font-weight: 700; text-decoration: none; color: var(--text); }
.main-nav__list a:hover, .main-nav__list .ref:hover { background: var(--surface-2); }
.main-nav__buttons { display: none; }
.header-buttons { display: flex; gap: 10px; }
.login-btn, .registr-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px;
  border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .2s;
}
.login-btn { background: var(--login-bg); color: var(--text); border: 1px solid var(--border); }
.login-btn:hover { background: var(--border); }
.registr-btn { background: linear-gradient(180deg, #f7c04a 0%, var(--primary) 100%); color: var(--primary-text); }
.registr-btn:hover { background: linear-gradient(180deg, #ffd062 0%, var(--primary-hover) 100%); }
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; width: 40px; height: 40px; padding: 8px; flex-direction: column; justify-content: space-between; cursor: pointer; border-radius: 6px; }
.burger span { display: block; height: 3px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .25s; }

.main-section { padding: 28px 0 40px; text-align: center; }
.main-section__title { margin-bottom: 20px; }
.main-section__banner { display: block; margin: 0 auto 24px; border-radius: var(--radius); overflow: hidden; }
.main-section__image .ref { display: block; }
.main-section__banner img { width: 100%; height: auto; }
.main-section__text { max-width: 900px; margin: 0 auto 24px; text-align: left; font-size: 17px; }
.main-section__text p:last-child { margin-bottom: 0; }
.main-section__image { margin: 8px 0 40px; }
.main-section__image img { width: 100%; border-radius: var(--radius); }

.content-table { margin: 0 0 48px; }
.content-table__head {
  display: flex; align-items: center; justify-content: center; min-height: 64px; margin: 0 0 24px; padding: 12px 20px;
  border-radius: var(--radius); background: var(--accent-grad); text-align: center; font-size: 24px; color: #fff;
}
.content-table td { font-weight: 700; }
.content-table td:first-child { width: 28%; }

.content-section, .best-games, .download-section, .reviews, .faq, .footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.content-section { margin: 0 0 48px; }
.content-section h2 { margin-top: 8px; }
.content-section__title { text-align: center; }
.content p, .content li { font-size: 17px; }
.content h3 { margin-top: 28px; }
.content table { font-size: 15px; }
.content-section__wrap { display: flex; gap: 40px; align-items: flex-start; margin-bottom: 24px; }
.content-section__wrap .content-section__text { flex: 1 1 0; }
.content-section__wrap .content-section__image { flex: 0 0 514px; }
.content-section__wrap .content-section__image img { width: 100%; border-radius: var(--radius); }

.pros-cons__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pros-cons__box { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.pros-cons__box h3 { margin-bottom: 12px; }
.pros-cons__box ul { margin: 0; padding: 0; list-style: none; }
.pros-cons__box li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.pros-cons__box li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; }
.pros-cons__box--pros li::before { background: var(--gold); }
.pros-cons__box--cons li::before { background: #ff6b6b; }

.best-games { margin: 0 0 56px; }
.best-games h2 { text-align: center; margin-bottom: 24px; }
.best-games__nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; margin: 0 0 24px; padding: 0; }
.best-games__nav li { margin: 0; }
.best-games__tab {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 16px; font-weight: 700; text-decoration: none; transition: background .2s;
}
.best-games__tab svg { fill: currentColor; flex: none; }
.best-games__tab:hover, .best-games__tab.active { background: var(--surface-2); border-color: #3b4670; }
.tab { display: none; }
.tab.active { display: block; }
.best-games__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.best-games__item { display: block; text-decoration: none; color: var(--text); }
.best-games__item-img { display: block; position: relative; border-radius: 6px; overflow: hidden; background: var(--surface); aspect-ratio: 263 / 156; }
.best-games__item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.best-games__item:hover .best-games__item-img img { transform: scale(1.04); }
.best-games__item-name { display: block; margin-top: 10px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.best-games__item small { display: block; font-size: 12px; color: var(--muted); }
.best-games__item--badge .best-games__item-name { text-align: center; }
.best-games__item--badge .best-games__item-img { background: transparent; }

.download-section { margin: 0 0 40px; }
.download-section__title { text-align: center; }
.download-section__inner { display: flex; gap: 32px; align-items: center; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.download-section__subtitle { text-align: center; }
.download-section__buttons { justify-content: center; }
.download-section__left { flex: 0 0 370px; }
.download-section__left img { border-radius: 6px; }
.download-section__right { flex: 1 1 0; }
.download-section__subtitle { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.download-section__right ul { display: flex; flex-wrap: wrap; gap: 8px 0; list-style: none; margin: 0 auto 20px; padding: 0; max-width: 640px; }
.download-section__right li { flex: 1 1 25%; margin: 0; padding: 0 14px; text-align: center; border-right: 1px solid var(--border); }
.download-section__right li:last-child { border-right: 0; }
.download-section__right li span { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 20px; font-weight: 700; }
.download-section__right li span img { display: inline-block; }
.download-section__right li small { display: block; font-size: 12px; color: var(--muted); }
.download-section__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.download-section__button { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 14px; border-radius: 8px; background: #fff; border: 1px solid #fff; transition: box-shadow .2s; }
.download-section__button img { height: 33px; width: auto; }
.download-section__button:hover { box-shadow: 0 2px 16px rgba(0,0,0,.5); }

.reviews { margin: 0 0 56px; }
.reviews__box { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; margin-bottom: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.reviews__box-title { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.reviews__rate { display: flex; align-items: center; gap: 10px; }
.reviews__rate > span { font-size: 26px; font-weight: 700; }
.reviews__rate small { color: var(--muted); font-size: 13px; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; fill: var(--gold); }
.reviews__button { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 6px; background: linear-gradient(180deg, #f7c04a 0%, var(--primary) 100%); color: var(--primary-text); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.reviews__button:hover { background: linear-gradient(180deg, #ffd062 0%, var(--primary-hover) 100%); }
.reviews__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.reviews__item { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.reviews__item.hide { display: none; }
.reviews__item-user { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.reviews__item-avatar { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-grad); font-weight: 700; font-size: 18px; color: #fff; }
.reviews__item-box span { display: block; font-weight: 700; }
.reviews__item-box small { color: var(--muted); font-size: 12px; }
.reviews__item-rate { margin-bottom: 10px; }
.reviews__item-text p { margin: 0; font-size: 15px; }

.faq { margin: 0 0 40px; }
.faq__item { padding: 20px 24px; margin-bottom: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.faq__item h3 { font-size: 18px; margin-bottom: 8px; }
.faq__item p { margin: 0; font-size: 16px; }

.updated-block { margin: 0 0 16px; }
.updated-block__box { padding: 14px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-size: 15px; color: var(--muted); }

.footer { background: var(--surface); border-top: 1px solid var(--border); }
.footer__inner { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 40px var(--gutter); display: flex; justify-content: space-between; gap: 40px; }
.footer__info .logo img { height: 56px; width: auto; margin-bottom: 20px; }
.footer__images { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.footer__images img { height: 44px; width: auto; opacity: .9; }
.footer__images a:hover img { opacity: 1; }
.badge-18 { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #ff6b6b; color: #ff6b6b; font-weight: 700; font-size: 15px; }
.footer__links { display: flex; gap: 60px; }
.footer-nav__list { list-style: none; margin: 0; padding: 0; }
.footer-nav__list li { margin-bottom: 8px; }
.footer-nav__list a, .footer-nav__list .ref { font-size: 14px; text-decoration: none; color: var(--text); }
.footer-nav__list a:hover, .footer-nav__list .ref:hover { text-decoration: underline; }
.footer__bottom { border-top: 1px solid var(--border); }
.copyright { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 20px var(--gutter); text-align: center; font-size: 12px; line-height: 1.6; color: var(--muted); }
.copyright p { margin: 0 0 6px; }

@media (max-width: 1024px) {
  .header__inner { gap: 12px; }
  .main-nav__list a, .main-nav__list .ref { padding: 8px 10px; font-size: 14px; }
  .content-section__wrap { gap: 24px; }
  .content-section__wrap .content-section__image { flex-basis: 40%; }
  .best-games__list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .burger { display: flex; order: 3; }
  .header-buttons { order: 2; margin-left: auto; }
  .header .logo { margin-right: 0; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; padding: 12px var(--gutter) 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
  .menu-toggle:checked ~ .main-nav { display: block; }
  .menu-toggle:checked ~ .burger span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
  .menu-toggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked ~ .burger span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }
  .main-nav__list { flex-direction: column; gap: 0; }
  .main-nav__list a, .main-nav__list .ref { padding: 12px 8px; font-size: 16px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav__buttons { display: flex; gap: 10px; margin-top: 16px; }
  .main-nav__buttons a { flex: 1; }
  .content-section__wrap { flex-direction: column; }
  .content-section__wrap .content-section__image { flex-basis: auto; width: 100%; max-width: 514px; }
  .download-section__inner { flex-direction: column; align-items: stretch; }
  .download-section__left { flex-basis: auto; }
  .download-section__left img { width: 100%; }
  .reviews__list { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__links { gap: 40px; }
}
@media (max-width: 767px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }
  .content p, .content li, .main-section__text { font-size: 16px; }
  th, td { padding: 10px 8px; font-size: 13px; }
  .content-table td:first-child { width: 34%; }
  .content-table__head { font-size: 18px; min-height: 56px; }
  .best-games__nav { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .best-games__tab { height: 42px; font-size: 14px; }
  .best-games__list { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .best-games__item-name { font-size: 14px; }
  .main-button { min-height: 54px; font-size: 16px; }
  .reviews__box { flex-direction: column; align-items: flex-start; }
  .reviews__button { width: 100%; }
  .reviews__list { grid-template-columns: 1fr; }
  .pros-cons__grid { grid-template-columns: 1fr; }
  .download-section__right li { flex-basis: 50%; border-right: 0; }
  .content-section, .best-games, .reviews { margin-bottom: 36px; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table thead, table tbody { display: table; width: 100%; }
  .content table { min-width: 100%; }
}
@media (max-width: 480px) {
  .header__inner { gap: 8px; }
  .header-buttons { gap: 6px; }
  .login-btn, .registr-btn { height: 36px; padding: 0 10px; font-size: 13px; }
  .logo img { height: 32px; }
  .burger { width: 36px; padding: 7px; }
}
