* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --fmcl-bg-deep: #040714;
    --fmcl-primary: #3EE4D8;
    --fmcl-secondary: #B35CFF;
    --fmcl-glass: rgba(255, 255, 255, 0.06);
    --fmcl-glass-border: rgba(255, 255, 255, 0.1);
    --fmcl-text: rgba(255, 255, 255, 0.9);
    --fmcl-text-secondary: rgba(255, 255, 255, 0.7);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--fmcl-bg-deep);
    color: var(--fmcl-text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Боковое меню */
.fmcl-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: rgba(4, 7, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--fmcl-glass-border);
    z-index: 1000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.fmcl-sidebar-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 30px;
}

.fmcl-sidebar-nav {
    list-style: none;
    flex: 1;
}

.fmcl-sidebar-nav li {
    margin-bottom: 10px;
}

.fmcl-sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--fmcl-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--fmcl-glass);
    border: 1px solid transparent;
}

.fmcl-sidebar-nav a:hover,
.fmcl-sidebar-nav a:focus {
    background: rgba(62, 228, 216, 0.1);
    border-color: var(--fmcl-primary);
    color: var(--fmcl-primary);
    transform: translateX(5px);
    outline: 2px solid var(--fmcl-primary);
    outline-offset: 2px;
}

.fmcl-sidebar-nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    opacity: 0.7;
}

/* Выпадающее меню */
.fmcl-sidebar-dropdown {
    position: relative;
}

.fmcl-sidebar-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.fmcl-sidebar-dropdown-arrow {
    width: 16px;
    height: 16px;
    margin-left: auto;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.fmcl-sidebar-dropdown.active .fmcl-sidebar-dropdown-arrow {
    transform: rotate(180deg);
}

.fmcl-sidebar-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    margin: 5px 0 0 0;
}

.fmcl-sidebar-dropdown.active .fmcl-sidebar-submenu {
    max-height: 300px;
    padding: 5px 0;
}

.fmcl-sidebar-dropdown.active > .fmcl-sidebar-dropdown-toggle {
    background: rgba(62, 228, 216, 0.1);
    border-color: var(--fmcl-primary);
    color: var(--fmcl-primary);
}

.fmcl-sidebar-submenu li {
    margin-bottom: 5px;
}

.fmcl-sidebar-submenu a {
    padding: 10px 15px 10px 45px;
    font-size: 14px;
    display: block;
}

.fmcl-sidebar-submenu a:hover,
.fmcl-sidebar-submenu a:focus {
    background: rgba(62, 228, 216, 0.08);
    transform: translateX(3px);
}

/* Верхнее меню */
.fmcl-topbar {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    height: 70px;
    background: rgba(4, 7, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--fmcl-glass-border);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 30px;
    gap: 15px;
}

.fmcl-topbar-logo {
    display: none;
    height: 40px;
    width: auto;
    max-width: 150px;
}

.fmcl-topbar-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fmcl-btn {
    padding: 10px 25px;
    border: 1px solid var(--fmcl-glass-border);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--fmcl-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.fmcl-btn:hover,
.fmcl-btn:focus {
    background: linear-gradient(to bottom, rgba(62, 228, 216, 0.2), rgba(62, 228, 216, 0.3));
    border-color: var(--fmcl-primary);
    color: var(--fmcl-primary);
    box-shadow: 0 0 20px rgba(62, 228, 216, 0.3);
    transform: translateY(-2px);
    outline: 2px solid var(--fmcl-primary);
    outline-offset: 2px;
}

.fmcl-btn-primary {
    background: linear-gradient(to bottom, rgba(62, 228, 216, 0.2), rgba(62, 228, 216, 0.3));
    border-color: var(--fmcl-primary);
    color: var(--fmcl-primary);
}

.fmcl-btn-primary:hover,
.fmcl-btn-primary:focus {
    background: linear-gradient(to bottom, rgba(62, 228, 216, 0.3), rgba(62, 228, 216, 0.4));
    box-shadow: 0 0 25px rgba(62, 228, 216, 0.5);
}

/* Плавающие кнопки */
.fmcl-floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.fmcl-floating-btn {
    width: 50px;
    height: 50px;
    background: var(--fmcl-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--fmcl-glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--fmcl-text);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
}

.fmcl-floating-btn#fmclChatBtn {
    opacity: 1;
    visibility: visible;
}

.fmcl-floating-btn:hover,
.fmcl-floating-btn:focus {
    background: rgba(62, 228, 216, 0.2);
    border-color: var(--fmcl-primary);
    color: var(--fmcl-primary);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(62, 228, 216, 0.4);
    outline: none;
}

