* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: auto;
}

body {
    background: #030305;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #eef2ff;
    line-height: 1.5;
    min-width: 320px;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #050508;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #E0905E, #c97a4a);
    border-radius: 10px;
}

.gold-text {
    background: linear-gradient(135deg, #E0905E, #D4AF37, #f5c49a, #E0905E);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #030305;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}
.preloader.hide {
    opacity: 0;
    visibility: hidden;
}
.preloader-logo {
    width: 80px;
    height: 80px;
    animation: preloaderSpin 1s ease-in-out infinite;
}
@keyframes preloaderSpin {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.7; }
    100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(224,144,94,0.6), transparent);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}
@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    20% {
        opacity: 0.5;
    }
    80% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(3,3,5,0.85);
    backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid rgba(224,144,94,0.3);
    transition: all 0.3s;
}
.header.scrolled {
    padding: 12px 0;
    background: rgba(3,3,5,0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-bottom-color: rgba(224,144,94,0.5);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
}
.logo:hover {
    transform: scale(1.02);
    opacity: 0.8;
}
.logo img {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 15px rgba(224,144,94,0.6));
}
.logo-text {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #E0905E, #D4AF37, #f5c49a, #E0905E);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 5s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.nav {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.nav a {
    color: #cbd5e6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}
.nav a::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #E0905E, #D4AF37);
    transition: width 0.3s;
}
.nav a:hover {
    color: #E0905E;
}
.nav a:hover::before {
    width: 100%;
}

