* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    background-color: #0d0d0d;
    color: #FFFFFF;
}

.header {
    background-color: #034035;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 20px;
    border-bottom: 1px solid #F2DA63;
}

.header__container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 55px;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav ul {
    list-style: none;
}

.nav a {
    color: #F2DA63;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #BF9F3F;
}

.header__buttons {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: #FFFFFF;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s ease;
    text-align: center;
}

.btn--gold {
    background-color: #BF9F3F;
}

.btn--gold:hover {
    background-color: #8C6826;
}

.btn--light {
    background-color: #F2DA63;
    color: #034035;
}

.btn--light:hover {
    background-color: #BF9F3F;
    color: #FFFFFF;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 3px;
    background: #F2DA63;
    border-radius: 2px;
    transition: 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: #034035;
    padding: 15px 20px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-bottom: 1px solid #F2DA63;
    text-align: center;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav a {
    color: #F2DA63;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 10px;
}

.mobile-nav a:last-child {
    margin-bottom: 0;
}

.mobile-nav.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .header__container {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        justify-items: center;
        gap: 10px 10px;
        padding: 10px 0;
    }

    .burger {
        display: flex;
        justify-self: start;
        align-self: center;
    }

    .logo {
        justify-self: center;
        margin-right: 30px;
    }

    .nav {
        display: none;
    }

    .header__buttons {
        grid-column: span 2;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 10px 10px 0 10px;
        gap: 10px;
    }

    .header__buttons .btn {
        flex: 1;
        padding: 12px;
        text-align: center;
    }

    .mobile-nav {
        display: none;
    }

    .mobile-nav.active {
        display: flex;
        flex-direction: column;
        padding: 10px;
        background: #034035;
    }
}

.hero-section {
    position: relative;
    max-width: 1300px;
    margin: 79px auto 0 auto;
    height: 350px;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15)
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('/assets/img/baner.png') center/cover no-repeat;
    z-index: 1;
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* ЧЁРНОЕ затемнение (50%) */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0 40px;
    color: #FFFFFF;
}

.hero-content span {
    font-size: 28px;
    font-weight: 700;
    color: #F2DA63;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 12px;
}

.btn-cta {
    display: inline-block;
    padding: 12px 24px;
    background-color: #F2DA63;
    color: #034035;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: fit-content;
    margin-top: 10px;
}

.btn-cta:hover {
    background-color: #BF9F3F;
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .hero-section {
        height: 280px;
        margin: 160px auto 0 auto;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-content span {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .btn-cta {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.top-games {
    max-width: 1300px;
    margin: 0px auto;
    padding: 40px 30px;
    background-color: #034035;
    border-radius: 0px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.top-games__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.top-games__header span {
    font-size: 24px;
    font-weight: 700;
    color: #F2DA63;
}

.top-games__header a {
    font-size: 14px;
    color: #F2DA63;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-games__header a:hover {
    color: #BF9F3F;
}

.top-games__scroll {
    overflow-x: auto;
    padding-bottom: 10px;
}

.top-games__grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 180px);
    grid-auto-columns: 180px;
    gap: 16px;
    min-width: 100%;
}

.game-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 8px;
    overflow: hidden;
    background-color: #0D0D0D;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 64, 53, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 10px;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-buttons-mobile {
    display: none;
}

.btn-game {
    display: inline-block;
    width: 100px;
    padding: 8px 0;
    background-color: #F2DA63;
    color: #034035;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-game:hover {
    background-color: #BF9F3F;
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .top-games {
        padding: 20px 15px;
    }

    .top-games__grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .game-card {
        flex: 0 0 auto;
        width: 160px;
        border-radius: 8px;
        background-color: #0D0D0D;
    }

    .game-image {
        width: 100%;
        height: 160px;
    }

    .game-overlay {
        display: none;
    }

    .game-buttons-mobile {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        padding: 10px;
        background-color: #034035;
    }

    .btn-game {
        flex: 1;
        padding: 10px 0;
        font-size: 13px;
        text-align: center;
    }
}

main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 30px;
    border-radius: 0px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    color: #FFFFFF;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    border: 1px solid rgba(242, 218, 99, 0.15);
}

main h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #F2DA63;
}