.fmcl-floating-btn svg {
    width: 24px;
    height: 24px;
}

/* Бургер-меню */
.fmcl-burger {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--fmcl-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--fmcl-glass-border);
    border-radius: 50%;
    z-index: 1001;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.fmcl-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fmcl-sidebar-overlay.active {
    opacity: 1;
}

.fmcl-burger span {
    width: 24px;
    height: 2px;
    background: var(--fmcl-text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.fmcl-burger:focus {
    outline: 2px solid var(--fmcl-primary);
    outline-offset: 2px;
}

.fmcl-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.fmcl-burger.active span:nth-child(2) {
    opacity: 0;
}

.fmcl-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Основной контент */
.fmcl-main {
    margin-left: 280px;
    margin-top: 70px;
    width: calc(100% - 280px);
    max-width: 100%;
    overflow-x: hidden;
}

/* Секции */
.fmcl-section {
    padding: 80px 30px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.fmcl-section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--fmcl-primary);
    text-align: center;
}

.fmcl-section-subtitle {
    font-size: 18px;
    color: var(--fmcl-text-secondary);
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero блок */
.fmcl-hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(62, 228, 216, 0.05) 0%, rgba(179, 92, 255, 0.05) 100%);
}

.fmcl-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(62, 228, 216, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(179, 92, 255, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(62, 228, 216, 0.15) 0%, transparent 60%);
    animation: fmcl-pulse 6s ease-in-out infinite;
}

.fmcl-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(62, 228, 216, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(179, 92, 255, 0.1) 50%, transparent 70%);
    animation: fmcl-rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes fmcl-pulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes fmcl-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fmcl-hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.fmcl-hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--fmcl-primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: fmcl-float 8s ease-in-out infinite;
}

.fmcl-hero-particle:nth-child(2) {
    background: var(--fmcl-secondary);
    animation-delay: 2s;
    left: 20%;
}

.fmcl-hero-particle:nth-child(3) {
    animation-delay: 4s;
    left: 60%;
}

.fmcl-hero-particle:nth-child(4) {
    background: var(--fmcl-secondary);
    animation-delay: 6s;
    left: 80%;
}

@keyframes fmcl-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-60px) translateX(-10px);
        opacity: 1;
    }
    75% {
        transform: translateY(-30px) translateX(-20px);
        opacity: 0.8;
    }
}

.fmcl-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 40px;
    background: rgba(4, 7, 20, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(62, 228, 216, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(62, 228, 216, 0.2),
                inset 0 0 30px rgba(179, 92, 255, 0.1);
}

.fmcl-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--fmcl-primary) 0%, #4FFFE8 50%, var(--fmcl-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(62, 228, 216, 0.5);
    filter: drop-shadow(0 0 20px rgba(179, 92, 255, 0.3));
}

.fmcl-hero-text {
    font-size: 20px;
    color: var(--fmcl-text);
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

/* Адаптивность */
@media (min-width: 1024px) {
    .fmcl-floating-buttons {
        display: flex;
    }
    
    .fmcl-floating-btn {
        opacity: 1;
        visibility: visible;
    }
    
    .fmcl-topbar {
        justify-content: flex-end;
    }
    
    .fmcl-topbar-logo {
        display: none;
    }
    
    .fmcl-faq-item {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .fmcl-faq-question {
        font-size: 19px;
        padding: 22px 30px;
    }
    
    .fmcl-faq-answer {
        padding: 0 30px;
    }
    
    .fmcl-faq-item.active .fmcl-faq-answer {
        padding: 0 30px 25px;
    }
}

@media (max-width: 1023px) {
    .fmcl-sidebar {
        transform: translateX(-100%);
    }

    .fmcl-sidebar.active {
        transform: translateX(0);
    }

    .fmcl-topbar {
        left: 0;
    }

    .fmcl-main {
        margin-left: 0;
    }

    .fmcl-footer {
        margin-left: 0;
        width: 100%;
    }

    .fmcl-burger {
        display: flex;
    }

    .fmcl-sidebar-overlay {
        display: block;
    }

    .fmcl-floating-buttons {
        display: flex;
        bottom: 90px;
    }
}

/* Игры */
.fmcl-games {
    padding: 80px 30px;
}

.fmcl-games-category {
    margin-bottom: 60px;
}

/* Кнопки категорий на главной странице */
.fmcl-games-categories-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.fmcl-category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--fmcl-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--fmcl-glass-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--fmcl-text-secondary);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 200px;
}

