/* Стили для главной страницы */
html, body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
}
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
#bgVideo {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    object-fit: cover;
}
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 60px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.15);
}
.header-left {
    display: flex;
    align-items: center;
}
.logo {
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 32px;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px #000a;
}
.logo-img {
    height: 48px;
    width: 48px;
    margin-left: 20px;
    margin-right: 12px;
    background: none;
    filter: drop-shadow(0 0 28px #00b4ffff);
    object-fit: contain;
}
.main-nav {
    display: flex;
    align-items: center;
    margin-left: 36px;
    gap: 18px;
    background: none;
    box-shadow: none;
    padding: 0;
    min-height: unset;
    border-radius: 0;
}
.nav-link {
    font-size: 1.08em;
    font-weight: 500;
    color: #e0f7ff;
    background: none;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.18s, background 0.18s;
    padding: 8px 18px;
    cursor: pointer;
    box-shadow: none;
    position: relative;
    z-index: 1;
    outline: none;
    display: inline-block;
}
.nav-link.active, .nav-link:hover {
    color: #fff;
    background: rgba(0,180,255,0.18);
    text-decoration: underline;
}
.main-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 48px;
    background: rgba(0, 0, 0, 0.4);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #fff;
    font-size: 1.1em;
    letter-spacing: 1px;
    box-shadow: 0 -2px 16px 0 rgba(0,0,0,0.12);
}
.center-info-block {
    /* position: absolute; */
    /* top: 50%; */
    /* left: 50%; */
    /* transform: translate(-50%, -50%); */
    min-width: 340px;
    max-width: 520px;
    padding: 32px 28px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0,180,255,0.10);
    color: #e0f7ff;
    text-align: center;
    backdrop-filter: blur(8px);
    z-index: 5;
    margin: 0 auto 32px auto;
    overflow: visible !important;
    max-height: none !important;
    min-height: unset !important;
}
.center-info-block h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 2em;
    color: #b3e6ff;
    letter-spacing: 1px;
}
.center-info-block p {
    margin: 0;
    font-size: 1.15em;
    color: #e0f7ff;
    line-height: 1.5;
}
.server-widget {
    position: fixed;
    top: 80px;
    right: 32px;
    width: 270px;
    background: rgba(0,0,0,0.45);
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(0,180,255,0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 16px 14px 16px;
    z-index: 20;
    backdrop-filter: blur(6px);
}
.server-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 0 16px #00b4ff33;
}
.server-info {
    width: 100%;
    text-align: center;
    color: #e0f7ff;
    font-size: 1.1em;
    margin-top: 4px;
}
.server-status {
    font-weight: bold;
    margin-bottom: 6px;
    color: #b3e6ff;
}
.server-players {
    color: #fff;
}
.center-server-widget {
    position: static;
    margin: 32px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 520px;
    min-width: 340px;
    background: rgba(0,0,0,0.35);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0,180,255,0.10);
    padding: 24px 28px 18px 28px;
    backdrop-filter: blur(8px);
    z-index: 5;
}
.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 5;
    margin-top: 80px;
    position: static;
    transform: none;
}
.discord-btn {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 44px;
    font-size: 1.18em;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, rgba(88,101,242,0.55) 0%, rgba(0,180,255,0.55) 100%);
    border: none;
    border-radius: 32px;
    box-shadow: 0 4px 24px #5865f233, 0 1.5px 0 #fff2 inset;
    text-decoration: none;
    letter-spacing: 2px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s, filter 0.2s;
    cursor: pointer;
    outline: none;
    filter: drop-shadow(0 0 8px #00b4ff33);
    position: relative;
    overflow: hidden;
}
.discord-btn:hover {
    background: linear-gradient(90deg, rgba(0,180,255,0.85) 0%, rgba(88,101,242,0.85) 100%);
    box-shadow: 0 8px 32px #00b4ff55, 0 1.5px 0 #fff2 inset;
    transform: translateY(-2px) scale(1.045);
    filter: drop-shadow(0 0 16px #00b4ff99);
}
.discord-btn:active {
    transform: scale(0.98);
    filter: brightness(0.95);
}
.cabinet-btn {
    margin-left: 0;
    margin-right: 32px;
    float: none;
    padding: 10px 28px;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, rgba(0,180,255,0.55) 0%, rgba(88,101,242,0.55) 100%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px #00b4ff22;
    text-decoration: none;
    letter-spacing: 1px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 38px;
}
.cabinet-btn:hover {
    background: linear-gradient(90deg, rgba(88,101,242,0.85) 0%, rgba(0,180,255,0.85) 100%);
    box-shadow: 0 4px 18px #5865f255;
    transform: translateY(-2px) scale(1.04);
}
.cabinet-btn:active {
    transform: scale(0.98);
    filter: brightness(0.95);
}
.cabinet-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
    align-items: center;
    position: relative;
}

