:root {
  --bg: #14110d;
  --surface: #1e1a13;
  --surface-2: #272016;
  --surface-3: #31291b;
  --border: #3a3122;
  --border-2: #5a4c30;
  --text: #f3ecdd;
  --muted: #b3a892;
  --primary: #e6b64c;
  --primary-hover: #f0c65e;
  --primary-text: #20170a;
  --login-bg: #1e1a13;
  --accent-grad: linear-gradient(180deg, #f0c65e 0%, #e6b64c 100%);
  --gold: #e6b64c;
  --sky: #4f9fe8;
  --clover: #42ed24;
  --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; overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, label:focus-visible, [tabindex]: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); overflow-wrap: break-word; }
h1 { font-size: 42px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
p { margin: 0 0 16px; overflow-wrap: break-word; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
thead th { background: var(--surface-3); color: var(--text); font-weight: 700; }
tbody tr:hover { background: var(--surface-2); }
caption { caption-side: top; text-align: left; color: var(--muted); font-size: 14px; padding: 0 0 10px; }
.wrapper { max-width: 100%; overflow-x: hidden; }
.container { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
main { display: block; }
main > section, main > .container { max-width: calc(var(--container) + var(--gutter) * 2); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }

@keyframes cta-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(230,182,76,0); } 50% { transform: scale(1.045); box-shadow: 0 0 26px rgba(230,182,76,.45); } }
.main-button--pulse, .registr-btn--pulse, .reviews__button { animation: cta-pulse 2.6s ease-in-out infinite; }
.main-button--pulse:hover, .registr-btn--pulse:hover, .reviews__button:hover { animation: none; transform: scale(1); box-shadow: 0 0 20px rgba(230,182,76,.4); transition: box-shadow .2s ease, background .2s ease; }
@media (prefers-reduced-motion: reduce) { .main-button--pulse, .registr-btn--pulse, .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: var(--accent-grad); color: var(--primary-text);
  font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s, transform .1s;
}
.main-button:hover { background: var(--primary-hover); }
.main-button:not(.main-button--pulse):active { transform: scale(.98); }

.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: 10px var(--gutter); min-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: flex; align-items: center; gap: 7px; height: 40px; padding: 0 13px; border-radius: 6px; font-size: 15px; font-weight: 700; white-space: nowrap; text-decoration: none; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; }
.main-nav__list a:hover, .main-nav__list .ref:hover { background: var(--surface-3); border-color: var(--border-2); }
.main-nav__list img { width: 16px; height: 16px; opacity: .85; }
.main-nav__buttons { display: none; }
.header-buttons { display: flex; gap: 10px; margin-left: auto; }
.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; cursor: pointer; transition: background .2s; }
.login-btn { background: var(--login-bg); color: var(--gold); border: 1px solid var(--gold); }
.login-btn:hover { background: var(--surface-3); }
.registr-btn { background: var(--accent-grad); color: var(--primary-text); }
.registr-btn:hover { background: var(--primary-hover); }
.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; background: var(--surface-2); border: 1px solid var(--border); }
.burger span { display: block; height: 3px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .25s; }

