* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

body {
    background: linear-gradient(to bottom, #500000 30%, #000000 100%);
    min-height: 100vh;
    color: whitesmoke;
    font-family: "CustomFont";
    display: flex;
    flex-direction: column;
}

@font-face {
  font-family: 'CustomFont';
  src: url('src/font/Ubuntu-Bold.ttf') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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;
}

.nav-toggle,
.burger {
    display: none;
}

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);
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center; 
}

.req {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    margin: 20px;
    background-color: rgba(8, 8, 8, 0.603);
    border-radius: 10px;
}

.btn-primary {
    font-weight: bold;
    background: linear-gradient(135deg, #c1121f, #7a0000);
    border: 1px solid #ff4d4d;
    box-shadow: 0 8px 25px rgba(193, 18, 31, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e01826, #930000);
}

/* ===== Адаптив ===== */

.content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 40px;
}

.content > h1 {
    font-size: clamp(22px, 4vw, 30px);
    padding: 10px;
}

.req {
    width: 100%;
    max-width: 700px;
    text-align: left;
    line-height: 1.5;
}

.content > h3 {
    max-width: 700px;
    line-height: 1.6;
}

.anketa {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.forma {
    background-color: rgba(8, 8, 8, 0.603);
    padding: 40px;
    border-radius: 10px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input {
    background-color: rgba(70, 15, 15, 0.582);
    padding: 10px;
    color: white;
    box-shadow: 0 0 8px rgb(71, 1, 1);
    border-radius: 10px;
    border: 1px ;
}

input:focus {
    outline: none;
}

#but {
    background-color: rgb(114, 0, 0);
    border: 1px;
    color: white;
    padding: 10px;
    border-radius: 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;
}

.admins {
    margin: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-but {
    display: flex;
    justify-content: space-between;
    margin-left: 30px;
    margin-right: 20px;
}

@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;
    }

    .burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 11px 12px;
        cursor: pointer;
        background: rgba(12, 12, 12, 0.425);
        border-radius: 12px;
    }

    .burger span {
        display: block;
        width: 24px;
        height: 3px;
        border-radius: 3px;
        background: whitesmoke;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    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;
    }

    .req {
        margin: 10px 0;
        padding: 16px;
    }

    a:hover {
        transform: none;
    }
}