.cabinet-form input {
    width: 90%;
    max-width: 340px;
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    background: rgba(0,0,0,0.18);
    color: #e0f7ff;
    font-size: 1.1em;
    outline: none;
    box-shadow: 0 2px 12px #00b4ff22;
    margin-bottom: 2px;
    transition: background 0.2s, box-shadow 0.2s;
}
.cabinet-form input:focus {
    background: rgba(0,180,255,0.10);
    box-shadow: 0 4px 18px #00b4ff44;
}
.cabinet-form-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 8px;
    transition: opacity 0.25s cubic-bezier(.4,2,.6,1), transform 0.25s cubic-bezier(.4,2,.6,1), filter 0.25s;
}
.cabinet-form-buttons.shifted {
    opacity: 0;
    transform: scale(0.7) translateY(40px);
    filter: drop-shadow(0 0 24px #00b4ffcc);
    pointer-events: none;
}
.cabinet-btn-form {
    padding: 10px 28px;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, rgba(0,180,255,0.55) 0%, rgba(88,101,242,0.55) 100%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px #00b4ff22;
    text-decoration: none;
    letter-spacing: 1px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s, filter 0.25s;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 38px;
}
.cabinet-btn-form:hover {
    background: linear-gradient(90deg, rgba(88,101,242,0.85) 0%, rgba(0,180,255,0.85) 100%);
    box-shadow: 0 4px 18px #5865f255;
    transform: translateY(-2px) scale(1.04);
}
.cabinet-btn-form:active {
    transform: scale(0.98);
    filter: brightness(0.95);
}
.cabinet-message {
    margin-top: 10px;
    font-size: 1.05em;
    min-height: 24px;
    text-align: center;
}
.cabinet-main-action {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.7);
    transition: opacity 0.35s cubic-bezier(.4,2,.6,1), transform 0.35s cubic-bezier(.4,2,.6,1), filter 0.35s;
    margin-top: 18px;
    width: 90%;
    max-width: 340px;
    padding: 12px 0;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 16px;
    border: none;
    background: linear-gradient(90deg, #00b4ff 0%, #5865F2 100%);
    color: #fff;
    box-shadow: 0 4px 18px #00b4ff44;
    cursor: pointer;
    filter: drop-shadow(0 0 0 #00b4ff00);
}
.cabinet-main-action.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1.08);
    filter: drop-shadow(0 0 24px #00b4ffcc);
}
.cabinet-form .password-reqs {
    margin-bottom: 0;
}
.cabinet-profile-link {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 32px;
    padding: 6px 18px 6px 8px;
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(0,180,255,0.18) 0%, rgba(88,101,242,0.18) 100%);
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 12px #00b4ff22;
    letter-spacing: 1px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    cursor: pointer;
    height: 38px;
}
.cabinet-profile-link:hover {
    background: linear-gradient(90deg, #00b4ff 0%, #5865F2 100%);
    box-shadow: 0 4px 18px #5865f255;
    transform: translateY(-2px) scale(1.04);
}
.cabinet-profile-mini {
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 2px 8px #00b4ff33;
}
.logout-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 32px;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #ff4d4d 0%, #5865F2 100%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px #ff4d4d33;
    text-decoration: none;
    letter-spacing: 1px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    cursor: pointer;
}
.logout-btn:hover {
    background: linear-gradient(90deg, #5865F2 0%, #ff4d4d 100%);
    box-shadow: 0 4px 18px #ff4d4d55;
    transform: translateY(-2px) scale(1.04);
}
.main-nav {
    display: flex;
    align-items: center;
    margin-left: 36px;
    gap: 18px;
    background: none;
    box-shadow: none;
    padding: 0;
    min-height: unset;
    border-radius: 0;
}
.main-nav .cabinet-btn {
    margin: 0 6px 0 0;
    font-size: 1.12em;
    font-weight: 600;
    color: #fff;
    background: none;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
    padding: 8px 22px;
    cursor: pointer;
    box-shadow: none;
    position: relative;
    z-index: 1;
    outline: none;
}
.main-nav .cabinet-btn.active, .main-nav .cabinet-btn:hover {
    background: linear-gradient(90deg, #00b4ff 0%, #5865F2 100%);
    color: #fff;
    box-shadow: 0 2px 12px #00b4ff33;
    transform: translateY(-2px) scale(1.06);
}
.cabinet-profile-link, .cabinet-btn {
    float: right;
    margin-left: 18px;
}
.rules-page-container {
    max-width: 900px;
    margin: 90px auto 40px auto;
    padding: 32px 18px 32px 18px;
    background: rgba(10,16,32,0.93);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0,180,255,0.10);
    color: #e0f7ff;
    min-height: 400px;
}
.rules-main-title {
    margin-top: 0;
    margin-bottom: 38px;
    font-size: 2.3em;
    color: #b3e6ff;
    letter-spacing: 2px;
    text-align: center;
    font-weight: bold;
}
.rules-chapter-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}
.rules-chapter-header-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 22px;
    position: relative;
}
.rules-chapter-number-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1em;
    font-weight: bold;
    height: 56px;
    min-width: 32px;
    padding: 0 22px;
    background: linear-gradient(180deg,#00b4ff 0%,#5865F2 100%);
    color: #fff;
    border-radius: 18px 0 0 18px;
    box-shadow: 0 4px 18px #00b4ff33;
    text-shadow: 0 2px 12px #5865f299;
    margin-right: 0;
}
.rules-chapter-title-gradient-text {
    font-size: 2em;
    font-weight: bold;
    background: linear-gradient(90deg,#00b4ff 0%,#b3e6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: 2px;
    padding: 0 24px 0 18px;
    text-align: left;
    text-shadow: 0 2px 12px #00b4ff33;
    display: inline-block;
    line-height: 1.1;
}
.rules-chapter-number-gradient {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1em;
    font-weight: bold;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b4ff 0%, #5865F2 100%);
    color: #fff;
    box-shadow: 0 4px 18px #00b4ff33;
    text-shadow: 0 2px 12px #5865f299;
}
.rules-chapter-number-gradient-text {
    font-size: 2.2em;
    font-weight: bold;
    background: linear-gradient(90deg,#00b4ff 0%,#5865F2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-right: 18px;
    letter-spacing: 2px;
    display: inline-block;
    line-height: 1;
}
.rules-chapter-title-text {
    font-size: 1.45em;
    color: #e0f7ff;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 12px #00b4ff33;
    display: inline-block;
}
.rules-items-list-modern {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-left: 0;
    margin-bottom: 8px;
}
.rules-item-modern {
    background: rgba(0,180,255,0.13);
    border-radius: 18px;
    box-shadow: 0 2px 16px #00b4ff22;
    padding: 18px 24px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    border-left: 6px solid #00b4ff;
    transition: box-shadow 0.18s, border-color 0.18s;
}
.rules-item-modern-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px;
}
.rules-item-modern-number-rect {
    font-size: 1.08em;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg,#00b4ff 0%,#5865F2 100%);
    border-radius: 8px;
    padding: 4px 18px;
    box-shadow: 0 2px 8px #00b4ff22;
    letter-spacing: 1px;
    display: inline-block;
    margin-right: 10px;
    line-height: 1.2;
}
.rules-item-modern-text {
    font-size: 1.13em;
    color: #e0f7ff;
    line-height: 1.6;
    margin-left: 4px;
}
.rules-item-modern-punishment {
    color: #ff4d4d;
    font-size: 1em;
    margin-top: 4px;
    margin-left: 4px;
    font-style: italic;
}
@media (max-width: 600px) {
    .center-info-block, .center-server-widget {
        max-width: 95vw;
        min-width: unset;
        padding: 16px 6vw;
    }
}
@media (max-width: 700px) {
    .main-header {
        flex-wrap: wrap;
        height: auto;
        min-height: 48px;
    }
    .cabinet-btn {
        margin-right: 12px;
        padding: 8px 16px;
        font-size: 0.95em;
        height: 32px;
    }
    .cabinet-profile-link {
        margin-right: 12px;
        padding: 4px 10px 4px 4px;
        font-size: 0.95em;
        height: 32px;
    }
    .cabinet-profile-mini {
        width: 24px !important;
        height: 24px !important;
        margin-right: 4px;
    }
    .main-nav {
        margin-left: 4px;
        padding: 2px 4px 2px 4px;
        border-radius: 12px;
        gap: 2px;
    }
    .main-nav .cabinet-btn {
        font-size: 0.98em;
        padding: 6px 10px;
        margin: 0 2px 0 0;
    }
    .rules-page-container { padding: 12px 2vw; }
    .rules-main-title { font-size: 1.3em; }
    .rules-chapter-header { gap: 8px; }
    .rules-chapter-number-gradient { font-size: 1.1em; width: 32px; height: 32px; }
    .rules-chapter-title-text { font-size: 1em; }
    .rules-item-modern { padding: 10px 8px 8px 12px; }
    .rules-item-modern-number { font-size: 0.98em; padding: 2px 8px; }
}
