/* Общие стили */
body {
    margin: 0;
    font-family: 'inter', sans-serif;
    background-color: #000;
    color: #fff;
}

.logo img{
    width: 80px;
}

/* Хедер */
.header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(to right, black, #222);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: 0.3s ease-in-out;
}
.header:hover {
    background: linear-gradient(to right, #222, black);
}
.header .nav {
    display: flex;
    gap: 20px;
}
.header .nav a {
    color: yellow;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.2s ease;
}
.header .nav a:hover {
    transform: scale(1.1);
}

/* Кнопки */
.register-btn, .login-btn {
    background: yellow;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 10px;
}
.register-btn:hover, .login-btn:hover {
    background: white;
    color: black;
    transition: transform 0.2s ease;
    transform: scale(1.1);
}

.header .auth-buttons{
    display: flex;
    gap: 10px;
}

.header .auth-buttons a{
    text-decoration: none;
    color: #000;
}

.hero-image img{
    border-radius: 20px;
    width: 100%;
}

/* Бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.bar {
    width: 30px;
    height: 3px;
    background: yellow;
    transition: all 0.3s ease;
}

/* Мобильное меню */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.4s ease-in-out;
}

.hero-content{
    max-width: 800px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-hero p{
    font-size: 30px;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    margin: 10px;
}
.mobile-nav .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: white;
    border: none;
    background: none;
    cursor: pointer;
}

h1, h2, h3{
    color: #FFD700;
    align-items: center;
}

/* Hero-секция */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 15px 20px;
    animation: fadeIn 1sease-in-out;
    flex-direction: column;
}
.hero-btn {
    background: yellow;
    border: none;
    padding: 15px 30px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}
.hero-btn:hover {
    background: white;
    color: black;
}

/* Футер */
.footer {
    background: #111;
    padding: 40px 20px;
    text-align: center;
}
.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}
.footer-section h3 {
    color: yellow;
}
.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-bottom {
    margin-top: 20px;
    color: grey;
}

.toc-container {
    background-color: #0d0d0d;
    border: 1px solid yellow;
    padding: 15px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    margin: 20px auto;
    color: #fff;
}

.toc-container h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: yellow;
}

.toc-container ul {
    list-style-type: none;
    padding: 0;
}

.toc-container ul li {
    margin: 5px 0;
}

main {
    border-radius: 20px;
    margin: 90px auto 50px;
    line-height: 1.6;
    display: grid;
    justify-content: center;
    max-width: 1300px;
}

.article{
    border-radius: 20px;
    margin: 90px auto 50px;
    line-height: 1.6;
    display: grid;
    justify-content: center;
    max-width: 1300px;
}

.toc-container ul li a {
    color: yellow;
    text-decoration: none;
}

.toc-container ul li a:hover {
    text-decoration: underline;
}

.footer-contacts{
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
}

.footer-contacts h3{
    color: yellow;
}

.footer-games{
display: flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
}

.footer-games h3{
    color: yellow;
}

.advantages {
    border-radius: 20px;
    text-align: center;
    padding: 30px;
    background-color: #111;
    color: white;
}
.advantages h2 {
    color: #FFD700;
}
img{
    width: 100%;
    border-radius: 10px;
}
table {
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #222;
}
th, td {
    padding: 15px;
    border: 1px solid #FFD700;
    text-align: left;
}
th {
    background-color: #FFD700;
    color: black;
}
tr:hover {
    background-color: #333;
}

.hero-btn a{
    color: #000;
}

@media (max-width: 1216px){
    main{
        margin: 30px 10px;
    }
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .header .nav, .auth-buttons {
        display: none;
    }
    .burger-menu {
        display: flex;
    }
    .mobile-nav.active {
        left: 0;
    }
}

@media (max-width: 620px) {
    .logo img {
    width: 60px;
    }
    .register-btn, .login-btn{
        padding: 5px 10px;
    }
    .header{
        padding: 15px 0px;
    }
}

@media (max-width: 600px) {
    table {
        width: 100%;
        font-size: 12px;
    }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    th, td {
        padding: 7px;
    }
}

@media (max-width: 467px) {
    .advantages{
        display: none;
    }
}