main h2 {
    font-size: 28px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #F2DA63;
}

main h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 10px;
    color: #F2DA63;
}

main img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

main p {
    margin-bottom: 16px;
}

main ul {
    margin: 16px 0;
    padding-left: 20px;
}

main ul li {
    margin-bottom: 8px;
    list-style: disc;
}

main ol {
    margin: 16px 0;
    padding-left: 20px;
}

main ol li {
    margin-bottom: 8px;
    list-style: decimal;
}

@media (max-width: 768px) {
    main {
        padding: 20px 15px;
    }

    main h1 {
        font-size: 28px;
    }

    main h2 {
        font-size: 22px;
    }

    main h3 {
        font-size: 18px;
    }

    main p {
        font-size: 15px;
    }

    main ul,
    main ol {
        padding-left: 16px;
    }

    main ul li,
    main ol li {
        font-size: 15px;
    }
}

main table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 16px;
    line-height: 1.5;
    color: #FFFFFF;
    background-color: #0D0D0D;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15)
}

main thead {
    background-color: #034035;
    color: #F2DA63;
}

main th,
main td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

main th {
    font-weight: 600;
}

main tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    main table {
        display: block;
        overflow-x: auto;
        width: 100%;
        box-sizing: border-box;
        font-size: 14px;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    main thead {
        display: table-header-group;
    }

    main tbody {
        display: table-row-group;
    }

    main tr {
        display: table-row;
    }

    main th,
    main td {
        width: 100%;
        padding: 10px 12px;
        white-space: nowrap;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

main section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 30px;
    background-color: #034035;
    border-radius: 0px;
    color: #FFFFFF;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

main section > span {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #F2DA63;
    margin-bottom: 25px;
}

main section > div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 15px 0;
    cursor: pointer;
}

main section > div p:first-of-type {
    margin: 0;
    font-weight: 600;
    color: #FFFFFF;
    position: relative;
    padding-right: 30px;
    transition: color 0.3s ease;
}

main section > div p:first-of-type::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 20px;
    color: #F2DA63;
    transition: transform 0.3s ease, color 0.3s ease;
}

main section > div.active p:first-of-type {
    color: #F2DA63;
}

main section > div.active p:first-of-type::after {
    content: '-';
    transform: rotate(180deg);
    color: #F2DA63;
}

main section > div p:nth-of-type(n+2) {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    margin: 0;
    color: #DDDDDD;
}

main section > div.active p:nth-of-type(n+2) {
    max-height: 500px;
    opacity: 1;
    margin-top: 10px;
}

@media (max-width: 768px) {
    main section {
        padding: 25px 15px;
    }

    main section > span {
        font-size: 20px;
        margin-bottom: 20px;
    }

    main section > div {
        padding: 12px 0;
    }

    main section > div p:first-of-type {
        font-size: 16px;
        padding-right: 24px;
    }

    main section > div p:first-of-type::after {
        font-size: 18px;
    }

    main section > div p:nth-of-type(n+2) {
        font-size: 15px;
    }
}

footer {
    margin: 40px auto 0 auto;
    padding: 30px 20px;
    background-color: #034035;
    color: #FFFFFF;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

footer p {
    margin: 8px 0;
}

footer a {
    color: #F2DA63;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #BF9F3F;
}

@media (max-width: 768px) {
    footer {
        padding: 20px 15px;
        font-size: 13px;
    }

    footer p {
        margin: 6px 0;
    }
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: #0D0D0D;
}

html::-webkit-scrollbar-thumb {
    background-color: #F2DA63;
    border-radius: 4px;
}

html {
    scrollbar-color: #F2DA63 #0D0D0D;
    scrollbar-width: thin;
}

.top-games__scroll::-webkit-scrollbar {
    height: 6px;
}

.top-games__scroll::-webkit-scrollbar-track {
    background: #034035;
}

.top-games__scroll::-webkit-scrollbar-thumb {
    background-color: #F2DA63;
    border-radius: 4px;
}

body {
    scrollbar-color: #F2DA63 #0D0D0D;
    scrollbar-width: thin;
}

.top-games__scroll {
    scrollbar-color: #F2DA63 #034035;
    scrollbar-width: thin;
}