.fmcl-category-btn svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.fmcl-category-btn span {
    font-size: 18px;
    font-weight: 600;
    color: var(--fmcl-text-primary);
}

.fmcl-category-btn:hover {
    transform: translateY(-5px);
    border-color: var(--fmcl-primary);
    background: rgba(62, 228, 216, 0.1);
    box-shadow: 0 10px 30px rgba(62, 228, 216, 0.3);
}

.fmcl-category-btn:hover svg {
    opacity: 1;
    color: var(--fmcl-primary);
    transform: scale(1.1);
}

.fmcl-category-btn:hover span {
    color: var(--fmcl-primary);
}

.fmcl-games-category-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--fmcl-secondary);
    margin-bottom: 20px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fmcl-view-all-btn {
    padding: 10px 20px;
    background: var(--fmcl-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--fmcl-glass-border);
    border-radius: 8px;
    color: var(--fmcl-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.fmcl-view-all-btn:hover {
    background: rgba(62, 228, 216, 0.1);
    border-color: var(--fmcl-primary);
    color: var(--fmcl-primary);
    transform: translateX(5px);
}

.fmcl-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.fmcl-game-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--fmcl-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--fmcl-glass-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.fmcl-game-card:hover {
    transform: translateY(-5px);
    border-color: var(--fmcl-primary);
    box-shadow: 0 10px 30px rgba(62, 228, 216, 0.3);
}

.fmcl-game-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: rgba(4, 7, 20, 0.5);
    max-width: 100%;
}

.fmcl-game-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(4, 7, 20, 0.95), transparent);
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.fmcl-game-card:hover .fmcl-game-card-overlay,
.fmcl-game-card:focus .fmcl-game-card-overlay,
.fmcl-game-card.active .fmcl-game-card-overlay {
    opacity: 1;
    pointer-events: auto;
}

.fmcl-game-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--fmcl-text);
    margin-bottom: 10px;
}

.fmcl-game-card-buttons {
    display: flex;
    gap: 8px;
}

.fmcl-game-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    text-align: center;
}

/* Бонусы и преимущества */
.fmcl-features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.fmcl-feature-card {
    background: var(--fmcl-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--fmcl-glass-border);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fmcl-feature-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.fmcl-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--fmcl-primary);
    box-shadow: 0 10px 30px rgba(62, 228, 216, 0.2);
    background: rgba(62, 228, 216, 0.05);
}

.fmcl-feature-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--fmcl-primary);
    margin-bottom: 10px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
}

.fmcl-feature-card-text {
    font-size: 13px;
    color: var(--fmcl-text-secondary);
    line-height: 1.5;
    flex: 1;
}

/* Регистрация и зеркала */
.fmcl-info-block {
    background: var(--fmcl-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--fmcl-glass-border);
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
}

.fmcl-info-block p {
    font-size: 18px;
    color: var(--fmcl-text);
    line-height: 1.8;
    margin-bottom: 15px;
}

.fmcl-info-block p:last-child {
    margin-bottom: 0;
}

.fmcl-info-block h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--fmcl-primary);
    margin-bottom: 15px;
    margin-top: 30px;
}

.fmcl-info-block h2:first-child {
    margin-top: 0;
}

.fmcl-info-block ul {
    text-align: left;
    display: inline-block;
    margin: 20px 0;
    padding-left: 30px;
    color: var(--fmcl-text);
    line-height: 1.8;
}

.fmcl-info-block ul li {
    margin-bottom: 10px;
}

.fmcl-info-block ul li strong {
    color: var(--fmcl-primary);
}

/* FAQ */
.fmcl-faq-list {
    max-width: 1000px;
    margin: 0 auto;
}

.fmcl-faq-item {
    background: rgba(62, 228, 216, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(62, 228, 216, 0.2);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.fmcl-faq-item:hover {
    border-color: var(--fmcl-primary);
    background: rgba(62, 228, 216, 0.08);
    box-shadow: 0 5px 20px rgba(62, 228, 216, 0.2);
}

.fmcl-faq-question {
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--fmcl-text);
    cursor: default;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    pointer-events: none;
}

.fmcl-faq-question:focus {
    outline: 2px solid var(--fmcl-primary);
    outline-offset: -2px;
    border-radius: 12px;
}

.fmcl-faq-question::after {
    display: none;
}

.fmcl-faq-answer {
    padding: 0 25px 20px;
    max-height: none;
    overflow: visible;
}

.fmcl-faq-answer p {
    font-size: 16px;
    color: var(--fmcl-text-secondary);
    line-height: 1.6;
}

/* Футер */
.fmcl-footer {
    background: rgba(4, 7, 20, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--fmcl-glass-border);
    padding: 40px 30px;
    margin-top: 80px;
    margin-left: 280px;
    width: calc(100% - 280px);
    box-sizing: border-box;
    overflow: visible;
}

.fmcl-footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.fmcl-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    overflow: visible;
}

