/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --accent-color: #8b5cf6;
    --dark-bg: #0f0f1e;
    --darker-bg: #0a0a14;
    --light-text: #ffffff;
    --gray-text: #9ca3af;
    --card-bg: #1a1a2e;
    --success-color: #10b981;
    --warning-color: #f59e0b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
header {
    background: var(--darker-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: var(--gray-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Главный баннер */
.hero {
    background: url('кс.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 
        5px 5px 25px rgba(0, 0, 0, 1),
        -3px -3px 25px rgba(0, 0, 0, 1),
        0 0 50px rgba(0, 0, 0, 1),
        0 0 80px rgba(0, 102, 255, 0.6);
    position: relative;
    z-index: 1;
    font-weight: 900;
    color: #ffffff;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 
        3px 3px 15px rgba(0, 0, 0, 1),
        -1px -1px 15px rgba(0, 0, 0, 1),
        0 0 30px rgba(0, 0, 0, 1);
    color: #ffffff;
    opacity: 0.95;
}

.subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    text-shadow: 
        4px 4px 20px rgba(0, 0, 0, 1),
        -2px -2px 20px rgba(0, 0, 0, 1),
        0 0 40px rgba(0, 0, 0, 1);
    font-weight: 600;
    color: #ffffff;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 25px rgba(99, 102, 241, 0.4);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.6);
    filter: brightness(1.1);
}

/* Секции */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 42px;
    margin-bottom: 50px;
    text-align: center;
    color: var(--light-text);
}

.section-description {
    text-align: center;
    font-size: 18px;
    color: var(--gray-text);
    margin-bottom: 40px;
}

/* Возможности */
.features {
    background: var(--darker-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--gray-text);
}

/* Скриншоты */
.screenshots {
    background: var(--dark-bg);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.screenshot-thumb {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.screenshot-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
    border-color: var(--primary-color);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 102, 255, 0.5);
}

.close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--primary-color);
}

/* Плюсы и минусы */
.pros-cons {
    background: var(--darker-bg);
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.pros-card, .cons-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
}

.pros-card {
    border-top: 5px solid var(--success-color);
}

.cons-card {
    border-top: 5px solid var(--warning-color);
}

.pros-card h3 {
    color: var(--light-text);
    font-size: 28px;
    margin-bottom: 25px;
}

.cons-card h3 {
    color: var(--light-text);
    font-size: 28px;
    margin-bottom: 25px;
}

.pros-card ul, .cons-card ul {
    list-style: none;
    padding-left: 0;
}

.pros-card li, .cons-card li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--gray-text);
    line-height: 1.6;
}

.pros-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 18px;
}

.cons-card li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--warning-color);
    font-weight: bold;
    font-size: 18px;
}

/* Игры */
.games {
    background: var(--dark-bg);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.game-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(99, 102, 241, 0.2);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.5);
    border-color: var(--primary-color);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .game-image {
    transform: scale(1.1);
}

.game-card h3 {
    padding: 20px;
    text-align: center;
    font-size: 20px;
    color: var(--primary-color);
}

/* FAQ */
.faq {
    background: var(--darker-bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(99, 102, 241, 0.1);
}

.faq-arrow {
    transition: transform 0.3s;
    color: var(--primary-color);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    color: var(--gray-text);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 25px 25px;
}

/* Обратная связь */
.feedback {
    background: var(--dark-bg);
}

.feedback-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--light-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.feedback-form button {
    width: 100%;
}

/* Скачать */
.download {
    background: var(--darker-bg);
    padding: 60px 0;
}

.download h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.download-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    border: 1px solid rgba(99, 102, 241, 0.4);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.download-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--light-text);
}

.download-includes {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.download-includes li {
    padding: 5px 0;
    font-size: 15px;
    color: var(--gray-text);
}

.download-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--gray-text);
    font-size: 14px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

.btn-download-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--gray-text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s;
}

