/* Базовые стили */
:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-card: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --border-color: #4a4a4a;
    --shadow: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-primary: #f5f1e8;
    --bg-secondary: #ffffff;
    --bg-card: #faf8f3;
    --text-primary: #2d2d2d;
    --text-secondary: #666666;
    --accent-primary: #d4a574;
    --accent-secondary: #c19a6b;
    --border-color: #e0d5c7;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {margin: 0; padding: 0; box-sizing: border-box;}
body {font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; transition: all 0.3s ease;}
.container {max-width: 1200px; margin: 0 auto; padding: 0 20px;}

.theme-controls {position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; gap: 10px;}
.theme-btn {background: var(--bg-card); border: 2px solid var(--border-color); border-radius: 50%; width: 50px; height: 50px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 24px; transition: all 0.3s;}
.theme-btn:hover {transform: scale(1.1); border-color: var(--accent-primary);}
.lang-selector {background: var(--bg-card); border: 2px solid var(--border-color); border-radius: 25px; padding: 5px; display: flex; gap: 5px;}
.lang-btn {background: transparent; border: none; color: var(--text-secondary); padding: 8px 12px; border-radius: 20px; cursor: pointer; font-size: 12px; font-weight: 600; transition: all 0.3s;}
.lang-btn:hover {color: var(--text-primary); background: var(--bg-secondary);}
.lang-btn.active {background: var(--accent-primary); color: white;}

.header {background: var(--bg-secondary); padding: 20px 0; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100;}
.header .container {display: flex; justify-content: space-between; align-items: center;}
.logo {display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 700;}
.logo-img {width: 40px; height: 40px;}
.highlight {background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent;}
.nav {display: flex; gap: 30px;}
.nav-link {color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.3s;}
.nav-link:hover {color: var(--accent-primary);}

.hero {padding: 100px 0; text-align: center;}
.hero-title {font-size: 56px; font-weight: 800; margin-bottom: 20px;}
.hero-subtitle {font-size: 20px; color: var(--text-secondary); margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto;}
.hero-buttons {display: flex; gap: 20px; justify-content: center; margin-bottom: 60px;}
.btn {padding: 16px 40px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 16px; transition: all 0.3s; display: inline-block; border: none; cursor: pointer;}
.btn-primary {background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); color: white;}
.btn-primary:hover {transform: translateY(-2px); box-shadow: 0 10px 30px var(--shadow);}
.btn-secondary {background: transparent; color: var(--text-primary); border: 2px solid var(--border-color);}
.btn-secondary:hover {border-color: var(--accent-primary); color: var(--accent-primary);}

.hero-stats {display: flex; justify-content: center; gap: 60px; flex-wrap: wrap;}
.stat-item {display: flex; flex-direction: column; align-items: center;}
.stat-number {font-size: 48px; font-weight: 800; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent;}
.stat-label {color: var(--text-secondary); font-size: 14px; margin-top: 8px;}

.section-title {font-size: 42px; font-weight: 700; text-align: center; margin-bottom: 60px;}

.features {padding: 100px 0;}
.features-grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;}
.feature-card {background: var(--bg-card); padding: 30px; border-radius: 16px; border: 1px solid var(--border-color); transition: all 0.3s; text-align: center;}
.feature-card:hover {border-color: var(--accent-primary); transform: translateY(-3px);}
.benefit-icon {font-size: 48px; margin-bottom: 20px;}
.feature-card h3 {margin-bottom: 12px; font-size: 20px;}
.feature-card p {color: var(--text-secondary); font-size: 14px;}

.requirements {padding: 100px 0; background: var(--bg-secondary);}
.requirements-card {background: var(--bg-card); padding: 40px; border-radius: 20px; border: 1px solid var(--border-color); max-width: 800px; margin: 0 auto;}
.requirements-card h3 {font-size: 24px; margin-bottom: 30px; text-align: center; color: var(--accent-primary);}
.requirement-item {display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--bg-primary); border-radius: 12px; margin-bottom: 15px; transition: all 0.3s;}
.requirement-item:hover {transform: translateX(5px); border-left: 3px solid var(--accent-primary);}
.req-icon {font-size: 32px; min-width: 40px;}
.req-details {display: flex; flex-direction: column; gap: 5px;}
.req-details strong {font-size: 16px;}
.req-details span {color: var(--text-secondary); font-size: 14px;}

.faq {padding: 100px 0;}
.faq-list {max-width: 800px; margin: 0 auto;}
.faq-item {background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 15px; overflow: hidden;}
.faq-item:hover {border-color: var(--accent-primary);}
.faq-question {width: 100%; padding: 25px 30px; background: transparent; border: none; color: var(--text-primary); font-size: 18px; font-weight: 600; text-align: left; cursor: pointer; display: flex; justify-content: space-between; transition: all 0.3s;}
.faq-question:hover {color: var(--accent-primary);}
.faq-icon {font-size: 24px; transition: transform 0.3s;}
.faq-item.active .faq-icon {transform: rotate(45deg);}
.faq-answer {max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s; padding: 0 30px;}
.faq-item.active .faq-answer {max-height: 500px; padding: 0 30px 25px;}
.faq-answer p {color: var(--text-secondary); line-height: 1.7;}