.btn {
    padding: 12px 32px;
    border-radius: 60px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-primary {
    background: linear-gradient(135deg, #E0905E, #b86535, #D4AF37);
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 5px 20px rgba(224,144,94,0.4);
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
    z-index: -1;
}
.btn-primary:hover::after {
    left: 100%;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(224,144,94,0.6);
}
.btn-outline {
    border: 1px solid rgba(224,144,94,0.4);
    background: rgba(224,144,94,0.05);
    color: #eef2ff;
    backdrop-filter: blur(5px);
}
.btn-outline:hover {
    border-color: #D4AF37;
    background: rgba(212,175,55,0.1);
    box-shadow: 0 0 25px rgba(212,175,55,0.3);
    transform: translateY(-3px);
}

.hero {
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
}
.hero h1 {
    font-size: 4.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #E0905E, #D4AF37, #f5c49a);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 24px;
    animation: titleGradient 4s ease infinite;
}
@keyframes titleGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero p {
    font-size: 1.3rem;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 40px;
}

.candlestick-container {
    max-width: 900px;
    margin: 50px auto 0;
    padding: 25px 20px;
    background: rgba(10,12,20,0.5);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid rgba(224,144,94,0.25);
    transition: all 0.3s;
    position: relative;
}
.candlestick-container:hover {
    border-color: rgba(212,175,55,0.5);
    box-shadow: 0 0 40px rgba(212,175,55,0.15);
}
.candlestick-chart {
    position: relative;
    height: 380px;
    overflow: visible;
}
.chart-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(212,175,55,0.08) 1px, transparent 1px);
    background-size: 100% 12%;
    pointer-events: none;
}
.candle {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}
.candle:not(.last-candle):hover {
    transform: translateY(-5px);
}
.candle-wick {
    width: 2px;
    background: linear-gradient(180deg, #E0905E, #D4AF37);
    border-radius: 2px;
    transition: opacity 0.3s ease;
}
.candle-body {
    width: 28px;
    border-radius: 4px;
    margin: 2px 0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.candle-body.bullish {
    background: linear-gradient(180deg, #4caf50, #2e7d32);
    box-shadow: 0 0 8px rgba(76,175,80,0.4);
}
.candle-body.bearish {
    background: linear-gradient(180deg, #f44336, #c62828);
    box-shadow: 0 0 8px rgba(244,67,54,0.4);
}

.last-candle {
    z-index: 10;
    cursor: pointer;
}

.last-candle .candle-body {
    background: linear-gradient(135deg, #D4AF37, #E0905E, #b86535);
    box-shadow: 0 0 15px rgba(224,144,94,0.6);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    overflow: hidden;
}

.scroll-message {
    font-weight: 700;
    font-size: 0;
    color: #1a1205;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    background: transparent;
    text-align: center;
    line-height: 1.4;
    padding: 0 16px;
}

/* ========== РЕЖИМ ХОВЕРА (широкий экран, НЕТ скролла) ========== */
/* При наведении - расширяем свечу */
body:not(.has-horizontal-scroll) .last-candle:hover .candle-body {
    width: 480px;
    height: 70px;
    background: linear-gradient(135deg, #f5c49a, #E0905E, #D4AF37, #b86535);
    background-size: 200% 100%;
    box-shadow: 0 0 30px rgba(224,144,94,0.8), 0 5px 20px rgba(0,0,0,0.3);
    border-radius: 30px;
}

body:not(.has-horizontal-scroll) .last-candle:hover .scroll-message {
    opacity: 1;
    visibility: visible;
    font-size: 0.85rem;
    white-space: normal;
    word-break: keep-all;
}

body:not(.has-horizontal-scroll) .last-candle:hover .candle-wick {
    opacity: 0;
}

/* ========== РЕЖИМ КЛИКА (ЕСТЬ горизонтальный скролл) ========== */
/* При наведении - только визуальный индикатор (подсветка), без расширения */
body.has-horizontal-scroll .last-candle.click-mode:hover .candle-body {
    filter: brightness(1.15);
    box-shadow: 0 0 20px rgba(224,144,94,0.8);
    transition: all 0.2s ease;
}

body.has-horizontal-scroll .last-candle.click-mode:hover .scroll-message {
    /* Не показываем сообщение при ховере */
    opacity: 0 !important;
    visibility: hidden !important;
}

body.has-horizontal-scroll .last-candle.click-mode:hover .candle-wick {
    opacity: 1 !important;
}

/* Расширение только по клику (активный режим) */
body.has-horizontal-scroll .last-candle.click-mode.active .candle-body {
    width: 480px !important;
    height: 70px !important;
    background: linear-gradient(135deg, #f5c49a, #E0905E, #D4AF37, #b86535) !important;
    background-size: 200% 100% !important;
    border-radius: 30px !important;
    filter: none !important;
}

body.has-horizontal-scroll .last-candle.click-mode.active .scroll-message {
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 0.85rem !important;
}

body.has-horizontal-scroll .last-candle.click-mode.active .candle-wick {
    opacity: 0 !important;
}

.trend-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    flex-wrap: wrap;
    gap: 15px;
    border: 1px solid rgba(212,175,55,0.15);
}
.stat-change {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.stat-change.positive {
    color: #D4AF37;
}
.legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(212,175,55,0.2);
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
}
.legend-bullish {
    width: 24px;
    height: 14px;
    background: linear-gradient(180deg, #4caf50, #2e7d32);
    border-radius: 3px;
}
.legend-bearish {
    width: 24px;
    height: 14px;
    background: linear-gradient(180deg, #f44336, #c62828);
    border-radius: 3px;
}
.legend-gold {
    width: 24px;
    height: 14px;
    background: linear-gradient(135deg, #D4AF37, #E0905E);
    border-radius: 3px;
}

.section {
    padding: 100px 0;
    position: relative;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #fff, #E0905E, #D4AF37);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-card, .pricing-card, .video-card, .step, .security-card {
    background: rgba(10,12,20,0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(224,144,94,0.2);
    border-radius: 24px;
    padding: 32px 24px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}
.feature-card::before, .pricing-card::before, .video-card::before, .step::before, .security-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}
.feature-card:hover::before, .pricing-card:hover::before, .video-card:hover::before, .step:hover::before, .security-card:hover::before {
    opacity: 1;
}
.feature-card:hover, .pricing-card:hover, .video-card:hover, .step:hover, .security-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212,175,55,0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s;
}
.feature-card:hover .feature-icon {
    transform: scale(1.1);
}
.feature-card h3, .video-card h4, .step h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #E0905E;
}
.pricing-card.popular {
    border-color: #D4AF37;
    background: linear-gradient(145deg, rgba(212,175,55,0.1), rgba(224,144,94,0.05));
}
.pricing-card.popular::after {
    content: ' ';
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #D4AF37, #E0905E);
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #1a1205;
}
.price {
    font-size: 3.2rem;
    font-weight: 800;
    margin: 20px 0;
    color: #D4AF37;
}
.pricing-features {
    list-style: none;
    margin: 24px 0;
    text-align: left;
}
.pricing-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.step-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #D4AF37, #E0905E);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px rgba(212,175,55,0.4);
    color: #1a1205;
}

.security-card {
    padding: 40px;
}

.security-desc {
    text-align: center;
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 32px;
}

.virus-results {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.virus-item {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 20px;
    padding: 20px 32px;
    text-align: center;
    min-width: 220px;
    transition: all 0.3s;
}

.virus-item:hover {
    border-color: rgba(212,175,55,0.5);
    transform: translateY(-4px);
}

.virus-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.virus-text {
    font-weight: 600;
    font-size: 1rem;
    color: #eef2ff;
    display: block;
    margin-bottom: 10px;
}

.virus-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    padding: 6px 16px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 12px;
}

.virus-link {
    display: inline-block;
    color: #D4AF37;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.virus-link:hover {
    color: #E0905E;
    text-decoration: underline;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(212,175,55,0.15);
    padding-top: 30px;
}

.security-feature {
    text-align: center;
    font-size: 0.95rem;
    color: #94a3b8;
    padding: 8px 0;
}

.faq-section {
    background: rgba(10,12,20,0.3);
    border-radius: 30px;
    padding: 40px;
    margin-top: 40px;
    border: 1px solid rgba(212,175,55,0.15);
}
.faq-item {
    border-bottom: 1px solid rgba(224,144,94,0.15);
    padding: 20px 0;
}
.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #D4AF37;
}
.faq-question:hover {
    color: #E0905E;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: #94a3b8;
}
.faq-item.active .faq-answer {
    max-height: 150px;
    padding-top: 15px;
}

.footer {
    border-top: 1px solid rgba(212,175,55,0.2);
    padding: 60px 0 30px;
    text-align: center;
    background: rgba(3,3,5,0.8);
    backdrop-filter: blur(10px);
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
}
.footer-links a:hover {
    color: #D4AF37;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(15px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: rgba(10,12,20,0.95);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    width: 90%;
    max-width: 900px;
    position: relative;
    border: 1px solid rgba(212,175,55,0.4);
}
.modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}
.modal-close:hover {
    color: #D4AF37;
}
.modal-iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ФИНАЛЬНЫЙ ФИКС - ПРОБИВАЕМ ВСЕ ПЕРЕКРЫТИЯ */
.security-card {
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

.security-card a {
    display: inline-block !important;
    position: relative !important;
    z-index: 9999999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Убираем перекрытие от псевдоэлементов карточки */
.security-card::before,
.security-card::after {
    display: none !important;
    content: none !important;
    pointer-events: none !important;
}

/* Конкретно для контейнера с кнопками */
.security-card > div {
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
    overflow: visible !important;
}

/* Пробиваем все возможные перекрытия */
.virus-results,
.virus-item {
    overflow: visible !important;
    pointer-events: auto !important;
}

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    .hero h1 {
        font-size: 3.2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .section {
        padding: 70px 0;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    .virus-results {
        gap: 20px;
    }
    .virus-item {
        min-width: 180px;
        padding: 16px 24px;
    }
}

@media (max-width: 767px) {
    body.has-horizontal-scroll .last-candle.click-mode.active .candle-body {
        width: 320px !important;
        height: 65px !important;
    }
    body.has-horizontal-scroll .last-candle.click-mode.active .scroll-message {
        font-size: 0.65rem !important;
        padding: 0 8px !important;
    }
    body:not(.has-horizontal-scroll) .last-candle:hover .candle-body {
        width: 320px !important;
        height: 65px !important;
    }
    body:not(.has-horizontal-scroll) .last-candle:hover .scroll-message {
        font-size: 0.65rem !important;
        padding: 0 8px !important;
    }
    .security-card {
        padding: 24px;
    }
    .virus-results {
        flex-direction: column;
        align-items: center;
    }
    .virus-item {
        width: 100%;
        max-width: 280px;
    }
    .security-feature {
        font-size: 0.85rem;
    }
    .faq-section {
        padding: 24px;
    }
    .faq-question {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body.has-horizontal-scroll .last-candle.click-mode.active .candle-body {
        width: 280px !important;
        height: 60px !important;
    }
    body.has-horizontal-scroll .last-candle.click-mode.active .scroll-message {
        font-size: 0.6rem !important;
    }
    body:not(.has-horizontal-scroll) .last-candle:hover .candle-body {
        width: 280px !important;
        height: 60px !important;
    }
    body:not(.has-horizontal-scroll) .last-candle:hover .scroll-message {
        font-size: 0.6rem !important;
    }
}

@media (max-width: 360px) {
    body.has-horizontal-scroll .last-candle.click-mode.active .candle-body {
        width: 250px !important;
        height: 55px !important;
    }
    body.has-horizontal-scroll .last-candle.click-mode.active .scroll-message {
        font-size: 0.55rem !important;
    }
    body:not(.has-horizontal-scroll) .last-candle:hover .candle-body {
        width: 250px !important;
        height: 55px !important;
    }
    body:not(.has-horizontal-scroll) .last-candle:hover .scroll-message {
        font-size: 0.55rem !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .candle:not(.last-candle):hover {
        transform: none;
    }
    .btn-primary:hover {
        transform: none;
    }
    .btn-outline:hover {
        transform: none;
    }
    .feature-card:hover,
    .pricing-card:hover,
    .video-card:hover,
    .step:hover,
    .security-card:hover {
        transform: translateY(-4px);
    }
}