:root {
    --dark-blue: #111a2b;
    --deep-blue: #021d38;
    --accent-blue: #19335c;
    --yellow: #ffd700;
    --green: #00ff5b;
    --header-glow: 0 2px 12px 2px rgba(15,40,80,0.33);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(160deg, #11203c 0%, #101d34 100%);
    color: #ffffff;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
}

header {
    width: 100%;
    background: linear-gradient(90deg, #111a2b 0%, #021d38 70%, #19335c 100%);
    box-shadow: 0 4px 36px 0 rgba(13,27,50,0.28), 0 1.5px 0 #263148 inset;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    padding: 22px 36px;
    width: 100%;
}

.logo-link img {
    display: block;
    height: 40px;
}

.desktop-nav {
    display: block;
}
.desktop-nav ul {
    display: flex;
    justify-content: center;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.desktop-nav a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.17s;
    letter-spacing: 0.2px;
    position: relative;
}
.desktop-nav a::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: var(--green);
    transition: width 0.2s;
    position: absolute;
    left: 0;
    bottom: -4px;
}
.desktop-nav a:hover::after {
    width: 100%;
}
.desktop-nav a:hover {
    color: var(--green);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Подарок */
.gift-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-width: 36px;
    min-height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    z-index: 6;
    transition: transform 0.2s;
}
.gift-btn .gift-icon {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gift-pulse 1.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
.gift-btn:hover .gift-icon, .gift-btn:focus .gift-icon {
    filter: brightness(1.1) drop-shadow(0 0 7px #ffd70077);
    transform: scale(1.07);
}
.gift-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #f52424;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 7px #0002;
    animation: badge-bounce 1s infinite alternate;
    z-index: 2;
}
@keyframes gift-pulse {
    0%, 100% { filter: drop-shadow(0 0 0 #ffd70077) brightness(1);}
    50% { filter: drop-shadow(0 0 8px #ffd700cc) brightness(1.11);}
}
@keyframes badge-bounce {
    0% { transform: scale(1) translateY(0);}
    50% { transform: scale(1.13) translateY(-2px);}
    100% { transform: scale(1) translateY(0);}
}

.btn-yellow {
    background: var(--yellow);
    color: var(--dark-blue);
    font-weight: 700;
    padding: 9px 22px;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.18s, color 0.18s;
    border: none;
    display: inline-block;
    outline: none;
    box-shadow: 0 0 0 0 #fff0;
}
.btn-yellow:hover, .btn-yellow:focus {
    background: #ffe066;
}
.btn-green {
    background: var(--green);
    color: var(--dark-blue);
    font-weight: 700;
    padding: 9px 22px;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.18s, color 0.18s;
    border: none;
    display: inline-block;
    outline: none;
    box-shadow: 0 0 0 0 #fff0;
}
.btn-green:hover, .btn-green:focus {
    background: #34ffa3;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 18px;
}
.burger span {
    display: block;
    width: 100%;
    height: 4px;
    background: var(--yellow);
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 202;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: linear-gradient(110deg, var(--dark-blue) 10%, var(--accent-blue) 90%);
    z-index: 203;
    padding: 18px 18px 18px 18px;
    box-shadow: 0 4px 32px 2px #050c19ee;
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.mobile-menu-header img {
    height: 45px;
}
.close {
    font-size: 32px;
    color: var(--yellow);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 900;
    line-height: 1;
}
.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}
.mobile-menu ul li {
    margin: 22px 0;
    text-align: center;
}
.mobile-menu ul a {
    color: var(--yellow);
    font-size: 21px;
    text-decoration: none;
    transition: color 0.17s;
    font-weight: 600;
}
.mobile-menu ul a:hover {
    color: var(--green);
}
.mobile-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.mobile-actions .btn-yellow,
.mobile-actions .btn-green {
    width: 140px;
    text-align: center;
    font-size: 16px;
    display: inline-block;
    white-space: nowrap;
}

.mobile-gift-btn {
    display: none !important;
}
@media (max-width: 768px) {
    .header-inner {
        padding: 12px 15px;
        grid-template-columns: auto 1fr auto auto;
        gap: 0;
    }
    .desktop-nav,
    .header-actions {
        display: none !important;
    }
    .logo-link {
        order: 0;
    }
    .mobile-gift-btn {
        display: flex !important;
        margin-left: 8px;
        margin-right: 0;
        align-items: center;
        justify-content: flex-end;
        margin-right: 25px;
    }
    .burger {
        display: flex;
        margin-left: 8px;
        order: 2;
    }
}
@media (min-width: 701px) {
    .mobile-gift-btn {
        display: none !important;
    }
}


.slider-section {
    width: 100%;
    max-width: 1300px;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.13);
}

.slider-container {
    width: 100%;
    max-width: 1300px;
    height: 350px;
    position: relative;
    margin: 0 auto;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.slide-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: brightness(0.83) contrast(1.08);
}

.slide-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(80deg, rgba(15,32,56,0.65) 0%, rgba(28,40,66,0.5) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
    margin-left: 60px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    padding: 0 32px;
}

.slide-content span {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffd700;
    text-shadow: 0 1px 10px rgba(0,0,0,0.22);
}

.slide-content p {
    font-size: 17px;
    margin-bottom: 18px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.13);
}

.btn-cta {
    display: inline-block;
    padding: 11px 30px;
    background-color: #00ff5b;
    color: #021d38;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.22s;
    box-shadow: 0 1.5px 6px 0 #00000044;
    margin-top: 2px;
}

.btn-cta:hover {
    background-color: #ffd700;
    color: #172e53;
}

.swiper-pagination-bullet {
    background: #ffd700;
    opacity: 0.72;
}
.swiper-pagination-bullet-active {
    background: #00ff5b;
    opacity: 1;
}

@media (max-width: 900px) {
    .slider-section {
        min-height: 250px;
        margin-top: -20px;
    }
    .slider-container {
        height: 220px;
    }
    .slide-content {
        margin-left: 0;
        padding: 0 12px;
    }
    .slide-content span {
        font-size: 19px;
    }
    .slide-content p {
        font-size: 14px;
    }
    .btn-cta {
        padding: 8px 18px;
        font-size: 14px;
    }
}

.top-games-section {
    width: 100%;
    max-width: 1300px;
    background: linear-gradient(90deg, #111a2b 0%, #172e53 100%);
    margin: 0 auto;
    padding: 0px 20px 24px 20px;
    border-bottom: 2px solid rgba(255,255,255,0.03);
}

.top-games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 28px 0 18px 0;
}

.top-games-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 1px;
}

.top-games-link {
    color: #00ff5b;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.18s;
}
.top-games-link:hover {
    color: #ffd700;
}

.top-games-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 120px;
    grid-template-rows: repeat(2, 120px);
    gap: 20px 24px;
    max-width: 1300px;
    overflow-x: auto;
    margin: 0 auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: #ffd700 #001b3d;
}

.top-game-card {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-thumb {
    width: 120px;
    height: 120px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(20,25,41,0.75);
    opacity: 0;
    transition: opacity 0.21s;
    z-index: 2;
}

.top-game-card:hover .game-overlay {
    opacity: 1;
}

.card-btn {
    display: inline-block;
    width: 90px;
    padding: 8px 0;
    text-align: center;
    border-radius: 5px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    margin: 0 4px;
    transition: background 0.17s, color 0.17s;
}

.demo-btn {
    background: #ffd700;
    color: #021d38;
}
.demo-btn:hover {
    background: #ffe066;
    color: #021d38;
}

.play-btn {
    background: #00ff5b;
    color: #021d38;
}
.play-btn:hover {
    background: #13ff71;
    color: #021d38;
}

/* Мобильные кнопки под картинкой — по умолчанию скрыты на десктопе */
.mobile-game-actions {
    display: none;
    gap: 8px;
    margin-top: 6px;
    width: 100%;
    justify-content: center;
}

/* Стили скроллбара (кастомный) */
.top-games-grid::-webkit-scrollbar {
    height: 10px;
    background: #001b3d;
}
.top-games-grid::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 6px;
}
.top-games-grid::-webkit-scrollbar-thumb:hover {
    background: #00ff5b;
}

/* --- Мобильная адаптация --- */
@media (max-width: 900px) {
    .top-games-header {
        padding: 18px 0 14px 0;
    }
    .top-games-title {
        font-size: 19px;
    }
    .top-games-grid {
        grid-template-rows: 1fr;
        gap: 12px;
        padding-bottom: 3px;
    }
}

/* Показываем кнопки под картинкой на мобильных, скрываем оверлей */
@media (max-width: 700px) {
    .top-games-grid {
        grid-template-rows: 1fr;
        grid-auto-columns: 120px;
        gap: 12px;
    }
    .game-overlay {
        display: none !important;
    }
    .mobile-game-actions {
        display: flex;
        flex-direction: row;
        gap: 6px;
        margin-top: 7px;
    }
    .top-game-card {
        height: auto;
    }
}

main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 36px 20px 36px;
    box-sizing: border-box;
    background: linear-gradient(120deg, #142947 0%, #243b67 100%);
    box-shadow: 0 8px 36px 0 #001b3d22;
    
}
main h1, main h2, main h3 {
    color: #ffd700;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 0;
}

main h1 {
    font-size: 38px;
    margin-bottom: 38px;
}

main h2 {
    font-size: 26px;
    margin: 38px 0 22px 0;
}

main h3 {
    font-size: 20px;
    margin: 34px 0 18px 0;
}

main p {
    color: #fff;
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 18px 0;
    text-align: left;
}

main ul, main ol {
    margin: 0 0 22px 20px;
    padding-left: 16px;
    max-width: 700px;
}

main ul {
    list-style: disc outside;
}

main ol {
    list-style: decimal outside;
}

main li {
    color: #ffd700;
    font-size: 17px;
    margin-bottom: 8px;
    line-height: 1.45;
}

main img {
    display: block;
    margin: 24px auto 38px ;
    max-width: 90%;
    border: none;
    border-radius: 10px;
    box-shadow: 0 6px 38px 0 #001b3d44;
}

@media (max-width: 900px) {
    main {
        padding: 24px 10px 34px 10px;
    }
    main h1 { font-size: 22px; }
    main h2 { font-size: 17px; }
    main h3 { font-size: 15px; }
    main p { font-size: 15px; }
    main ul, main ol { font-size: 14px; }

    .top-games-section {
        
        margin-top: -15px;

    }

}

table {
    width: 100%;
    margin: 34px auto 42px auto;
    border-collapse: collapse;
    background: rgba(30, 40, 70, 0.97);
    box-shadow: 0 2px 24px 0 #001b3d22;
    border-radius: 10px;
    overflow: hidden;
    font-size: 17px;
}

th, td {
    padding: 15px 20px;
    text-align: left;
    font-weight: 500;
}

th {
    background: #172e53;
    color: #ffd700;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid #243b67;
    letter-spacing: 1px;
}

td {
    background: transparent;
    color: #fff;
    border-bottom: 1px solid #203459;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(36, 59, 103, 0.20);
}

@media (max-width: 800px) {
    table {
        font-size: 15px;
        max-width: 98vw;
    }
    th, td {
        padding: 11px 7px;
    }
}

main section {
    margin-bottom: 38px;
    padding: 20px 0 0px 0;
}

main section > span {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 32px;
    letter-spacing: 2px;
    text-align: left;
}

/* Остальное — как ранее (без изменения) */
main section > div {
    background: #203459;
    border-radius: 7px;
    box-shadow: 0 1px 8px 0 #001b3d33;
    margin-bottom: 20px;
    transition: background 0.18s;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
}

main section > div > p:first-child {
    font-size: 19px;
    font-weight: 700;
    color: #ffd700;
    margin: 0;
    padding: 18px 50px 18px 24px;
    position: relative;
    background: none;
    transition: background 0.17s;
}

main section > div > p:last-child {
    font-size: 16px;
    color: #fff;
    background: rgba(36, 59, 103, 0.65);
    margin: 0;
    padding: 0 24px 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

/* Активное состояние */
main section > div.open > p:last-child {
    max-height: 200px;
    padding: 14px 24px 20px 24px;
}

main section > div:hover,
main section > div.open {
    background: #253d68;
}

main section > div > p:first-child::after {
    content: '+';
    position: absolute;
    right: -350px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: #ffd700;
    transition: transform 0.3s;
}

main section > div.open > p:first-child::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

@media (max-width: 900px) {
    main {
        padding: 24px 10px 34px 10px;
    }
    main section > span {
        font-size: 19px;
        margin-bottom: 19px;
    }
    main section > div > p:first-child {
        font-size: 15px;
        padding: 13px 36px 13px 15px;
    }
    main section > div > p:first-child::after {

    right: 10px;

}
}

footer {
    width: 100%;
    background: linear-gradient(90deg, #101f38 0%, #122343 100%);
    box-shadow: 0 -4px 28px 0 #001b3d33;
    border-top: 2px solid rgba(255, 255, 255, 0.07); 
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 56px;
    padding: 38px 40px 18px 40px;
    box-sizing: border-box;
    justify-content: space-between;
    border-bottom: 1px solid #22314a44;
}

.footer-logo-area {
    flex: 1.5 1 320px;
    min-width: 250px;
    max-width: 390px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.footer-logo {
    max-width: 100px;
    margin-bottom: 6px;
}
.footer-logo-area p {
    color: #d6e8ff;
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
    opacity: 0.87;
}

.footer-nav-area,
.footer-contact-area {
    flex: 1 1 150px;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-nav-area span,
.footer-contact-area span {
    font-size: 17px;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.footer-nav-area ul,
.footer-contact-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-area li,
.footer-contact-area li {
    margin-bottom: 6px;
    font-size: 15px;
}

.footer-nav-area a {
    color: #00ff5b;
    text-decoration: none;
    transition: color 0.16s;
    font-weight: 500;
}
.footer-nav-area a:hover {
    color: #ffd700;
}

.footer-contact-area a {
    color: #00ff5b;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.16s;
}
.footer-contact-area a:hover {
    color: #ffd700;
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding: 12px 40px 12px 40px;
    color: #b2c7de;
    font-size: 13px;
    opacity: 0.75;
    text-align: right;
}

@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 0; /* максимум слить блоки */
        padding: 8px 4px 2px 4px;
        border-bottom: 1px solid #22314a55;
    }
    .footer-logo-area,
    .footer-nav-area,
    .footer-contact-area {
        align-items: center;
        text-align: center;
        margin-bottom: 0;
        gap: 0;
        max-width: 100%;
        min-width: 0;
        flex: none;
    }
    .footer-logo {
        margin-bottom: 3px;
        margin-top: 3px;
        max-width: 76px;
    }
    .footer-logo-area p {
        font-size: 12.5px;
        margin-bottom: 4px;
        margin-top: 0;
    }
    .footer-nav-area span,
    .footer-contact-area span {
        margin: 6px 0 2px 0;
        font-size: 14.5px;
    }
    .footer-nav-area ul,
    .footer-contact-area ul {
        padding: 0;
        margin: 0;
    }
    .footer-nav-area li,
    .footer-contact-area li {
        margin-bottom: 1.5px;
        font-size: 13px;
    }
    .footer-bottom {
        padding: 2px 2px 7px 2px;
        font-size: 11.2px;
        text-align: center;
    }
}


html {
    scrollbar-width: thin;               
    scrollbar-color: #ffd700 #122343;    
}

html::-webkit-scrollbar {
    width: 10px;
    background: #122343;
}
html::-webkit-scrollbar-thumb {
    background: #ffd700;  
    border-radius: 8px;
    border: 2px solid #122343; 
}
html::-webkit-scrollbar-thumb:hover {
    background: #00ff5b;
}
html::-webkit-scrollbar-track {
    background: #122343;
}