@font-face {
    font-family: 'MISERABLE';
    src: url('MISERABLE.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: #ffffff;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo h1 {
    font-family: 'MISERABLE', serif;
    font-size: 3rem;
    font-weight: 400; 
    background: linear-gradient(45deg, #f2346c, #d73464);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #f2346c;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #f2346c, #d73464);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

main {
    margin-top: 80px;
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(
        45deg,
        #15ff00 0%,
        #aaff55 15%,
        #f2346c 60%,
        #ff4fa0 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #cccccc;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(45deg, #f2346c, #d73464);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(242, 52, 108, 0.3);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mascot-placeholder {
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    position: relative;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(242, 52, 108, 0.3));
}

.hero-logo {
    width: 300px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(242, 52, 108, 0.8));
    animation: glow-logo 3s ease-in-out infinite alternate;
}

@keyframes glow-logo {
    0% { filter: drop-shadow(0 0 30px rgba(242, 52, 108, 0.8)); }
    100% { filter: drop-shadow(0 0 50px rgba(242, 52, 108, 0.8)) drop-shadow(0 0 80px rgba(215, 52, 100, 0.6)); }
}

.floating-element {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #f2346c, #d73464);
    border-radius: 50%;
    opacity: 0.1;
    position: absolute;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.games-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.games-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(
        45deg,
        #15ff00 0%,
        #aaff55 15%,
        #f2346c 60%,
        #ff4fa0 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.game-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(242, 52, 108, 0.2);
}

.game-image {
    width: fit-content;
    height: fit-content;
    background: linear-gradient(135deg, #f2346c, #d73464);
    border-radius: 10px;
    margin: 0 auto 1rem auto; /* центрируем и добавляем отступ снизу */
    opacity: 0.8;
    display: block;
    overflow: hidden;
    padding: 0;
    max-width: 100%;
    max-height: 250px;
}

.game-logo {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    display: block;
    border-radius: 10px;
}

.game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #f2346c;
}

.game-card p {
    color: #cccccc;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.status {
    display: inline-block;
    background: rgba(242, 52, 108, 0.2);
    color: #f2346c;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #f2346c;
    margin-right: 8px;
    margin-bottom: 5px;
}

.status:last-child {
    margin-right: 0;
}

.about-section {
    padding: 100px 5%;
    background: rgba(255, 255, 255, 0.02);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(
            45deg,
            #15ff00 0%,
            #aaff55 15%,
            #f2346c 60%,
            #ff4fa0 100%
        );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 3rem;
    color: #f2346c;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #cccccc;
    font-size: 1rem;
}

.contact-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(
            45deg,
            #15ff00 0%,
            #aaff55 15%,
            #f2346c 60%,
            #ff4fa0 100%
        );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #f2346c;
}

.contact-info p {
    color: #cccccc;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.social-links {
    margin-top: 2rem;
}

.social-link {
    display: inline-block;
    color: #f2346c;
    text-decoration: none;
    margin-right: 1rem;
    padding: 10px 20px;
    border: 1px solid #f2346c;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #f2346c;
    color: #0f0f23;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #f2346c;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888888;
}

.contact-form button {
    background: linear-gradient(45deg, #f2346c, #d73464);
    border: none;
    padding: 15px;
    color: white;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
}

.team-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.team-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(
            45deg,
            #15ff00 0%,
            #aaff55 15%,
            #f2346c 60%,
            #ff4fa0 100%
        );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(242, 52, 108, 0.2);
}

.member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(45deg, #f2346c, #d73464);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-member h3 {
    font-size: 1.5rem;
    color: #f2346c;
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.team-member .bio {
    color: #cccccc;
    line-height: 1.6;
    font-size: 0.95rem;
}

footer {
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 2rem;
    color: #888888;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 3%;
        position: relative;
    }

    .logo img {
        height: 30px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 0;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
        z-index: 1001;
    }

    .nav-links.active {
        max-height: 400px;
        opacity: 1;
        padding: 1rem 0;
    }

    .nav-links li {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 5%;
        min-height: 80vh;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .mascot-placeholder {
        width: 200px;
        height: 200px;
    }

    .hero-logo {
        width: 200px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .floating-element {
        width: 200px;
        height: 200px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat h3 {
        font-size: 2rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .team-member {
        padding: 1.5rem;
    }

    .member-avatar {
        width: 100px;
        height: 100px;
    }


    /* Mobile status badges */
    .status {
        font-size: 0.8rem;
        padding: 4px 12px;
        margin-right: 6px;
        margin-bottom: 6px;
    }


    /* Improve mobile spacing */
    .game-card p {
        margin-bottom: 1.25rem;
    }
}