* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@font-face {
  font-family: 'CustomFont';
  src: url('src/font/Ubuntu-Bold.ttf') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
    background: linear-gradient(to bottom, #500000 30%, #000000 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: whitesmoke;
    font-family: "CustomFont";
    display: flex;
    flex-direction: column;
}

/* ===== Навигация ===== */

nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border: 1px red solid;
    border-radius: 20px;
    background-color: #580101;
    box-shadow: 0 4px 20px rgba(7, 7, 7, 0.4);
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 30px auto;
}

nav .h1 h1 {
    font-size: 22px;
}

nav .tag {
    color: red;
    border: 2px red solid;
    border-radius: 50px;
    padding: 8px 10px;
    white-space: nowrap;
}

ul {
    display: flex;
    list-style: none;
    padding: 10px;
    gap: 10px;
}

a {
    text-decoration: none;
    background-color: rgba(12, 12, 12, 0.425);
    padding: 7px;
    border-radius: 30px;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    color: whitesmoke;
}

a:hover {
    background-color: rgba(5, 5, 5, 0.425);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 30px rgba(0, 50, 100, 0.3), 
                inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.nav-toggle,
.burger {
    display: none;
}

/* ===== Контент ===== */

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 40px;
    gap: 30px;
}

.rule {
    display: flex;
    flex-direction: column;
    background-color: #00000071;
    border-radius: 20px;
    max-width: 430px;
    gap: 5px;
    padding: 10px;
    border: 1px solid rgba(255, 0, 0, 0.35);
    box-shadow: 0 12px 30px rgba(10, 1, 1, 0.466);
    transition: transform 0.6s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.rule:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(10, 1, 1, 0.808);
    border: 1px solid rgba(255, 0, 0, 0.5);
}

.rules {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== Подвал ===== */

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding: 25px 20px;
    border-top: 1px solid rgba(255, 0, 0, 0.35);
    background: rgba(0, 0, 0, 0.55);
    text-align: center;
}

footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

footer p {
    color: #bdbdbd;
    font-size: 14px;
}

@media (max-width: 768px) {
    nav {
        margin: 15px auto;
        width: calc(100% - 24px);
        padding: 15px;
        border-radius: 16px;
    }

    nav .h1 h1 {
        font-size: 17px;
    }

    nav .tag {
        padding: 5px 8px;
    }

    nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 8px;
        padding: 10px 0 0;
    }

    nav ul li a {
        display: block;
        padding: 12px 10px;
        font-size: 15px;
    }

    .nav-toggle:checked ~ ul {
        display: flex;
    }

    .nav-toggle:checked ~ .burger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle:checked ~ .burger span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked ~ .burger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .content {
        padding: 10px 14px 30px;
        gap: 24px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        padding: 14px 20px;
    }

    a:hover {
        transform: none;
    }
}