@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

*, *:before, *:after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #bae4f5;
    background: linear-gradient(80deg,rgba(186, 228, 245, 1) 0%, rgba(232, 218, 218, 1) 55%, rgba(222, 197, 222, 1) 98%, rgba(209, 195, 212, 1) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: 0.01em;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { 
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1) rotate(1deg);
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2c3e50;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.8rem; font-weight: 600; }
h4 { font-size: 1.4rem; font-weight: 600; }

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#header h1 {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

#header h1 a {
    color: #e67e22;
    text-decoration: none;
    transition: all 0.3s ease;
}

#header h1 a:hover {
    color: #d35400;
}

#header nav {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

#header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#header nav ul li {
    margin-left: 2rem;
}

#header nav ul li a {
    color: rgba(44, 62, 80, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#header nav ul li a:hover {
    color: #2c3e50;
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

#main-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    padding: 0 2rem;
}

#main-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Градиент */
        radial-gradient(circle at 20% 50%, rgba(74, 144, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 101, 101, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(106, 176, 76, 0.1) 0%, transparent 50%),
        /* Грануляция */
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    opacity: 0.6;
    z-index: -1;
}

#main-banner .content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

#main-banner h2 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #e67e22, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

#main-banner p {
    font-size: 1.2rem;
    color: rgba(44, 62, 80, 0.8);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(44, 62, 80, 0.6);
    font-size: 0.9rem;
    text-align: center;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator::after {
    content: '↓';
    display: block;
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wrapper {
    padding: 6rem 0;
    position: relative;
}

.wrapper .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#servers {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#servers .major h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

#servers .major h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border-radius: 2px;
}

.server-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.server-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(243, 156, 18, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}

.server-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(231, 76, 60, 0.3);
}

.server-card:hover::before {
    opacity: 1;
}

.server-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.server-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.server-card:hover .server-image img {
    transform: scale(1.1);
}

