@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Переменные из оригинала */
:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #4d94ff;
    --dark: #0f0f1a;
    --darker: #080810;
    --light: #f5f5f5;
    --gray: #888;
    --gray-dark: #333;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", "Montserrat", sans-serif;
}

body {
    min-height: 100dvh;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

body.menu-open {
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Glow из оригинала */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.glow-1 {
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: var(--primary);
    animation: float 15s ease-in-out infinite;
}

.glow-2 {
    bottom: -200px;
    right: -100px;
    width: 800px;
    height: 800px;
    background: var(--primary-light);
    animation: float 20s ease-in-out infinite reverse;
}

.glow-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: var(--primary-dark);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(100px, 100px); }
    100% { transform: translate(0, 0); }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.1; }
    50% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.1; }
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
}

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 18px; }

/* Header */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.logo i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 28px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary);
}

/* Mobile menu (из нашего) */
.mobile-menu-btn { display: none; flex-direction: column; cursor: pointer; }
.mobile-menu-btn span { width: 25px; height: 3px; background: var(--light); margin: 3px 0; transition: 0.3s; }
.desktop-only { display: inline-block; }
@media (max-width: 768px) {
    header .container { flex-direction: column; gap: 1rem; }
    nav ul { display: none; flex-direction: column; width: 100%; background: rgba(15,15,26,0.9); padding: 1rem; }
    nav ul.active { display: flex; }
    .mobile-menu-btn { display: flex; }
    .desktop-only { display: none; }
}

/* Hero */
.hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.tag {
    display: inline-block;
    background-color: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 102, 255, 0.3);
}

h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.accent {
    color: var(--primary);
}

.hero p {
    margin-bottom: 30px;
    font-size: 16px;
    color: var(--gray);
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.compatibility {
    margin-top: 25px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--gray);
}

.compatibility i {
    margin-right: 10px;
    font-size: 18px;
}

.hero-video {
    flex: 1;
    position: relative;
}

.hero-video video {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

@media (max-width: 992px) {
    .hero .container { flex-direction: column; }
    .hero-video { margin-top: 40px; }
    h1 { font-size: 36px; }
}

/* Features */
.features {
    padding: 100px 0;
    background-color: var(--darker);
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: rgba(15, 15, 26, 0.5);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 24px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Catalog */
.catalog {
    padding: 100px 0;
}

.catalog-header {
    margin-bottom: 50px;
    text-align: center;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: rgba(15, 15, 26, 0.5);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
}

.game-image {
    position: relative;
}

.game-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.game-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.game-info p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8em;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--gray);
}

.game-meta span {
    display: flex;
    align-items: center;
}

.game-meta i {
    margin-right: 5px;
    color: var(--primary);
}

.more-games {
    background-color: rgba(0, 102, 255, 0.05);
    border-radius: 10px;
    border: 1px dashed var(--primary);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.more-games:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
    background-color: rgba(0, 102, 255, 0.1);
}

.more-games-content {
    padding: 30px;
    text-align: center;
}

.more-games-content i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.more-games-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.more-games-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* How to install */
.how-to-install {
    padding: 100px 0;
    background-color: var(--darker);
}

.how-to-install .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.install-content {
    flex: 1;
}

.install-content .section-title {
    text-align: left;
}

.install-image {
    flex: 1;
}

.install-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.steps {
    margin-top: 40px;
}

.step {
    display: flex;
    margin-bottom: 30px;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--gray);
}

@media (max-width: 992px) {
    .how-to-install .container { flex-direction: column; }
    .install-image { order: -1; margin-bottom: 40px; }
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
}

.testimonials-slider {
    margin-top: 50px;
    position: relative;
    display: flex;
    gap: 10px;
}

.testimonial {
    background-color: rgba(15, 15, 26, 0.5);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    position: relative;
    padding: 0 20px;
    color: var(--gray);
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 24px;
    color: var(--primary);
    position: absolute;
}

.testimonial-content p::before {
    left: 0;
    top: 0;
}

.testimonial-content p::after {
    right: 0;
    bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 102, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.author-avatar i {
    font-size: 20px;
    color: var(--primary);
}

.author-info {
    flex-grow: 1;
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 14px;
    color: var(--gray);
}

.rating {
    color: var(--warning);
    font-size: 14px;
}

.testimonials-slider-wrapper { position: relative; }
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(15, 15, 26, 0.7);
    color: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--primary);
    color: white;
}

.prev { left: 0; }
.next { right: 0; }