.main-section { padding: 28px var(--gutter) 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; cursor: pointer; }
.main-section__banner img { width: 100%; height: auto; }
.main-section__text { max-width: 100%; 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 .ref { display: block; cursor: pointer; }
.main-section__image img { width: 100%; border-radius: var(--radius); }

.content-table { margin: 0 auto 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: var(--primary-text); }
.content-table td { font-weight: 700; }
.content-table td:first-child { width: 30%; color: var(--muted); }

.content-section, .best-games, .download-section, .reviews, .faq, .footer { content-visibility: auto; contain-intrinsic-size: auto 600px; }
.content-section { margin: 0 auto 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; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 20px; }
.tablewrap table { margin: 0; }
.tablewrap th, .tablewrap td { border-left: none; border-right: none; }

.steps { counter-reset: st; list-style: none; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: st; position: relative; padding: 12px 14px 12px 52px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before { content: counter(st); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--accent-grad); color: var(--primary-text); font-weight: 700; }

.pros-cons__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pros-cons__box { padding: 24px; border-radius: var(--radius); background: var(--surface-2); 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(--clover); }
.pros-cons__box--cons li::before { background: #d9534f; }

.best-games { margin: 0 auto 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-2); border: 1px solid var(--border); color: var(--text); font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s; }
.best-games__tab svg { fill: currentColor; flex: none; }
.best-games__tab:hover, .best-games__tab.active { background: var(--surface-3); border-color: var(--gold); }
.tab { display: none; }
.tab.active { display: block; }
.best-games__list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 16px; }
.best-games__item { display: block; text-decoration: none; color: var(--text); cursor: pointer; }
.best-games__item-img { display: block; position: relative; border-radius: 6px; overflow: hidden; background: var(--surface-2); aspect-ratio: 360 / 472; }
.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: 14px; 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-img { aspect-ratio: 263 / 156; background: var(--surface-3); display: flex; align-items: center; justify-content: center; }
.best-games__item--badge .best-games__item-img img { object-fit: contain; padding: 14px; }
.best-games__item--badge .best-games__item-name { text-align: center; }
.best-games__item--white .best-games__item-img { background: #ffffff; border: 1px solid var(--border); }

.reviews { margin: 0 auto 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-2); 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; color: var(--gold); }
.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: var(--accent-grad); color: var(--primary-text); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.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-2); border: 1px solid var(--border); }
.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: var(--primary-text); }
.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 auto 40px; }
.faq__item { padding: 20px 24px; margin-bottom: 12px; border-radius: var(--radius); background: var(--surface-2); 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 auto 16px; }
.updated-block__box { padding: 14px 20px; border-radius: var(--radius); background: var(--surface-2); 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: 52px; width: auto; margin-bottom: 18px; }
.footer__images { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.footer__images img { height: 40px; width: auto; opacity: .9; }
.footer__images a:hover img { opacity: 1; }
.badge-18 { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 3px solid #dc5a50; color: #dc5a50; font-weight: 700; font-size: 14px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.footer__social a:hover { background: var(--surface-3); border-color: var(--border-2); }
.footer__social img { width: 18px; height: 18px; }
.footer__getapp { margin-top: 20px; }
.footer__getapp-title { font-weight: 700; margin-bottom: 10px; font-size: 15px; }
.footer__getapp-row { display: flex; gap: 12px; flex-wrap: wrap; }
.footer__getapp-row a img { height: 44px; width: auto; }
.footer__links { display: flex; gap: 60px; }
.footer-nav__title { font-weight: 700; margin-bottom: 12px; font-size: 15px; color: var(--text); }
.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(--muted); cursor: pointer; }
.footer-nav__list a:hover, .footer-nav__list .ref:hover { color: var(--text); }
.footer__pay { border-top: 1px solid var(--border); }
.footer__pay-row { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 22px var(--gutter); display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; align-items: center; justify-items: center; }
.footer__pay-row .plate { background: var(--surface-3); border: 1px solid var(--border); border-radius: 6px; width: 100%; aspect-ratio: 2/1; display: flex; align-items: center; justify-content: center; }
.footer__pay-row .plate img { max-height: 30px; width: auto; object-fit: contain; }
.footer__seals { border-top: 1px solid var(--border); }
.footer__seals-row { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 22px var(--gutter); display: grid; grid-template-columns: repeat(9, 1fr); gap: 14px; align-items: center; justify-items: center; }
.footer__seals-row a, .footer__seals-row span { display: flex; align-items: center; justify-content: center; }
.footer__seals-row img { max-height: 46px; width: auto; object-fit: contain; }
.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: 1100px) {
  .best-games__list { grid-template-columns: repeat(5, 1fr); }
  .footer__seals-row { grid-template-columns: repeat(5, 1fr); }
  .footer__pay-row { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 1024px) {
  .header__inner { gap: 12px; }
  .main-nav__list a, .main-nav__list .ref { padding: 0 10px; font-size: 14px; }
  .best-games__list { grid-template-columns: repeat(4, 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: 100%; padding: 12px var(--gutter) 20px; background: var(--surface); border-bottom: 1px solid var(--border); z-index: 40; }
  .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 { height: auto; padding: 12px 8px; font-size: 16px; border: none; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
  .main-nav__buttons { display: flex; gap: 10px; margin-top: 16px; }
  .main-nav__buttons > * { flex: 1; }
  .reviews__list { grid-template-columns: repeat(2, 1fr); }
  .best-games__list { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__links { gap: 40px; }
  .footer__pay-row { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  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: 36%; }
  .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(3, 1fr); gap: 14px 10px; }
  .best-games__item-name { font-size: 13px; }
  .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; }
  .content-section, .best-games, .reviews { margin-bottom: 36px; }
  .footer__seals-row { grid-template-columns: repeat(4, 1fr); }
  .footer__pay-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .best-games__list { grid-template-columns: repeat(2, 1fr); }
}
@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; }
  .footer__seals-row { grid-template-columns: repeat(3, 1fr); }
  .footer__pay-row { grid-template-columns: repeat(3, 1fr); }
}