.btn-download-secondary:hover {
    border-color: var(--primary-color);
    color: var(--light-text);
    background: rgba(99, 102, 241, 0.1);
}

.btn-icon {
    font-size: 20px;
}

/* Comments */
.comments-list {
    max-width: 600px;
    margin: 0 auto 40px;
    max-height: 400px;
    overflow-y: auto;
}

.comment-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-header strong {
    color: var(--primary-color);
    font-size: 16px;
}

.comment-date {
    color: var(--gray-text);
    font-size: 12px;
}

.comment-text {
    color: var(--gray-text);
    line-height: 1.6;
    margin: 0;
}

.no-comments {
    text-align: center;
    color: var(--gray-text);
    padding: 30px;
}

.captcha-group {
    max-width: 200px;
}

.captcha-group input {
    width: 100px;
}

/* Contact Section */
.contact-section {
    background: var(--darker-bg);
}

/* Comments Section */
.comments-section {
    background: var(--dark-bg);
}

.comments-section .comments-list {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Футер */
footer {
    background: var(--darker-bg);
    padding: 50px 0 30px;
    border-top: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    color: var(--gray-text);
    line-height: 1.6;
    font-size: 14px;
}

.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: var(--gray-text);
    font-size: 14px;
}

/* Footer Contact Form */
.footer-contact {
    min-width: 400px;
    flex: 1;
    max-width: 500px;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    color: var(--light-text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.footer-form input:focus,
.footer-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.footer-form textarea {
    resize: none;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: var(--gray-text);
}

.footer-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--gray-text);
}

.footer-captcha input {
    width: 60px;
    margin-bottom: 0;
    text-align: center;
    padding: 10px;
}

.footer-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.footer-submit:hover {
    opacity: 0.9;
}

/* Адаптивность */
@media (max-width: 768px) {
    header nav {
        display: none;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    section h2 {
        font-size: 32px;
    }
    
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        flex-direction: column;
        text-align: center;
    }
    
    .close {
        top: 20px;
        right: 30px;
        font-size: 40px;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .screenshot-thumb {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav {
        width: 100%;
        justify-content: center;
    }
    
    .download-card {
        padding: 20px;
    }
}

/* Browser Recommendation Section */
.browser-rec {
    background: var(--dark-bg);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.browser-rec::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(252, 63, 29, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.rec-top-label {
    text-align: center;
    margin-bottom: 20px;
}

.rec-label-text {
    display: inline-block;
    background: linear-gradient(135deg, #FC3F1D, #FF6B4A);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
}

.rec-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .rec-grid {
        grid-template-columns: 1fr;
    }
}

.rec-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .rec-features {
        grid-template-columns: 1fr;
    }
}

.rec-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(252, 63, 29, 0.2);
}

.rec-feature-icon {
    font-size: 24px;
    line-height: 1;
}

.rec-feature strong {
    display: block;
    font-size: 15px;
    color: var(--light-text);
    margin-bottom: 4px;
}

.rec-feature span {
    font-size: 13px;
    color: var(--gray-text);
}

.rec-download-card {
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(252, 63, 29, 0.05) 100%);
    border-radius: 20px;
    padding: 32px;
    border: 2px solid rgba(252, 63, 29, 0.3);
    box-shadow: 0 15px 40px rgba(252, 63, 29, 0.15);
    position: relative;
}

.rec-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.rec-logo {
    flex-shrink: 0;
}

.rec-card-header h3 {
    margin: 0;
    font-size: 22px;
    color: var(--light-text);
}

.rec-card-header p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #FC3F1D;
    font-weight: 600;
}

.rec-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.rec-checklist li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(252, 63, 29, 0.15);
    font-size: 15px;
    color: var(--gray-text);
}

.rec-checklist li:last-child {
    border-bottom: none;
}

.rec-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #FC3F1D, #e63500);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(252, 63, 29, 0.4);
}

.rec-btn:hover {
    opacity: 0.9;
}

.rec-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 13px;
    color: var(--gray-text);
}