.testimonials-slider {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    scroll-snap-type: x mandatory;
    padding: 1rem 0;
    scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar { display: none; }

@media (min-width: 768px) { .testimonial { flex: 0 0 33%; } }
@media (max-width: 992px) { .testimonials-slider { flex-direction: column; } }

/* FAQ */
.faq {
    padding: 100px 0;
    background-color: var(--darker);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: rgba(15, 15, 26, 0.5);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 500;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer p {
    color: var(--gray);
    padding-bottom: 20px;
}

/* CTA */
.cta {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 102, 255, 0.1), rgba(0, 102, 255, 0.05));
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-content p {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 18px;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 80px 0 40px;
    background-color: var(--darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: flex;
    align-items: start;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
}

.footer-logo i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 28px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.footer-social i {
    font-size: 18px;
}

.footer-middle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-nav h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: var(--gray);
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--gray);
    font-size: 14px;
}

@media (max-width: 576px) {
    .footer-top { flex-direction: column; gap: 20px; }
}

/* Анимации */
@keyframes pulse-btn {
    0% { box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 102, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 102, 255, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Back to top */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: 0.3s;
    font-size: 1.2rem;
    background: rgba(15,15,26,0.9);
    color: var(--gray);
    border: 1px solid rgba(255,255,255,0.05);
}

#back-to-top:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Общие секции */
main { flex: 1; }
.page-content, .terms-content, .tutorials-content, .catalog-content { padding: 60px 0; }

.page-title {
    font-size: 36px;
    margin-bottom: 15px;
    text-align: center;
}

.page-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--gray);
}

.content-card {
    background-color: rgba(15, 15, 26, 0.5);
    border-radius: 10px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
}

.content-card h1 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary);
}

.terms-section {
    margin-bottom: 40px;
}

.terms-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--light);
}

.terms-section p {
    color: var(--gray);
    margin-bottom: 15px;
}

.terms-section ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--gray);
}

.terms-section ul li {
    margin-bottom: 5px;
}

.terms-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray);
    font-style: italic;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background-color: rgba(15, 15, 26, 0.5);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.info-icon i {
    font-size: 24px;
    color: var(--primary);
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.info-card p {
    color: var(--gray);
    margin-bottom: 10px;
}

.info-card a {
    color: var(--primary);
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--primary-light);
}

.form-card {
    background-color: rgba(15, 15, 26, 0.5);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-card h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.form-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.required {
    color: var(--primary);
}

.error-message {
    color: var(--danger);
    font-size: 12px;
    margin-top: 5px;
}

.btn-submit {
    align-self: flex-start;
}

.tutorials-content { padding: 60px 0; }

.tutorial-section {
    margin-bottom: 60px;
}

.tutorial-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--light);
}

.tutorial-section p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.tutorial-image {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tutorial-image img {
    width: 100%;
}

.tutorial-steps {
    margin: 30px 0;
}

.tutorial-step {
    display: flex;
    margin-bottom: 30px;
}

.tutorial-step a {
    color: var(--primary);
}

.tutorial-step a:hover {
    text-decoration: underline;
}

.tutorial-step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
}

.tutorial-step-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.tutorial-step-content p {
    color: var(--gray);
}

.tutorial-note {
    background-color: rgba(0, 102, 255, 0.1);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
}

