/* Убираем глобальный transition из * селектора */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    /* Добавляем фиксированный background для избежания перерисовки */
    background-attachment: fixed;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(24, 24, 34, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffd93d;
    background: rgba(255, 217, 61, 0.1);
}

.nav-link.active {
    color: #ffd93d;
    background: rgba(255, 217, 61, 0.2);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(24, 24, 34, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    color: #ccc;
    text-decoration: none;
    padding: 10px 16px;
    display: block;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-button {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    position: relative;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Анимированный гамбургер */
.hamburger {
    position: relative;
    width: 20px;
    height: 20px;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 1px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

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

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(24, 24, 34, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding-top: 80px;
    padding: 80px 20px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-item {
    margin-bottom: 8px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
}

.mobile-nav-link:hover {
    color: #ffd93d;
    background: rgba(255, 217, 61, 0.1);
}

.mobile-nav-link.active {
    color: #ffd93d;
    background: rgba(255, 217, 61, 0.15);
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-nav-item.expanded .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-item.expanded .mobile-dropdown-items {
    max-height: 200px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-dropdown-item {
    color: #ccc;
    font-size: 16px;
    padding: 12px 20px 12px 40px;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-dropdown-item:before {
    content: '→';
    position: absolute;
    left: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-dropdown-item:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding-left: 45px;
}

.mobile-dropdown-item:hover:before {
    opacity: 1;
}

.mobile-cta {
    margin-top: 40px;
    text-align: center;
}

.mobile-cta .cta-button {
    display: inline-block;
    width: auto;
    font-size: 16px;
    padding: 16px 32px;
}

@media (max-width: 768px) {

    .nav-menu,
    .header-actions .cta-button {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-container {
        padding: 15px 20px;
    }

    .logo img {
        height: 35px;
    }

    .demo-content h1 {
        font-size: 2rem;
    }

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 107, 0.03);
    /* Простой фон вместо радиальных градиентов */
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #ffd93d;
    /* Просто цвет вместо градиента */
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #0047db;
    color: #fefefe;
}

.btn-outline:hover {
    background: #0047db;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 71, 219, 0.3);
}

.btn-primary {
    background: #ff6b6b;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #ff8e53;
    transform: translateY(-1px);
}

.hero-image {
    position: relative;
    text-align: center;
}

.game-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 107, 0.3);
    /* Граница вместо тени */
    position: relative;
    z-index: 2;
}

.game-image:hover {
    border-color: #ff6b6b;
}

.image-glow {
    display: none;
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section {
    margin-bottom: 40px;
}

.content-section:last-child {
    margin-bottom: 0;
}

/* Typography */
h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ff6b6b;
    /* Простой цвет */
    margin-bottom: 20px;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffd93d;
    margin-bottom: 15px;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff6b6b;
    margin-bottom: 12px;
}

h5 {
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

h6 {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Table Styles */
.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-stats {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.game-stats th {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.game-stats th:first-child {
    border-top-left-radius: 12px;
}

.game-stats th:last-child {
    border-top-right-radius: 12px;
}

.game-stats td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transition: background-color 0.2s ease;
}

.game-stats tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.game-stats tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.game-stats tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* List Styles */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.feature-list li:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 107, 107, 0.5);
}

.feature-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

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

    .nav-container {
        padding: 12px 0;
    }

    .logo img {
        height: 35px;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 50px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .btn {
        min-width: 140px;
        font-size: 13px;
    }

    .main-content {
        padding: 30px 20px;
        margin: 20px 0;
    }

    .content-section {
        margin-bottom: 30px;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.3rem;
    }

    h5 {
        font-size: 1.2rem;
    }

    h6 {
        font-size: 1rem;
    }

    .feature-list li {
        padding: 12px 15px;
        font-size: 14px;
    }

    .feature-icon {
        font-size: 1rem;
    }

    .game-stats th,
    .game-stats td {
        padding: 10px 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 15px;
    }

    .cta-button {
        padding: 10px 18px;
        font-size: 12px;
    }

    .hero-content {
        gap: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }

    .main-content {
        padding: 20px 15px;
        border-radius: 15px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .table-wrapper {
        margin: 0 -15px;
        border-radius: 0;
    }

    .game-stats {
        min-width: 400px;
    }

    .feature-list li {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* FAQ Section */
.faq-section {
    background: rgba(255, 255, 255, 0.02);
    /* Убираем backdrop-filter */
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 107, 0.3);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    position: relative;
}

.faq-question:hover {
    color: #ffd93d;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #ff6b6b;
    transition: transform 0.2s ease;
    font-weight: bold;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
    padding: 0 25px;
}

.faq-answer.active {
    max-height: 200px;
    padding: 0 25px 20px;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #ffd93d;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #ff6b6b;
    /* Убираем transform */
}

.responsible-gaming {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.responsible-gaming h4 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.responsible-gaming p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 40px 0 30px;
    flex-wrap: wrap;
}

.footer-logo {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    /* Уменьшаем смещение */
}

.footer-logo img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 30px 20px;
        margin: 20px 0;
    }

    .faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .faq-answer.active {
        padding: 0 20px 15px;
    }

    .footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }

    .footer-content {
        gap: 30px;
    }

    .footer-logos {
        gap: 20px;
        margin: 30px 0 20px;
    }

    .footer-logo {
        width: 50px;
        height: 50px;
    }

    .footer-logo img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logos {
        gap: 15px;
    }

    .footer-logo {
        width: 45px;
        height: 45px;
    }

    .footer-logo img {
        width: 25px;
        height: 25px;
    }
}

.game-demo-card {
    background: #18181e;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin: 40px auto;
    text-align: center;
    position: relative;
    transition: box-shadow 0.3s;
}

.game-demo-card:hover {
    box-shadow: 0 12px 40px rgba(255, 217, 61, 0.15);
}

.game-demo-preview {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.game-demo-img {
    width: 100%;
    display: block;
    border-radius: 16px;
}

.game-demo-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ffd93d, #ff6b6b);
    border: none;
    border-radius: 50%;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.2);
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
    animation: pulse-move 1.6s infinite;
}

@keyframes pulse-move {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(-3deg);
        box-shadow: 0 4px 16px rgba(255, 107, 107, 0.2);
    }

    20% {
        transform: translate(-50%, -50%) scale(1.08) rotate(3deg);
        box-shadow: 0 8px 24px rgba(255, 217, 61, 0.18);
    }

    40% {
        transform: translate(-50%, -50%) scale(1) rotate(-2deg);
        box-shadow: 0 4px 16px rgba(255, 107, 107, 0.2);
    }

    60% {
        transform: translate(-50%, -50%) scale(1.06) rotate(2deg);
        box-shadow: 0 8px 24px rgba(255, 217, 61, 0.18);
    }

    80% {
        transform: translate(-50%, -50%) scale(1) rotate(-3deg);
        box-shadow: 0 4px 16px rgba(255, 107, 107, 0.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1) rotate(-3deg);
        box-shadow: 0 4px 16px rgba(255, 107, 107, 0.2);
    }
}

.game-demo-play:hover {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    transform: translate(-50%, -50%) scale(1.08);
}

.play-icon {
    color: #fff;
    font-size: 2.5rem;
    margin-left: 6px;
}

.game-demo-title {
    margin-top: 18px;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.game-demo-iframe-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.game-demo-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    border-radius: 16px;
}

/* Адаптив */
@media (max-width: 600px) {
    .game-demo-card {
        max-width: 98vw;
    }

    .game-demo-title {
        font-size: 1rem;
    }

    .game-demo-play {
        width: 56px;
        height: 56px;
    }

    .play-icon {
        font-size: 1.6rem;
    }

    .game-demo-iframe-wrap {
        aspect-ratio: 16/9;
    }
}