@media (max-width: 768px) {
  .scroll-dots {
    position: relative;
    z-index: 9999;

    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 10px; /* щоб краще розставити точки */
  }

  .dot {
    z-index: 1;
    width: 10px;
    height: 10px;
    background-color: #00FF88; /* зелений для неактивних */
    border-radius: 50%;
    transition: background-color 0.3s ease;
    box-shadow: 0 0 8px #00FF88;
    cursor: pointer;
  }

  .dot.active {
    background-color: #FFD700; /* жовтий для активної точки */
    box-shadow: 0 0 10px #FFD700;
  }
}




        /* Stats Section - ПОЛНЫЙ КОД С ПРИНУДИТЕЛЬНЫМИ СТИЛЯМИ */
.stats-section {
    padding: 80px 20px;
    background: #050505;
}

.stats-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-section .stat-item {
    text-align: center;
    padding: 40px 30px !important;
    background: #111111 !important;
    border-radius: 20px;
    border: 1px solid #222;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 160px;
}

.stats-section .stat-item:hover {
    transform: translateY(-10px);
    border-color: #00FF88;
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.15);
}

.stats-section .stat-item .stat-number {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    color: #00FF88 !important;
    margin: 0 !important;
    margin-bottom: 10px !important;
    margin-top: 0px !important;
    padding: 0 !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
    display: block !important;
}

.stats-section .stat-item .stat-label {
    font-size: 1rem !important;
    color: #999 !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    margin-top: 0px !important;
    padding: 0 !important;
    display: block !important;
}

/* Убираем все возможные псевдоэлементы */
.stats-section .stat-item::before,
.stats-section .stat-item::after {
    display: none !important;
}

/* Анимация появления */
.stats-section .stat-item {
    opacity: 0;
    transform: translateY(30px);
}

.stats-section .stat-item.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stats-section .stat-item:nth-child(1).visible { transition-delay: 0s; }
.stats-section .stat-item:nth-child(2).visible { transition-delay: 0.1s; }
.stats-section .stat-item:nth-child(3).visible { transition-delay: 0.2s; }
.stats-section .stat-item:nth-child(4).visible { transition-delay: 0.3s; }

/* Адаптация */
@media (max-width: 1024px) {
    .stats-section .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .stats-section .stat-item .stat-number {
        font-size: 3.5rem !important;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 80px 20px;
    }
    
    .stats-section .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stats-section .stat-item {
        padding: 40px 20px !important;
        min-height: 180px;
    }
    
    .stats-section .stat-item .stat-number {
        font-size: 2.5rem !important;
    }
    
    .stats-section .stat-item .stat-label {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 80px 15px;
    }
    
    .stats-section .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stats-section .stat-item {
        padding: 35px 25px !important;
        min-height: auto;
    }
    
    .stats-section .stat-item .stat-number {
        font-size: 2.5rem !important;
    }
    
     .stat-item .stat-label {
        font-size: 0.95rem !important;
    }
}
        /* Бегущая строка */
.marquee-indices {
  width: 100%;
  overflow: hidden;
  background: none;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  margin: 0 0 2.5rem 0;
  padding: 0.7rem 0;
  position: relative;
  z-index: 3;
}

.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee-move 40s linear infinite;
  gap: 2.2rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: #e0ffe8;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.marquee-ticker {
  color: #fff;
  font-weight: 700;
  margin-right: 0.3rem;
  letter-spacing: 0.04em;
}

.marquee-up {
  color: #00FF88;
  font-weight: 700;
  margin-left: 0.3rem;
}

.marquee-down {
  color: #ff4e4e;
  font-weight: 700;
  margin-left: 0.3rem;
}

.marquee-time {
    color: #00FF88;
    font-weight: 600;
}

.marquee-live {
    color: #00FF88;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes marquee-move {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .marquee-inner { 
    font-size: 0.95rem; 
    gap: 1.1rem; 
  }
}
        /* Cards Section - Полные стили */
.cards-section {
    padding: 100px 20px;
    background: #050505;
    position: relative;
}

.features-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #FFFFFF 0%, #00FF88 50%, #7C3AED 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease-in-out infinite;
    background-size: 200% 100%;
}

/* Контейнер карусели */
.cards-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 0 40px 20px 40px;
    scrollbar-width: thin;
    -ms-overflow-style: auto;
    scroll-behavior: smooth;
    position: relative;
}
.scroll-indicator {
    position: absolute;
    bottom: 80px;
    right: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

/* Эффект при наведении */
.scroll-indicator:hover {
    transform: scale(1.1);
}

/* Эффект при клике */
.scroll-indicator:active {
    transform: scale(0.95);
}

/* Пульсация стрелки */
.scroll-indicator svg {
    width: 32px;
    height: 32px;
    animation: pulse-arrow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.5));
}

@keyframes pulse-arrow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Эффект свечения вокруг стрелки */
.scroll-indicator svg {
    filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.5));
}

.scroll-indicator.hide {
    opacity: 0;
    pointer-events: none;
}
.arrow-icon {
    position: relative;
    width: 32px;
    height: 32px;
}

.arrow-icon svg {
    animation: pulse-arrow 2s ease-in-out infinite;
}