.server-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.server-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.server-map {
    color: rgba(44, 62, 80, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.server-status {
    color: rgba(44, 62, 80, 0.8);
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 500;
}

.online-count {
    color: #27ae60;
    font-weight: 700;
}

.max-count {
    color: rgba(44, 62, 80, 0.9);
    font-weight: 600;
}

.connect-button {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 4px 15px rgba(231, 76, 60, 0.3),
        0 0 0 0 rgba(231, 76, 60, 0.5);
    overflow: hidden;
    cursor: pointer;
    border: none;
    outline: none;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.connect-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.connect-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: 0;
}

.connect-button span,
.connect-button {
    position: relative;
    z-index: 2;
}

.connect-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 30px rgba(231, 76, 60, 0.4),
        0 0 0 8px rgba(231, 76, 60, 0.1),
        0 0 30px rgba(243, 156, 18, 0.3);
    background: linear-gradient(135deg, #f39c12, #e91e63, #e74c3c);
    color: white; /* Фиксируем цвет текста */
}

.connect-button:hover::before {
    left: 100%;
}

.connect-button:hover::after {
    width: 120%;
    height: 120%;
}

.connect-button:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
    box-shadow: 
        0 6px 20px rgba(231, 76, 60, 0.35),
        0 0 0 4px rgba(231, 76, 60, 0.15);
}

.connect-button:focus {
    outline: none;
    box-shadow: 
        0 4px 15px rgba(231, 76, 60, 0.3),
        0 0 0 3px rgba(231, 76, 60, 0.3),
        0 0 20px rgba(243, 156, 18, 0.2);
}


@keyframes buttonAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.connect-button {
    animation: buttonAppear 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pulse {
    0% {
        box-shadow: 
            0 4px 15px rgba(231, 76, 60, 0.3),
            0 0 0 0 rgba(231, 76, 60, 0.5);
    }
    50% {
        box-shadow: 
            0 4px 15px rgba(231, 76, 60, 0.3),
            0 0 0 10px rgba(231, 76, 60, 0.1);
    }
    100% {
        box-shadow: 
            0 4px 15px rgba(231, 76, 60, 0.3),
            0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.connect-button {
    animation: 
        buttonAppear 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
        pulse 2s ease-in-out 1.5s infinite;
}

.connect-button {
    position: relative;
}

.connect-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #e74c3c, #f39c12, #e91e63, #e74c3c);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.connect-button:hover::before {
    opacity: 1;
}

.connect-button {
    overflow: hidden;
}

.connect-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    z-index: 1;
}

.connect-button:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: width 0s, height 0s, opacity 0s;
}

@media (max-width: 768px) {
    .connect-button {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
        animation: buttonAppear 0.5s ease forwards;
    }
    
    .connect-button:hover {
        transform: translateY(-2px) scale(1.03);
    }
    
    .connect-button::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .connect-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
        transition: all 0.2s ease;
    }
    
    .connect-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    }
    
    .connect-button {
        animation: none;
    }
    
    .connect-button::before,
    .connect-button::after {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    .connect-button {
        box-shadow: 
            0 4px 15px rgba(231, 76, 60, 0.4),
            0 0 0 0 rgba(231, 76, 60, 0.6);
    }
    
    .connect-button:hover {
        box-shadow: 
            0 12px 30px rgba(231, 76, 60, 0.5),
            0 0 0 8px rgba(231, 76, 60, 0.15),
            0 0 30px rgba(243, 156, 18, 0.4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .connect-button {
        animation: none;
        transition: all 0.2s ease;
    }
    
    .connect-button::before,
    .connect-button::after {
        transition: none;
    }
    
    .connect-button:hover {
        transform: none;
    }
}

#features {
    background: rgba(248, 249, 250, 0.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature:hover::before {
    opacity: 1;
}

.placeholder-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    border-radius: 8px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.feature:hover .placeholder-icon {
    transform: scale(1.1);
}

.feature h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.feature p {
    color: rgba(44, 62, 80, 0.7);
    line-height: 1.5;
    font-weight: 400;
    font-size: 0.95rem;
}

.icon____features {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.feature:hover .icon____features {
    transform: scale(1.1);
    opacity: 1;
}

.no-servers-message {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(44, 62, 80, 0.8);
}

.no-servers-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.updating-text {
    font-size: 1.1rem;
    color: rgba(44, 62, 80, 0.6);
}

.dots::after {
    content: '.';
    animation: dotsAnimation 1.5s infinite;
}

@keyframes dotsAnimation {
    0%, 33% { content: '.'; }
    34%, 66% { content: '..'; }
    67%, 100% { content: '...'; }
}

#footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 4rem 0 2rem;
    text-align: center;
}

#footer h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #e67e22, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.copyright {
    list-style: none;
    padding: 0;
    margin: 0;
    color: rgba(44, 62, 80, 0.5);
    font-size: 0.9rem;
}

.copyright li {
    display: inline-block;
    margin: 0 1rem;
}

#menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 10001;
}

#menu.active {
    right: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

#menu ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

#menu ul li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#menu ul li:last-child {
    border-bottom: none;
}

#menu ul li a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 1rem 0;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

#menu ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    transition: width 0.3s ease;
}

#menu ul li a:hover {
    color: #e74c3c;
    padding-left: 1rem;
}

#menu ul li a:hover::before {
    width: 30px;
}

.menuToggle {
    display: none;
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    #header h1 {
        left: 1rem;
        font-size: 1.4rem;
    }

    #header nav ul {
        display: none;
    }

    .menuToggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    #main-banner h2 {
        font-size: 2.5rem;
    }

    #main-banner p {
        font-size: 1rem;
    }

    .wrapper {
        padding: 4rem 0;
    }

    .wrapper .inner {
        padding: 0 1rem;
    }

    .server-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature {
        padding: 2rem;
    }

    .placeholder-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
    }

    .feature h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .feature p {
        font-size: 1rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    #main-banner h2 {
        font-size: 2rem;
    }

    .server-container {
        grid-template-columns: 1fr;
    }

    .feature {
        padding: 1.5rem;
    }
}

html {
    scroll-behavior: smooth;
}

a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #f39c12;
}

.online-count {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f39c12, #e91e63);
}

#rules-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    padding: 0 2rem;
    background: -webkit-linear-gradient(90deg, rgb(182, 214, 233) 5%, rgb(239, 231, 231), rgb(225, 197, 198) 85%);
    background: -moz-linear-gradient(90deg, rgb(182, 214, 233) 5%, rgb(239, 231, 231), rgb(225, 197, 198) 85%);
    background: linear-gradient(90deg, rgb(182, 214, 233) 5%, rgb(239, 231, 231), rgb(225, 197, 198) 85%);
}

#rules-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    z-index: -1;
}

#rules-banner .content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