@media (min-width: 1024px) {
    .fmcl-footer-top {
        flex-wrap: nowrap;
    }
    
    .fmcl-footer-copyright {
        flex: 0 0 auto;
        min-width: 280px;
        margin-right: 20px;
    }
    
    .fmcl-footer-links {
        flex: 1 1 auto;
        justify-content: flex-end;
    }
}

.fmcl-footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.fmcl-footer-links a {
    color: var(--fmcl-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.fmcl-footer-links a:hover,
.fmcl-footer-links a:focus {
    color: var(--fmcl-primary);
}

.fmcl-footer-copyright {
    color: var(--fmcl-text-secondary);
    font-size: 14px;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    min-width: 0;
    flex: 0 1 auto;
}

.fmcl-footer-payments {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--fmcl-glass-border);
    text-align: center;
    width: 100%;
}

.fmcl-footer-payments-text {
    color: var(--fmcl-text-secondary);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 1439px) {
    .fmcl-games-grid,
    .fmcl-features-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1023px) {
    .fmcl-games-grid,
    .fmcl-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fmcl-games-categories-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fmcl-category-btn {
        min-height: 150px;
        padding: 30px 15px;
    }
    
    .fmcl-category-btn svg {
        width: 50px;
        height: 50px;
    }
    
    .fmcl-games-category-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 767px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        position: relative;
    }
    
    .fmcl-section {
        padding: 60px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .fmcl-main {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .fmcl-section-title {
        font-size: 28px;
    }

    .fmcl-hero-title {
        font-size: 32px;
    }

    .fmcl-hero-text {
        font-size: 16px;
    }

    .fmcl-topbar {
        padding: 0 15px;
    }

    .fmcl-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .fmcl-games-grid,
    .fmcl-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .fmcl-game-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .fmcl-info-block {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .fmcl-games-categories-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .fmcl-category-btn {
        min-height: 120px;
        padding: 25px 15px;
    }
    
    .fmcl-category-btn svg {
        width: 40px;
        height: 40px;
    }
    
    .fmcl-category-btn span {
        font-size: 16px;
    }

    .fmcl-info-block {
        padding: 25px 20px;
    }

    .fmcl-info-block p {
        font-size: 16px;
    }

    .fmcl-footer {
        padding: 30px 15px;
        margin-left: 0;
        width: 100%;
        overflow: visible;
        left: 0;
        right: 0;
    }

    .fmcl-footer-content {
        overflow: visible;
        max-width: 100%;
    }

    .fmcl-footer-top {
        flex-direction: column;
        text-align: center;
        align-items: center;
        overflow: visible;
        gap: 15px;
    }

    .fmcl-footer-links {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        width: 100%;
    }

    .fmcl-footer-links a {
        font-size: 12px;
    }

    .fmcl-footer-copyright {
        font-size: 12px;
        width: 100%;
        text-align: center;
        overflow: visible;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .fmcl-topbar {
        left: 0;
        padding: 0 15px;
    }
    
    .fmcl-topbar-logo {
        display: block;
    }
    
    .fmcl-topbar-buttons {
        gap: 10px;
    }
    
    .fmcl-game-card {
        touch-action: manipulation;
    }
    
    .fmcl-game-card:active .fmcl-game-card-overlay {
        opacity: 1;
    }
}

@media (max-width: 479px) {
    .fmcl-games-grid,
    .fmcl-features-grid {
        grid-template-columns: 1fr;
    }

    .fmcl-sidebar {
        width: 100%;
        max-width: 300px;
    }

    .fmcl-floating-buttons {
        right: 15px;
        bottom: 85px;
    }

    .fmcl-burger {
        bottom: 15px;
        right: 15px;
    }
}

/* Улучшение контрастности для доступности */
@media (prefers-contrast: high) {
    :root {
        --fmcl-text: #ffffff;
        --fmcl-text-secondary: #ffffff;
        --fmcl-glass-border: rgba(255, 255, 255, 0.3);
    }
}

/* Уменьшение анимаций для пользователей с предпочтениями */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