.arrow-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,255,136,0.3) 0%, transparent 70%);
    animation: glow 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-arrow {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(3px);
    }
}

@keyframes glow {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.scroll-indicator.hide {
    opacity: 0;
    pointer-events: none;
}

/* Позиция для секции */
.cards-section {
    position: relative;
    padding-bottom: 100px; /* Место для стрелки */
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.1); }
}

.scroll-indicator.hide {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

/* Скроллбар */
.cards-container::-webkit-scrollbar {
    height: 6px;
}

.cards-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.cards-container::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 3px;
}

.cards-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

/* Карточка актива */
.stock-card {
    margin-top: 30px;
    flex: 0 0 calc((100% - 90px) / 4);
    max-width: calc((100% - 90px) / 4);
    min-width: 280px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    background: linear-gradient(135deg, #18191c 60%, #23242a 100%);
    border: 1.5px solid #23242a;
    border-radius: 28px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    animation: card-fade-in 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stock-card:nth-child(1) { animation-delay: 0s; }
.stock-card:nth-child(2) { animation-delay: 0.1s; }
.stock-card:nth-child(3) { animation-delay: 0.2s; }
.stock-card:nth-child(4) { animation-delay: 0.3s; }
.stock-card:nth-child(5) { animation-delay: 0.4s; }
.stock-card:nth-child(6) { animation-delay: 0.5s; }
.stock-card:nth-child(7) { animation-delay: 0.6s; }
.stock-card:nth-child(8) { animation-delay: 0.7s; }

@keyframes card-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stock-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #00FF88;
    background: linear-gradient(135deg, #23242a 60%, #18191c 100%);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.15);
}

/* Логотип компании */
.stock-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    border: 2.5px solid transparent;
    transition: border-color 0.3s;
    padding: 0;
}

.stock-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.stock-card:hover .stock-logo {
    border-color: #00FF88;
}

/* Информация о компании */
.stock-info {
    margin-bottom: 0px;
    min-height: 100px;
}

.stock-name {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    color: #fff;
}

.stock-ticker {
    color: #999;
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* График */
.stock-chart {
    height: 150px;
    margin: 0px 0;
    flex-shrink: 0;
}

.mini-chart {
    width: 100%;
    height: 150px;
    display: block;
}

@keyframes blink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    .cards-container::after {
        display: none;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.1); }
}
/* Статистика */
.stock-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: auto;
    align-items: stretch;
}

.stat {
    min-width: 110px;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(0, 255, 136, 0.10);
    transition: all 0.3s;
    min-height: 75px;
}

.stock-card:hover .stat {
    border-color: #00FF88;
    background: rgba(0, 255, 136, 0.05);
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 900;
    color: #00FF88;
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

/* Галочка выбора */
.igw-checkmark {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.stock-card.selected .igw-checkmark {
    border-color: #00FF88;
    background: rgba(0, 255, 136, 0.15);
}

.igw-checkmark svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Прогресс-бар карусели */
.carousel-progress {
    width: 100%;
    max-width: 1200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 30px auto 0;
    position: relative;
    overflow: hidden;
}

.carousel-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00FF88 0%, #7C3AED 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0;
}

/* Подсказка прокрутки */
.scroll-hint {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00FF88;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    z-index: 10;
}

/* Анимация пульсации для SVG */
.scroll-hint svg {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Убедимся что родитель имеет позицию */
.cards-section {
    position: relative;
}

/* Скрыть на мобильных */
@media (max-width: 768px) {
    .scroll-hint {
        display: none;
    }
}

/* Убедимся что родитель имеет позицию */
.cards-section {
    position: relative !important;
    overflow: visible !important; /* Чтобы не обрезало */
}

.hint-text {
    color: #00FF88;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}

.hint-arrow {
    position: relative;
}

.hint-arrow svg {
    width: 36px;
    height: 36px;
    animation: arrow-pulse 2s ease-in-out infinite;
}

@keyframes arrow-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.hint-arrow svg circle {
    stroke: #00FF88;
    fill: none;
}

.hint-arrow svg path {
    stroke: #00FF88;
    fill: none;
}

/* Эффект свечения для стрелки */
.hint-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 255, 136, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Адаптация */
@media (max-width: 1200px) {
    .stock-card {
        min-width: 300px;
        flex: 0 0 calc(50% - 15px);
    }
    
    .carousel-hint {
        right: 30px;
    }
}

@media (max-width: 768px) {
    .cards-section {
        padding: 60px 10px;
    }
    
    .features-title {
        font-size: 2rem;
    }
    
    .cards-container {
        padding: 0 10px 20px 10px;
        gap: 20px;
    }
    
    .stock-card {
        min-width: 85vw;
        flex: 0 0 85vw;
    }
    
    .carousel-hint {
        display: none;
    }
}

@media (max-width: 480px) {
    .cards-section {
        padding: 40px 10px;
    }
    
    .stock-card {
        min-width: 90vw;
        flex: 0 0 90vw;
        padding: 25px 20px;
    }
    
    .stock-logo {
        width: 60px;
        height: 60px;
    }
    
    .stock-name {
        font-size: 1.5rem;
    }
    
    .stat {
        min-width: 90px;
        padding: 12px 8px;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}