.tutorial-note h4 {
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.tutorial-note h4 i {
    margin-right: 10px;
    color: var(--primary);
}

.tutorial-note p {
    color: var(--gray);
    margin-bottom: 0;
}

.tutorial-toc {
    background-color: rgba(15, 15, 26, 0.5);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
}

.tutorial-toc h3 {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.tutorial-toc h3 i {
    margin-right: 10px;
    color: var(--primary);
}

.tutorial-toc ul {
    list-style: none;
}

.tutorial-toc ul li {
    margin-bottom: 10px;
}

.tutorial-toc ul li a {
    color: var(--gray);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.tutorial-toc ul li a:hover {
    color: var(--primary);
}

.tutorial-toc ul li a i {
    margin-right: 10px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .tutorials-grid { grid-template-columns: 1fr; }
}

/* Catalog дополнительные */
.catalog-content { padding: 60px 0; }

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.search-box {
    position: relative;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.2);
}

.search-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
}

.filter-options {
    display: flex;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-group label {
    margin-right: 10px;
    font-weight: 500;
}

.custom-select {
    position: relative;
    min-width: 200px;
}

.custom-select select {
    display: none;
}

.select-selected {
    background-color: rgba(15, 15, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 12px 15px;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.select-selected:hover {
    background-color: rgba(0, 102, 255, 0.1);
}

.select-selected:after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.select-selected.select-arrow-active:after {
    transform: rotate(180deg);
}

.select-items {
    position: absolute;
    background-color: rgba(15, 15, 26, 0.95);
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    border-radius: 0 0 4px 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.select-items div {
    padding: 12px 15px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.select-items div:hover {
    background-color: rgba(0, 102, 255, 0.1);
}

.select-hide {
    display: none;
}

.same-as-selected {
    background-color: rgba(0, 102, 255, 0.2);
}

.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    text-align: center;
}

.no-results i {
    font-size: 48px;
    color: var(--gray);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.no-results p {
    color: var(--gray);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 15, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--light);
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
    background-color: var(--primary);
}

.pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    color: var(--gray);
}

@media (max-width: 768px) {
    .catalog-filters { flex-direction: column; align-items: stretch; }
    .search-box { width: 100%; }
    .filter-options { flex-direction: column; width: 100%; }
    .filter-group { width: 100%; }
    .custom-select { width: 100%; }
}

/* Admin и модалы */
.admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 0;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.login-logo h1 {
    font-size: 32px;
    margin-bottom: 0;
}

.login-card {
    background-color: rgba(15, 15, 26, 0.5);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.login-card h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.login-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light);
    transition: all 0.3s ease;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.2);
}

.toggle-password {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    z-index: 1;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-checkbox {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: rgba(0, 102, 255, 0.1);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: var(--primary);
}

.btn-login {
    width: 100%;
    margin-top: 10px;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
}

.back-to-site {
    color: var(--gray);
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-to-site:hover {
    color: var(--primary);
}

.back-to-site i {
    margin-right: 5px;
}

button.back-to-site {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

/* Dashboard и модалы */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: rgba(8, 8, 16, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
}

.sidebar-logo i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 24px;
}

.sidebar.collapsed .sidebar-logo span {
    display: none;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    color: var(--primary);
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: var(--gray);
    transition: all 0.3s ease;
    cursor: pointer;
}

.sidebar-menu-item:hover,
.sidebar-menu-item.active {
    background-color: rgba(0, 102, 255, 0.1);
    color: var(--primary);
}

.sidebar-menu-item i {
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.sidebar.collapsed .sidebar-menu-item span {
    display: none;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: absolute;
    bottom: 0;
    width: 100%;
}

.sidebar-footer-item {
    display: flex;
    align-items: center;
    color: var(--gray);
    transition: all 0.3s ease;
    cursor: pointer;
}

.sidebar-footer-item:hover {
    color: var(--primary);
}

.sidebar-footer-item i {
    margin-right: 15px;
    font-size: 18px;
}

.sidebar.collapsed .sidebar-footer-item span {
    display: none;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    transition: all 0.3s ease;
    padding: 20px;
}

.main-content.expanded {
    margin-left: 70px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-title h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.dashboard-title p {
    color: var(--gray);
}

.dashboard-actions {
    display: flex;
    gap: 15px;
}

.dashboard-search {
    position: relative;
}

.dashboard-search input {
    padding: 10px 15px 10px 40px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light);
    width: 250px;
    transition: all 0.3s ease;
}

.dashboard-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.2);
    width: 300px;
}

.dashboard-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.dashboard-card {
    background-color: rgba(15, 15, 26, 0.5);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-card-title {
    font-size: 18px;
    font-weight: 600;
}

.dashboard-card-actions {
    display: flex;
    gap: 10px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-table th {
    font-weight: 600;
    color: var(--light);
    background-color: rgba(0, 0, 0, 0.2);
}

.dashboard-table tr:hover {
    background-color: rgba(0, 102, 255, 0.05);
}

.dashboard-table td {
    color: var(--gray);
}

.table-actions {
    display: flex;
    gap: 10px;
}

.table-actions button {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.table-actions button:hover {
    color: var(--primary);
}

.table-actions button.delete:hover {
    color: var(--danger);
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-inactive {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--dark);
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-success {
    text-align: center;
    padding: 20px 0;
}

.modal-success i {
    font-size: 48px;
    color: var(--success);
    margin-bottom: 20px;
}

.modal-success p {
    color: var(--gray);
}

.modal-text {
    color: var(--gray);
    margin-bottom: 20px;
}

.modal-confirm {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-confirm:hover {
    background-color: var(--primary-dark);
}

.modal-cancel {
    background-color: transparent;
    color: var(--gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-cancel:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.modal-save {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-save:hover {
    background-color: var(--primary-dark);
}

#deleteConfirmModal {
    max-width: 100%;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.subscription-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subscription-input {
    display: flex;
}

.subscription-input input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 4px 0 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light);
}

.subscription-input input:focus {
    outline: none;
    border-color: var(--primary);
}

.subscription-input button {
    padding: 12px 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscription-input button:hover {
    background-color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 36px; }
    .testimonials-slider { flex-direction: column; }
    .hero .container, .how-to-install .container { flex-direction: column; }
    .hero-video { margin-top: 40px; }
    .install-image { order: -1; margin-bottom: 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .sidebar { width: 70px; }
    .sidebar-logo span, .sidebar-menu-item span, .sidebar-footer-item span { display: none; }
    .main-content { margin-left: 70px; }
}

@media (max-width: 768px) {
    .section-title { font-size: 28px; }
    .catalog-filters { flex-direction: column; align-items: stretch; }
    .search-box { width: 100%; }
    .filter-options { flex-direction: column; width: 100%; }
    .filter-group { width: 100%; }
    .custom-select { width: 100%; }
    .dashboard-header { flex-direction: column; align-items: flex-start; }
    .dashboard-title { margin-bottom: 20px; }
    .dashboard-actions { width: 100%; }
    .dashboard-search { width: 100%; }
    .dashboard-search input { width: 100%; }
    .dashboard-search input:focus { width: 100%; }
}

@media (max-width: 576px) {
    .cta-group { flex-direction: column; align-items: flex-start; }
    .compatibility { margin-top: 10px; }
    .footer-top { flex-direction: column; gap: 20px; }
    .pagination { flex-wrap: wrap; gap: 10px; }
    .modal { max-width: 90%; }
}

/* Error page (из предыдущего) */
.error-page { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: linear-gradient(to bottom, #1a1a2e, #0a0a0a); 
    text-align: center; 
    color: var(--light); 
}
.error-content { 
    max-width: 500px; 
    padding: 2rem; 
}
.error-code { 
    font-size: 10rem; 
    color: var(--primary); 
    margin: 0 0 1rem; 
    font-weight: 700; 
    text-shadow: 0 0 20px rgba(0, 102, 255, 0.5); 
    animation: glow-pulse 2s infinite alternate; 
}
@keyframes glow-pulse { 
    0% { text-shadow: 0 0 20px rgba(0, 102, 255, 0.5); } 
    100% { text-shadow: 0 0 40px rgba(0, 102, 255, 0.8); } 
}
.error-message { 
    font-size: 1.5rem; 
    color: var(--gray); 
    margin: 0 0 0.5rem; 
}
.error-subtext { 
    color: var(--gray-dark); 
    margin: 0 0 2rem; 
}
.error-icon { 
    font-size: 4rem; 
    color: var(--gray); 
    margin-top: 2rem; 
}
@media (max-width: 768px) { 
    .error-code { font-size: 6rem; } 
}
/* Catalog page */
.catalog-content { padding: 60px 0; }

.page-title {
    font-size: 36px;
    margin-bottom: 15px;
    text-align: center;
}

.page-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--gray);
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.search-box {
    position: relative;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.2);
}

.search-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
}
.pagination { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 5px; 
    margin: 2rem 0; 
    flex-wrap: wrap; 
}
.pagination-btn { 
    padding: 8px 12px; 
    border: 1px solid #ddd; 
    background: white; 
    color: #333; 
    cursor: pointer; 
    border-radius: 4px; 
    min-width: 40px; 
    text-align: center; 
}
.pagination-btn:hover:not(.active), .pagination-btn.active { 
    background: #007bff; 
    color: white; 
}
.pagination-dots { 
    padding: 8px 4px; 
    color: #999; 
    cursor: default; 
}
.catalog-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 1rem; 
}
.no-results { 
    text-align: center; 
    padding: 2rem; 
    color: #666; 
    grid-column: 1 / -1; 
}
.game-card { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 0.5s ease, transform 0.5s ease; 
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 15, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--light);
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
    background-color: var(--primary);
}

.pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    color: var(--gray);
}

.no-results { text-align: center; grid-column: 1/-1; padding: 2rem; color: #666; }
.game-card {
    background-color: rgba(15, 15, 26, 0.5);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Убрали opacity: 0 и transform для видимости */
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
}

/* Для анимации на скролл (если вернём) */
.game-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}