.support {padding: 100px 0; background: var(--bg-secondary);}
.support-subtitle {text-align: center; color: var(--text-secondary); margin-bottom: 50px; font-size: 18px;}
.support-form {background: var(--bg-card); padding: 40px; border-radius: 20px; border: 1px solid var(--border-color); max-width: 600px; margin: 0 auto;}
.form-group {margin-bottom: 25px;}
.form-group label {display: block; margin-bottom: 10px; font-weight: 600;}
.form-group input, .form-group select, .form-group textarea {width: 100%; padding: 15px; background: var(--bg-primary); border: 2px solid var(--border-color); border-radius: 10px; color: var(--text-primary); font-size: 14px; font-family: inherit; transition: all 0.3s;}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {outline: none; border-color: var(--accent-primary);}
.form-group textarea {resize: vertical; min-height: 120px;}
.form-status {margin-top: 20px; padding: 15px; border-radius: 10px; text-align: center; font-weight: 600; display: none;}
.form-status.success {background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid #10b981; display: block;}
.form-status.error {background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid #ef4444; display: block;}

.download {padding: 100px 0;}
.download-card {background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); padding: 80px 40px; border-radius: 30px; text-align: center; color: white;}
.download-title {font-size: 42px; font-weight: 700; margin-bottom: 20px;}
.download-text {font-size: 18px; margin-bottom: 40px; opacity: 0.9;}
.btn-download {background: white; color: var(--accent-primary); padding: 20px 50px; font-size: 18px; font-weight: 700; border-radius: 12px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s;}
.btn-download:hover {transform: scale(1.05);}
.download-icon {font-size: 24px;}
.download-info {margin-top: 20px; opacity: 0.8; font-size: 14px;}

.footer {background: var(--bg-secondary); padding: 40px 0; border-top: 1px solid var(--border-color);}
.footer-content {text-align: center;}
.footer-logo {display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 24px; font-weight: 700; margin-bottom: 20px;}
.footer-logo img {width: 32px; height: 32px;}
.footer-text {color: var(--text-secondary); margin-bottom: 10px;}

@media (max-width: 768px) {
    .hero-title {font-size: 36px;}
    .hero-buttons {flex-direction: column; align-items: center;}
    .nav {display: none;}
    .section-title {font-size: 32px;}
}

/* Секция прицелов */
.crosshairs {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: -40px;
    margin-bottom: 60px;
}

.crosshairs-features {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* Демо прицела */
.crosshair-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-canvas {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.demo-canvas::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(0deg, transparent 24%, rgba(255,255,255,.05) 25%, rgba(255,255,255,.05) 26%, transparent 27%, transparent 74%, rgba(255,255,255,.05) 75%, rgba(255,255,255,.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(255,255,255,.05) 25%, rgba(255,255,255,.05) 26%, transparent 27%, transparent 74%, rgba(255,255,255,.05) 75%, rgba(255,255,255,.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    opacity: 0.3;
}

.crosshair-preview {
    position: relative;
    width: 100px;
    height: 100px;
    z-index: 1;
}

.crosshair-line {
    position: absolute;
    background: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.crosshair-line.h-line {
    width: 40px;
    height: 3px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.crosshair-line.v-line {
    width: 3px;
    height: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.crosshair-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #00ff00;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
}

.demo-label {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Список функций прицела */
.crosshair-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.crosshair-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.crosshair-feature:hover {
    transform: translateX(5px);
    border-color: var(--accent-primary);
}

.crosshair-feature .feature-icon {
    font-size: 36px;
    min-width: 50px;
    text-align: center;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Галерея пресетов */
.crosshair-gallery {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.gallery-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.preset-card {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.preset-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.preset-preview {
    width: 80px;
    height: 80px;
    background: #1e293b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Стили пресетов */
.preset-cross .p-h {
    width: 24px;
    height: 3px;
    background: #00ff00;
    position: absolute;
}

.preset-cross .p-v {
    width: 3px;
    height: 24px;
    background: #00ff00;
    position: absolute;
}

.preset-dot .p-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
}

.preset-circle .p-circle {
    width: 24px;
    height: 24px;
    border: 3px solid #00ff00;
    border-radius: 50%;
}

.preset-tshape .p-t-top {
    width: 3px;
    height: 15px;
    background: #00ff00;
    position: absolute;
    top: 28px;
}

.preset-tshape .p-t-left {
    width: 10px;
    height: 3px;
    background: #00ff00;
    position: absolute;
    top: 40px;
    left: 25px;
}

.preset-tshape .p-t-right {
    width: 10px;
    height: 3px;
    background: #00ff00;
    position: absolute;
    top: 40px;
    right: 25px;
}

.preset-square .p-square {
    width: 20px;
    height: 20px;
    border: 3px solid #00ff00;
}

.preset-custom .p-h {
    width: 20px;
    height: 2px;
    background: #ff00ff;
    position: absolute;
}

.preset-custom .p-v {
    width: 2px;
    height: 20px;
    background: #ff00ff;
    position: absolute;
}

.preset-custom .p-dot {
    width: 6px;
    height: 6px;
    background: #00ffff;
    border-radius: 50%;
    position: absolute;
}

.preset-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Адаптивность для прицелов */
@media (max-width: 768px) {
    .crosshairs-features {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .crosshair-feature {
        flex-direction: column;
        text-align: center;
    }
}
