/* Основные стили и переменные */
:root {
    --primary-color: #0066ff;
    --primary-dark: #0044cc;
    --secondary-color: #00ccff;
    --background-dark: #0a0e17;
    --background-medium: #111827;
    --background-light: #1e293b;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-color: #3b82f6;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --glow-color: rgba(0, 102, 255, 0.6);
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
    outline: none;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px var(--glow-color);
}

.btn.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--glow-color);
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn.secondary:hover {
    background-color: rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
}

/* Шапка */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

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

.logo img {
    height: 40px;
    margin-right: 1rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    font-weight: 500;
    position: relative;
    padding-bottom: 0.3rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-speed);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.download-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 0 10px var(--glow-color);
}

.download-btn:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--glow-color);
}

/* Главный раздел */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4rem;
    background-color: var(--background-medium);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-content {
    padding: 3rem;
    flex: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.hero-content h2::after {
    left: 0;
    transform: none;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    height: 400px;
    position: relative;
    background-color: var(--background-light);
    overflow: hidden;
}

/* Анимация сканирования */
.scanner-animation {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    top: 0;
    animation: scan 3s linear infinite;
    box-shadow: 0 0 15px var(--glow-color);
}

.scan-target {
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.scan-target::before,
.scan-target::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 1px dashed var(--secondary-color);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.scan-target::after {
    width: 120%;
    height: 120%;
    animation-direction: reverse;
    animation-duration: 15s;
}

@keyframes scan {
    0% {
        top: 0;
    }
    50% {
        top: 100%;
    }
    100% {
        top: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px var(--glow-color);
    }
    50% {
        box-shadow: 0 0 40px var(--glow-color);
    }
}

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

/* Карточки возможностей */
.features {
    margin-bottom: 4rem;
}

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

.card {
    background-color: var(--background-medium);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: transform var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.card h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
}

/* Секция проверки */
.checker {
    margin-bottom: 4rem;
}

.checker-container {
    background-color: var(--background-medium);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.checker-controls {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background-color: var(--background-light);
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 5px;
}

.checker-results h3 {
    margin-bottom: 1rem;
}

.results-container {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.no-results {
    color: var(--text-muted);
    text-align: center;
    margin-top: 2rem;
}

.result-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--background-medium);
}

.result-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.result-status {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.result-status.clean {
    color: var(--success-color);
}

.result-status.warning {
    color: var(--warning-color);
}

.result-status.danger {
    color: var(--danger-color);
}

.result-info {
    flex: 1;
}

.result-info h4 {
    margin-bottom: 0.3rem;
}

.result-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Секция игр */
.games {
    margin-bottom: 4rem;
}

.game-list {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.game {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}

.game img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    transition: transform var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game:hover img {
    transform: scale(1.1);
}

.game span {
    font-weight: 500;
}

/* Футер */
footer {
    background-color: var(--background-medium);
    padding: 3rem 0 1rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 30px;
    margin-right: 0.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-contact p i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--background-light);
    border-radius: 50%;
    transition: all var(--transition-speed);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--background-light);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .hero-image {
        width: 100%;
        height: 300px;
    }
    
    .checker-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
    }
    
    nav {
        margin-top: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
}

/* Стилизация скроллбара */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background-color: var(--background-medium);
}

::-webkit-scrollbar-thumb {
    background-color: var(--background-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}