#rules-banner h2 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #e74c3c, #f39c12, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(231, 76, 60, 0.2);
}

#rules-banner p {
    font-size: 1.2rem;
    color: rgba(44, 62, 80, 0.8);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

#rules-main {
    background: #ffffff;
    min-height: 100vh;
    padding: 4rem 0;
}

.rule-section {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.rule-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.02), rgba(243, 156, 18, 0.02));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}

.rule-section:hover::before {
    opacity: 1;
}

.rule-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.rule-header {
    margin-bottom: 2.5rem;
    position: relative;
}

.rule-header.major {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.rule-header.major h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #343a40;
    display: inline-block;
}

.rule-header.major h3 .text-primary {
    position: relative;
    display: inline-block;
}

.rule-header.major h3 .text-primary::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: #6c757d;
    border-radius: 1px;
}

.rule-header h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(231, 76, 60, 0.2);
    padding-bottom: 0.5rem;
}

.text-primary {
    color: #495057 !important;
}

.text-accent {
    color: #6c757d !important;
}

.text-warning {
    color: #495057 !important;
}

.text-center {
    text-align: center;
}

.rule-warning {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
    position: relative;
    padding-bottom: 0.5rem;
}

.rule-warning::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, #e67e22, #f39c12, #e74c3c);
    border-radius: 1px;
}

.rule-content {
    position: relative;
    z-index: 2;
}

.rule-numbered-list {
    counter-reset: rule-counter;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-numbered-list li {
    counter-increment: rule-counter;
    position: relative;
    padding: 1.2rem 1.5rem 1.2rem 3rem;
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    line-height: 1.6;
    border-left: 4px solid transparent;
}

.rule-numbered-list li:last-child {
    margin-bottom: 0;
}

.rule-numbered-list li::before {
    content: counter(rule-counter) ". ";
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
    font-size: 1rem;
}

.rule-numbered-list li:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(231, 76, 60, 0.2);
    border-left-color: #e74c3c;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.rule-subsection {
    margin: 2.5rem 0;
    position: relative;
}

.subsection-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    text-align: left;
    padding: 1rem 1.5rem;
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-left: 4px solid #495057;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    color: #343a40;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 1.1rem;
}

.rule-category {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.rule-category.allowed {
    background: rgba(76, 175, 80, 0.06);
}

.rule-category.forbidden {
    background: rgba(244, 67, 54, 0.06);
}

.category-title {
    padding: 1.2rem 1.5rem;
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.8);
    position: relative;
}

.rule-category.allowed .category-title {
    color: #2e7d32;
}

.rule-category.forbidden .category-title {
    color: #c62828;
}

.category-title::before,
.rule-category.allowed .category-title::before,
.rule-category.forbidden .category-title::before {
    display: none;
}

.rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-list-item {
    color: #2f2e37;
    padding: 1rem 1.5rem 1rem 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.rule-list-item:last-child {
    border-bottom: none;
}

.rule-list-item::before {
    content: '•';
    position: absolute;
    left: 1rem;
    color: rgba(44, 62, 80, 0.4);
    font-weight: bold;
    font-size: 1.2rem;
}

.rule-category.allowed .rule-list-item::before {
    content: '•';
    color: #4caf50;
}

.rule-category.forbidden .rule-list-item::before {
    content: '•';
    color: #f44336;
}

.rule-list-item:hover {
    background: rgba(255, 255, 255, 0.5);
    padding-left: 3.5rem;
}

.rule-text {
    padding: 1rem 0;
    line-height: 1.7;
    color: rgba(44, 62, 80, 0.9);
}

.rule-note {
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: rgba(44, 62, 80, 0.8);
}

.rule-transition {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-left: 4px solid #6c757d;
    border-radius: 8px;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rule-transition strong:first-of-type {
    color: #495057;
    font-size: 1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.rule-transition strong:not(:first-of-type) {
    color: #495057;
    font-size: 1rem;
    font-weight: 700;
    display: block;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.rule-transition strong {
    color: #495057;
    font-size: 1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.rule-examples {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    counter-reset: none;
}

.rule-examples li {
    margin-bottom: 0.6rem;
    color: rgba(44, 62, 80, 0.9);
    position: relative;
    padding-left: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
    counter-increment: none;
}

.rule-examples li::before {
    content: '';
    position: absolute;
    left: 0;
    color: #6c757d;
    font-weight: bold;
    font-size: 1.1rem;
}

.rule-examples li:last-child {
    margin-bottom: 0;
}

.rule-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 3rem 0;
}

.block-content {
    margin-top: 1.5rem;
}

.block-content .rule-transition {
    margin: 1.5rem 0;
    padding: 1.2rem 1.8rem;
    background: rgba(248, 249, 250, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-left: 4px solid #6c757d;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.block-content .rule-transition strong {
    color: #495057;
    font-size: 1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.block-content .rule-examples {
    margin-top: 0;
    padding: 0;
    list-style: none;
}

.block-content .rule-examples li {
    margin-bottom: 0.6rem;
    color: rgba(44, 62, 80, 0.9);
    position: relative;
    padding-left: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.block-content .rule-examples li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #6c757d;
    font-weight: bold;
    font-size: 1.1rem;
}

.block-content .rule-text {
    padding: 1rem 0;
    line-height: 1.7;
    color: rgba(44, 62, 80, 0.9);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.rule-subsection + .rule-subsection {
    margin-top: 3rem;
}

.block-content + .rule-subsection .subsection-title {
    margin-top: 2rem;
}

.rule-link {
    color: #bdc3c7 !important;
    text-decoration: none;
    margin-left: 0.5rem;
    font-size: 0.8em;
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 400;
}

h3:hover .rule-link,
h4:hover .rule-link,
h5:hover .rule-link,
li:hover .rule-link {
    opacity: 1;
}

.rule-link:hover {
    color: #f39c12 !important;
    transform: scale(1.1);
}

.rule-section {
    scroll-margin-top: 100px;
}

.rule-item {
    color: #2f2e37;
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    #rules-banner h2 {
        font-size: 2.8rem;
    }
    
    #rules-banner p {
        font-size: 1rem;
    }
    
    .rule-section {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .rule-header.major h3 {
        font-size: 1.6rem;
        letter-spacing: 0.3px;
    }
    
    .rule-header.major h3 .text-primary::after {
        width: 100%;
        height: 2px;
    }
    
    .rule-header h4 {
        font-size: 1.3rem;
    }
    
    .rule-numbered-list li {
        padding: 1rem 1.2rem 1rem 2.5rem;
        font-size: 0.95rem;
    }
    
    .rule-numbered-list li::before {
        left: 0.8rem;
        top: 1rem;
    }
    
    .subsection-title {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
        letter-spacing: 0.6px;
    }
    
    .category-title {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
    
    .rule-list-item {
        padding: 0.8rem 1rem 0.8rem 2.5rem;
    }
    
    .rule-warning {
        padding-bottom: 0.4rem;
        font-size: 1rem;
        margin: 1.5rem auto;
    }
    
    .rule-warning::after {
        width: 90%;
        height: 1.5px;
    }
    
    .rule-transition {
        padding: 1.2rem 1.5rem;
    }
    
    .rule-transition strong {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .rule-examples li {
        font-size: 0.9rem;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    #rules-banner h2 {
        font-size: 2.2rem;
    }
    
    .rule-section {
        padding: 1.5rem 1rem;
    }
    
    .rule-header.major h3 {
        font-size: 1.3rem;
        letter-spacing: 0.2px;
    }
    
    .rule-header.major h3 .text-primary::after {
        width: 100%;
        height: 2px;
    }
    
    .rule-numbered-list li {
        padding: 0.9rem 1rem 0.9rem 2.2rem;
        font-size: 0.9rem;
    }
    
    .rule-numbered-list li::before {
        left: 0.6rem;
        top: 0.9rem;
        font-size: 0.9rem;
    }
    
    .rule-warning {
        padding-bottom: 0.3rem;
        font-size: 0.95rem;
    }
    
    .rule-warning::after {
        width: 95%;
        height: 1px;
    }
    
    .rule-transition {
        padding: 1rem 1.2rem;
    }
    
    .rule-transition strong {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .rule-examples li {
        font-size: 0.85rem;
        padding-left: 0;
    }
}

@media print {
    .rule-link {
        display: none;
    }
    
    .rule-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .rule-section::before {
        display: none;
    }
}

@media (max-width: 768px) {
    * {
        animation-duration: 0s !important;
        animation-delay: 0s !important;
        transition-duration: 0.1s !important;
    }
    
    .rule-section::before,
    #rules-banner::before {
        display: none;
    }
}

@media (max-width: 768px) {
    * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}