<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" href="/favicon.ico" type="image/x-icon">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <meta property="og:title" content="RBXMarket - Покупка Робуксов">
    <meta property="og:description" content="Безопасная и выгодная покупка робуксов на RBXMarket. Доступные цены, быстрые транзакции!">
    <meta property="og:image" content="https://rbxmarket.ru/link.png">
    <meta property="og:url" content="https://rbxmarket.ru">
    <meta property="og:type" content="website">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="RBXMarket - Покупка Робуксов">
    <meta name="twitter:description" content="Безопасная и выгодная покупка робуксов на RBXMarket. Доступные цены, быстрые транзакции!">
    <meta name="twitter:image" content="https://rbxmarket.ru/link.png">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Jost:wght@600&family=Oswald:wght@600&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    
    <title>RBXMarket - Покупка Робуксов</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
                        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI";
        }

        body {
            padding-top: 90px;
            background-color: #1c1c23;
            color: white;
            min-height: 100vh;
            font-size: 1.5rem;
        }

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: #1c1c23;
}



.social-icons {
    position: absolute;
    right: 20px;
    display: flex;
    gap: 15px;
    align-items: center; /* Ensures vertical alignment */
}

.social-icon {
    color: #393947; /* Updated base color */
    font-size: 35px;
    transition: all 0.3s ease; /* Smooth transition for all changes */
}

.social-icon:hover {
    color: #7557ec; /* Updated hover color */
    transform: scale(1.1); /* Slight enlargement on hover */
}

/* Optional: Add a subtle animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.social-icon:active {
    animation: pulse 0.3s ease-in-out;
}





        .nav-links {
font-family: 'Inter';
font-style: normal;
font-weight: 700;
font-size: 20px;
line-height: 26px;
text-align: center;
letter-spacing: 0.04em;
color: #FFFFFF;
display: flex;
    gap: 2rem;
    align-items: center;
    position: relative;
    animation: fadeInNav 1s ease-in-out;
        }

        @keyframes fadeInNav {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

        .nav-links a {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 1.35rem;
    transition: color 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #967bff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #967bff;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

        .login-btn {
            background-color: #7c5cfc;
            border: none;
            padding: 0.75rem 2.25rem;
            border-radius: 15px;
            cursor: pointer;
            position: absolute;
            right: 3rem; /* Кнопка "Войти" будет зафиксирована справа */
            font-family: 'Inter';
            font-style: normal;
            font-weight: 700;
            font-size: 20px;
            line-height: 26px;
            text-align: center;
            letter-spacing: 0.04em;
            color: #FFFFFF;
        }

        .menu-toggle {
            display: none;
        }

        /* Main Content Styles */
        .main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
    gap: 3rem;
    background-color: #1c1c23;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 800px; /* Устанавливает максимальную ширину */
    margin: 0 auto; /* Центрирует блок */
    border: 2px solid #292930; /* Толщина 2px, цвет #7c5cfc */
}




.title {
    font-family: 'Jost', serif;
    font-size: 5.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
    transition: transform 0.3s ease;
}

.title:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .title {
        transition: none;
    }
    
    .title:hover {
        transform: none;
    }
}

.title-container {
    position: relative;
    text-align: center;
}

.subtitle {
    font-size: 2.25rem; /* Увеличиваем размер шрифта */
    font-weight: 750; /* Делаем шрифт жирнее */
    margin-bottom: -1rem; /* Уменьшаем отступ снизу для сдвига ближе к заголовку */
    color: #7c5cfc;
}

.subtitle::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
    70deg, 
    transparent, 
    #ffffff, 
    transparent
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 6s linear infinite;
    filter: blur(2px);
}

@keyframes shine {
    0% {
    background-position: -200% 0;
    }
    100% {
    background-position: 200% 0;
    }
}

.title {
    font-size: 5rem; /* Уменьшаем немного размер, чтобы был баланс */
    font-weight: 800;
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-top: 0.2rem; /* Уменьшаем отступ сверху */
}

.title:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .title {
    font-size: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .title {
    transition: none;
    }
    
    .title:hover {
    transform: none;
    }
}
        /* Purchase Container Styles */
        .purchase-container {
            width: 100%;
            max-width: 750px;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

.input-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: rgba(42, 42, 51, 0.5);
    border-radius: 25px;
    margin-bottom: 1rem;
}

        .input-label {
            color: #9898a3;
            font-size: 1.35rem;
            margin-bottom: 0.75rem;
        }

        .input-value {
            font-family: 'Inter';
            font-style: normal;
            font-weight: 700;
            font-size: 50px;
            line-height: 26px;
            text-align: left;
            color: #FFFFFF;
            width: 150px;
    border-radius: 10px;
    padding: 0.75rem;
    width: 100%;
    box-sizing: border-box;
        outline: none; /* Убираем стандартное выделение */
    border: none; /* Убираем границу */
    background-color: transparent; /* Прозрачный фон */
        }
        
        .input-value:focus {
    outline: none; /* Убираем фокусное выделение */
    border: none;
}

        .input-left {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .currency-badge, .robuxvalue {
            background-color: #1c1c23;
            padding: 1rem 1.6rem;
            border-radius: 1.125rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-family: 'Inter';
            font-style: normal;
            font-weight: 700;
            font-size: 30px;
            line-height: 26px;
            color: rgba(255, 255, 255, 0.5);
        }

        .currency-badge img, .robuxvalue img {
            width: 30px;
            height: 30px;
            object-fit: contain;
            order: 2;
        }

        .slider-container {
    position: relative;
    width: 100%;
    height: 45px;
    margin-top: 2rem;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 9px;
    background: #2c2c35;
    border-radius: 4.5px;
    outline: none;
    opacity: 1;
    transition: opacity .2s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 75px;
    height: 36px;
    background: #FBDC70;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.slider::-moz-range-thumb {
    width: 75px;
    height: 36px;
    background: #FBDC70;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    opacity: 0;
}

.slider-thumb {
    position: absolute;
    top: 50%;
    left: 0;
    width: 75px;
    height: 36px;
    background: #FBDC70;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    color: #1c1c23;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: left 0.1s ease-out;
}

.slider-value {
    position: absolute;
    left: 0;
    transform: translateX(-50%);
    background: #FBDC70;
    color: black;
    padding: 5px 10px;
    border-radius: 18px;
    font-weight: bold;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Добавляем выравнивание по центру */
    text-align: center;
    min-width: 60px;
}

.slider:hover + .slider-value,
.slider:active + .slider-value {
    opacity: 1;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .slider-container {
        height: 40px;
        margin-top: 1.5rem;
    }

    .slider {
        height: 7px;
    }

    .slider::-webkit-slider-thumb {
        width: 60px;
        height: 30px;
        border-radius: 15px;
    }

    .slider::-moz-range-thumb {
        width: 60px;
        height: 30px;
        border-radius: 15px;
    }

    .slider-value {
        top: -40px;
        font-size: 14px;
        padding: 4px 8px;
        /* Исправляем позиционирование для мобильных */
        left: calc(var(--value-percent, 0) * 1%);
        transform: translateX(-50%);
        min-width: 50px;
    }
}

/* Медиа-запрос для очень маленьких экранов */
@media (max-width: 320px) {
    .slider::-webkit-slider-thumb {
        width: 50px;
        height: 25px;
        border-radius: 12.5px;
    }

    .slider::-moz-range-thumb {
        width: 50px;
        height: 25px;
        border-radius: 12.5px;
    }

    .slider-value {
        font-size: 12px;
        padding: 3px 6px;
        min-width: 40px;
    }
}

        .robux-amount {
            position: absolute;
            top: -35%;
            transform: translateX(-50%) translateY(-50%);
            background: #FBDC70;
            padding: 6px 18px;
            border-radius: 18px;
            color: black;
            font-weight: bold;
            font-size: 1.35rem;
            pointer-events: none;
        }

        /* Button Styles */
        .buy-button {
    background: linear-gradient(45deg, #7c5cfc, #967bff);
    border: none;
    padding: 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    width: 100%;
    margin-top: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 25px;
    line-height: 26px;
    text-align: center;
    letter-spacing: 0.04em;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 30px -10px rgba(124, 92, 252, 0.5);
}

.buy-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px -10px rgba(124, 92, 252, 0.7);
}

.buy-button:active {
    transform: translateY(1px);
}

.buy-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: scale(0);
    transition: transform 0.6s ease-out;
}

.buy-button:hover::before {
    transform: scale(1);
}

.buy-button::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0) 60%);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.buy-button:hover::after {
    top: -30%;
    left: -30%;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 92, 252, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(124, 92, 252, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(124, 92, 252, 0);
    }
}

.buy-button {
    animation: pulse 2s infinite;
}

 /* Statistics Styles */
:root {
  --primary-color: #7c5cfc;
  --background-color: #22222a;
  --card-background: rgba(28, 28, 35, 0.8);
  --text-color: #ffffff;
  --text-secondary: #9898a3;
  --transition-speed: 0.5s;
}

.statistics {
  margin: 6rem auto;
  text-align: center;
  max-width: 1200px;
  padding: 0 20px;
}

.stats-title {
  color: var(--text-secondary);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.stats-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform var(--transition-speed) ease;
}

.stats-title:hover::after {
  transform: scaleX(1);
}

.stats-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  perspective: 1000px;
}

.stats-card {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  background-color: var(--card-background);
  padding: 2.5rem;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(124, 92, 252, 0.1);
  transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  transform: translateY(50px) rotateX(-10deg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(124, 92, 252, 0.2);
  overflow: hidden;
  position: relative;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.stats-card:hover::before {
  opacity: 1;
  transform: translate(25%, 25%);
}

.stats-card.animate {
  animation: cardEntrance 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.stats-card:hover {
  transform: translateY(-15px) rotateX(5deg) scale(1.05);
  box-shadow: 0 20px 40px rgba(124, 92, 252, 0.2);
}

.icon-container {
  width: 100px;
  height: 100px;
  background-color: var(--background-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

.icon-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 340deg,
    var(--primary-color) 340deg 360deg
  );
  animation: rotate 4s linear infinite;
}

.icon-container::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--background-color);
  border-radius: 50%;
  z-index: 1;
}

.stats-card:hover .icon-container {
  transform: scale(1.1) rotate(5deg);
}

.stat-icon {
  width: 60px;
  height: 60px;
  position: relative;
  z-index: 2;
  transition: all var(--transition-speed) ease;
  filter: drop-shadow(0 0 10px rgba(124, 92, 252, 0.5));
}

.stats-card:hover .stat-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 15px rgba(124, 92, 252, 0.8));
}

.stats-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-color);
  margin-top: 1.5rem;
  position: relative;
  text-shadow: 0 0 10px rgba(124, 92, 252, 0.5);
  transition: all var(--transition-speed) ease;
}

.stats-card:hover .stats-value {
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(124, 92, 252, 0.8);
}

.stats-value::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

.stats-card:hover .stats-value::after {
  width: 60px;
}

.stats-label {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-top: 1.5rem;
  transition: all var(--transition-speed) ease;
}

.stats-card:hover .stats-label {
  color: var(--text-color);
}

@keyframes cardEntrance {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .stats-container {
    flex-direction: column;
    align-items: center;
  }

  .stats-card {
    width: 100%;
    max-width: none;
  }

  .stats-title {
    font-size: 2rem;
  }

  .icon-container {
    width: 80px;
    height: 80px;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
  }

  .stats-value {
    font-size: 2rem;
  }

  .stats-label {
    font-size: 1rem;
  }
}

/* News Section Styles - Redesigned */
.news-section {
    margin: 6rem auto;
    text-align: center;
    max-width: 1400px;
    padding: 0 clamp(1rem, 5vw, 3rem);
}

.news-title {
    color: #9898a3;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.news-title::before,
.news-title::after {
    content: '';
    position: absolute;
    height: 4px;
    bottom: -10px;
    background-color: #7c5cfc;
    transition: width 0.4s ease-out, left 0.4s ease-out, right 0.4s ease-out;
}

.news-title::before {
    left: 50%;
    width: 0;
}

.news-title::after {
    right: 50%;
    width: 0;
}

.news-title:hover::before,
.news-title:hover::after {
    width: 50%;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    perspective: 1000px;
}

.news-card {
    position: relative;
    height: auto; /* Убираем фиксированную высоту */
    min-height: 300px; /* Минимальная высота карточки */
    border-radius: 20px;
    overflow: hidden;
    background-color: #f8f8f8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column; /* Важно для правильного размещения контента */
}

.news-card:hover {
    transform: rotateY(10deg) translateZ(20px);
    box-shadow: 0 15px 40px rgba(124, 92, 252, 0.2);
}

/* Добавляем класс для изображения */
.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Масштабируем изображение без искажений */
    object-position: center; /* Центрируем изображение */
}

.news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.news-card:hover .news-content {
    transform: translateY(0);
}

.news-content h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.news-card:hover .news-content h3 {
    opacity: 1;
    transform: translateY(0);
}

.news-button {
    background-color: #7c5cfc;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #FFFFFF;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: background-color 0.3s ease, transform 0.4s ease, opacity 0.4s ease;
}

.news-card:hover .news-button {
    opacity: 1;
    transform: translateY(0);
}

.news-button:hover,
.news-button:focus {
    background-color: #654de6;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(124, 92, 252, 0.4);
}

/* Медиазапросы для мобильных устройств */
@media (hover: none) {
    .news-card::before {
        opacity: 1;
    }
    .news-content {
        transform: translateY(0);
    }
    .news-content h3,
    .news-button {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-title::before,
    .news-title::after,
    .news-card,
    .news-card-inner,
    .news-content,
    .news-content h3,
    .news-button {
        transition: none;
    }
}

@media screen and (max-width: 768px) {
    .news-section {
        margin: 4rem auto;
    }
    .news-card {
        min-height: 250px; /* Минимальная высота для карточки */
    }
    .news-image {
        height: 100%; /* Делаем изображение растягивающимся по высоте */
        object-fit: cover; /* Сохраняем cover для всех устройств */
        object-position: center;
    }
    .news-content {
        padding: 1.5rem;
    }
    .news-content h3 {
        margin-bottom: 0.75rem;
    }
    .news-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}



.faq-section {
    margin: 6rem auto;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.faq-title {
    color: #7c5cfc;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.faq-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #7c5cfc;
    transition: width 0.3s ease;
}

.faq-title:hover::after {
    width: 100px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-card {
    background-color: #2b2b34;
    border: 2px solid #7c5cfc;
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(124, 92, 252, 0.1);
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(124, 92, 252, 0.2);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-card.active .faq-question::after {
    transform: rotate(45deg);
    color: #7c5cfc;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
    opacity: 0;
    color: #9898a3;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
}

.faq-card.active .faq-answer {
    max-height: 1000px;
    margin-top: 1rem;
    opacity: 1;
}

.faq-card.active .faq-question {
    color: #7c5cfc;
}

@media (max-width: 768px) {
    .faq-section {
        margin: 4rem auto;
    }

    .faq-title {
        font-size: 2rem;
    }

    .faq-card {
        padding: 1.25rem;
    }

    .faq-question {
        font-size: 1.1rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }
}

/* Animation for FAQ cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-card {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.faq-card:nth-child(1) { animation-delay: 0.1s; }
.faq-card:nth-child(2) { animation-delay: 0.2s; }
.faq-card:nth-child(3) { animation-delay: 0.3s; }

        /* footer */

        .footer {
            background-color: #1c1c23;
            color: #9898a3;
            padding: 3rem 2rem;
            font-size: 1rem;
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-section {
            flex: 1;
            min-width: 200px;
        }

        .footer-title {
            color: #ffffff;
            font-size: 1.2rem;
            margin-bottom: 1rem;
            position: relative;
            display: inline-block;
        }

        .footer-title::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 30px;
            height: 2px;
            background-color: #7c5cfc;
            transition: width 0.3s ease;
        }

        .footer-title:hover::after {
            width: 50px;
        }

        .footer-links {
            list-style: none;
            padding: 0;
        }

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

        .footer-links a {
            color: #9898a3;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-links a:hover {
            color: #7c5cfc;
        }

        .footer-social {
            display: flex;
            gap: 1rem;
        }

        .footer-social a {
            color: #9898a3;
            font-size: 1.5rem;
            transition: color 0.3s ease;
        }

        .footer-social a:hover {
            color: #7c5cfc;
        }

        .footer-bottom {
            margin-top: 2rem;
            text-align: center;
            padding-top: 1rem;
            border-top: 1px solid #2b2b34;
        }

        @media (max-width: 768px) {
            .footer-content {
                flex-direction: column;
            }
        }


        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4);
            z-index: 1000;
        }

        .modal {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #2b2b34;
            border-radius: 15px;
            padding: 20px;
            border: 2px solid #7c5cfc;
            color: white;
            z-index: 1001;
            text-align: center;
            width: 770px;
            height: 200px;
        }

        .modal p {
            font-family: 'Inter';
            font-style: normal;
            font-weight: 700;
            font-size: 25px;
            line-height: 26px;
            text-align: center;
            letter-spacing: 0.04em;
            color: #FFFFFF;
        }

        .modal-buttons {
            display: flex;
            justify-content: space-around;
            margin-top: 20px;
        }

        .modal-button {
            width: 284px;
            height: 55px;
            background-color: #7c5cfc;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-family: 'Inter';
            font-style: normal;
            font-weight: 700;
            font-size: 25px;
            line-height: 26px;
            text-align: center;
            letter-spacing: 0.04em;
            color: #FFFFFF;
        }


        .sidebar {
            position: fixed;
            top: 0;
            right: -100%;
            width: 400px;
            height: 100%;
            background-color: #262630;
            transition: right 0.5s ease-in-out, opacity 0.5s ease-in-out;
            z-index: 1000;
            padding: 32px;
            display: flex;
            flex-direction: column;
            align-items: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        }

        .sidebar.open {
            right: 0;
            opacity: 1;
        }

        .sidebar-close {
            position: absolute;
            top: 16px;
            right: 16px;
            background: none;
            border: none;
            color: #fff;
            font-size: 24px;
            cursor: pointer;
        }

        .sidebar-content {
            display: flex;
            flex-direction: column;
            gap: 24px;
            transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        }

        .sidebar-title {
            color: #ffffff;
            font-size: 1.5rem;
            margin-bottom: 16px;
        }

        .input-field {
            width: 100%;
            padding: 12px;
            border: 2px solid #627AD3;
            border-radius: 8px;
            background-color: #2b2b34;
            color: #ffffff;
            font-size: 1rem;
            margin-bottom: 1rem;
            transition: border-color 0.3s ease;
        }
        
                .input-field:focus {
            outline: none;
            border-color: #7c5cfc;
        }

        .login-button, .register-button {
            width: 100%;
            padding: 12px;
            background-color: #7c5cfc;
            color: #ffffff;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 700;
            margin-bottom: 1rem;
            transition: background-color 0.3s ease;
        }

.login-button:hover, .register-button:hover {
            background-color: #6b52e0;
        }
        .register-link, .back-link {
            color: #7c5cfc;
            font-size: 0.9rem;
            cursor: pointer;
            text-align: center;
            margin-top: 0.5rem;
        }

        .user-info {
            display: none;
            align-items: center;
            background-color: #2b2b34;
            border-radius: 20px;
            padding: 10px 20px;
            cursor: pointer;
            gap: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            transition: background-color 0.3s, transform 0.3s;
            animation: fadeIn 0.5s ease-in-out;
                position: absolute;
    right: 3rem; 
        }

        .user-info:hover {
            background-color: #343440;
            transform: scale(1.05);
        }

        .user-avatar {
            border-radius: 50%;
            width: 40px;
            height: 40px;
            border: 2px solid #7c5cfc;
        }

        .user-name {
            color: #ffffff;
            font-size: 1rem;
            font-weight: 600;
        }

        .dropdown-arrow {
            transition: transform 0.3s;
        }

        .dropdown-menu {
            display: none;
            position: absolute;
            top: 110%;
            left: 0;
            background-color: #2b2b34;
            border-radius: 10px;
            padding: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            margin-top: 10px;
            z-index: 10;
            opacity: 0;
            transform: scaleY(0);
            transform-origin: top;
            transition: opacity 0.3s, transform 0.3s;
        }

        .dropdown-menu.active {
            display: block;
            opacity: 1;
            transform: scaleY(1);
        }

.dropdown-menu .dropdown-item {
    color: #ffffff;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none; 
}

.dropdown-menu .dropdown-item:hover {
    background-color: #373745;
}

        .notification {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: #323232;
            color: white;
            padding: 16px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            display: none;
            z-index: 1000;
            animation: fadeInOut 5s forwards;
        }

        .robux-icon {
    width: 40px;
    height: 40px;
    background-image: url('https://raw.githubusercontent.com/OGDuper/Logo/refs/heads/main/robux');
    background-size: contain;
    background-repeat: no-repeat;
}

.error {
            border-color: #ff4d4f;
            box-shadow: 0 0 8px rgba(255, 77, 79, 0.5);
        }

.error-message {
    color: red;
    font-size: 1rem; /* Увеличиваем размер шрифта */
    margin-top: 0.5rem; /* Добавляем отступ сверху */
    text-align: left; /* Выравниваем текст по левому краю */
    display: block; /* Ошибка занимает всю строку */
}
        
        .toggle-password {
            cursor: pointer;
            margin-top: -30px;
            margin-right: 10px;
            align-self: flex-end;
        }

        .logo {
    position: absolute;
    left: 1.5rem;
    height: 90px;
    width: auto;
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

    .faq-answer {
        display: none;
        margin-top: 10px;
        color: #9898a3;
        font-size: 1rem;
        text-align: left;
    }
    .faq-card.active .faq-answer {
        display: block;
    }
    

        @media (max-width: 768px) {

            body {
                font-size: 1rem;
            }

            .purchase-container {
        max-width: 300px; 
    }

    .subtitle {
    font-size: 1.75rem; 
    font-weight: 600; 
    margin-bottom: 0.25rem; 
    color: #7c5cfc;
}

.subtitle::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
    70deg, 
    transparent, 
    #ffffff, 
    transparent
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 6s linear infinite;
    filter: blur(2px);
}

    .title {
        font-size: 2.625rem; 
    }

            .main-content {
        border-radius: 25px;
        padding: 1.3rem; 
        gap: 1.3rem; 
        max-width: 350px; 
        font-size: 0.5rem; 
    }
            
    #user-info {
        display: none !important; /* Ensure user info is hidden */
    }

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    background-color: #1c1c23;
}

    .logo {
        margin-right: auto;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column; 
        align-items: center;
        position: absolute;
        top: 80px; 
        left: 0;
        right: 0;
        background-color: #1c1c23;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s, opacity 0.3s ease;
    }
    
    .nav-links.show {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.3s ease;
    }
    
    
        .nav-links, .login-btn {
        display: block;
    }

    .menu-item {
        display: flex;
        align-items: center;
        padding: 1rem 0;
        width: 100%;
        color: white;
        text-decoration: none;
        font-size: 20px;
        gap: 10px; /* Отступ между иконкой и текстом */
    }

    /* Иконки для пунктов меню */
    .menu-item i {
        font-size: 20px; /* Размер иконок */
    }

    /* Эффекты при наведении на обычные пункты меню */
    .menu-item:hover {
        color: #7557ec; /* Цвет при наведении */
        transform: scale(1.1); /* Немного увеличиваем иконку при наведении */
    }

    
    .nav-links a {
        display: block;
        padding: 1rem 0; 
        width: 100%; 
        color: white;
        text-decoration: none;
    }

        /* Стили для иконок соцсетей */
        .social-icons {
        display: flex;
        gap: 15px;
        margin-top: 20px; /* Отступ сверху для соцсетей */
    }

    /* Иконки соцсетей */
    .social-icon {
        color: #fff;
        font-size: 28px;
        transition: all 0.3s ease;
    }

    .social-icon:hover {
        color: #7557ec; /* Цвет при наведении */
        transform: scale(1.1); /* Немного увеличиваем иконку при наведении */
    }



            .menu-toggle {
                position: absolute;
                right: 3rem;
                display: block;
                order: 3;
                background: none;
                border: none;
                padding: 0;
                cursor: pointer;
            }





            .login-btn {
                height: 40px;
                width: 80px;
                margin-left: 170px;
                order: 2;
                display: flex;
                align-items: center;
                justify-content: center;
                text-align: center;
                font-family: 'Inter', sans-serif; 
                font-weight: 700; 
            }

            .title {
                font-size: 2rem;
            }

            .input-group {
                padding: 1rem;
                border-radius: 1rem;
            }

            .input-label {
                font-size: 1rem;
            }

            .input-value {
                font-size: 2.5rem;
            }

            .currency-badge {
                padding: 0.8rem 1rem;
            }
            
            .robuxvalue {
                padding: 0.5rem 1rem;
                border-radius: 0.75rem;
                font-size: 0.875rem;
                margin-left: -20px; 
            }


            .buy-button {
                padding: 1rem;
                font-size: 1rem;
            }

            .stats-container {
                flex-direction: column;
                align-items: center;
                gap: 3rem;
            }

            .stats-card {
    flex-shrink: 0;
    width: 350px; 
    height: 250px; 
    background-color: #1c1c23;
    padding: 40px; 
    border-radius: 48px;
    text-align: center;
    box-shadow: 0 0 25px #8a6dff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



            .footer {
                flex-direction: column;
                gap: 1rem;
            }

            .modal {
                width: 90%;
                height: auto;
            }

            .modal-buttons {
                flex-direction: column;
                gap: 1rem;
            }

            .modal-button {
                width: 100%;
            }

            .sidebar {
                width: 100%;
                right: -100%;
            }
            
        .stats-value {
            font-size: 35px;
            font-weight: bold;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }

        .stats-value img {
            filter: brightness(0) invert(1);
        }
        

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideIn {
            from { right: -400px; opacity: 0; }
            to { right: 0; opacity: 1; }
        }

        @keyframes slideUp {
            from { transform: translateY(50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        @keyframes fadeInOut {
            0% { opacity: 0; transform: translateY(20px); }
            10%, 90% { opacity: 1; transform: translateY(0); }
            100% { opacity: 0; transform: translateY(20px); }
        }
        
        }
        
#sliderContainer {
    display: block; /* Слайдер видим по умолчанию */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#sliderContainer.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.mode-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.mode-toggle label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin: 0 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #9898a3;
}

.mode-toggle input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #7c5cfc;
    border-radius: 50%;
    margin-right: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.mode-toggle input[type="radio"]:checked {
    background-color: #7c5cfc;
    box-shadow: 0 0 5px rgba(124, 92, 252, 0.5);
}

.mode-toggle input[type="radio"]:hover {
    border-color: #967bff;
}

.mode-toggle label:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .mode-toggle {
        flex-direction: column;
        align-items: center;
    }

    .mode-toggle label {
        margin: 5px 0;
    }
}

.purchase-container.compact {
    gap: 0.5rem; /* Уменьшаем отступы между элементами */
    padding-bottom: 1rem; /* Добавляем нижний отступ */
    max-height: 350px; /* Ограничиваем высоту */
}

.purchase-container.compact .buy-button {
    margin-top: 0; /* Убираем верхний отступ у кнопки */
    align-self: flex-start; /* Выравниваем кнопку влево */
}


@media (min-width: 768px) {
        .social-icon {
            display: none;
        }
    }


/* Стиль для разделителя */
.separator {
    height: 1px;
    background-color: #967bff; /* Цвет палочки */
    margin: 20px 0;
    width: 50%; /* Ширина палочки — 50% от доступной ширины контейнера */
    margin-left: auto; /* Центрируем палочку по горизонтали */
    margin-right: auto;
}

/* Медиазапрос, чтобы скрыть разделитель на ПК (если ширина экрана больше 768px) */
@media (min-width: 768px) {
    .separator {
        display: none;
    }
}
    </style>
</head>
<body>
    <nav class="navbar">
        <img src="pics/logo2.png" alt="Logo" class="logo">
        
<button class="menu-toggle" id="mobileMenuButton">
    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
        <path d="M3 12h18M3 6h18M3 18h18" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
    </svg>
</button>

<div class="nav-links" id="navLinks">
    <!-- Ссылки на меню с иконками -->
    <a href="#" id="navBuyRobux" class="menu-item">
        <i class="fas fa-shopping-cart"></i> Покупка робуксов
    </a>
    <a href="#" id="navRewards" class="menu-item">
        <i class="fas fa-gift"></i> Награды
    </a>
    <a href="#" id="navFAQ" class="menu-item">
        <i class="fas fa-question-circle"></i> F.A.Q.
    </a>
    
    <div class="separator"></div>

    <a href="https://t.me/rbxmarket_ru" target="_blank" class="social-icon">
        <i class="fab fa-telegram-plane"></i>
        Telegram
    </a>
    <a href="https://vk.com/rbxmarketru" target="_blank" class="social-icon">
        <i class="fab fa-vk"></i>
        VK
    </a>
</div>
        
        

        
        

        <div id="user-info" class="user-info">
            <img id="user-avatar" src="avatar.png" alt="User Avatar" class="user-avatar">
            <span id="user-name" class="user-name">Username</span>
            <svg id="dropdownArrow" class="dropdown-arrow" width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                <path d="M7 10l5 5 5-5" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
            </svg>
<div class="dropdown-menu" id="dropdownMenu">
    <a href="/purchases" class="dropdown-item" style="display: inline-flex; align-items: center; gap: 0.5rem;">
        <span class="material-symbols-outlined">payments</span>
        Транзакции
    </a>
    <div class="dropdown-item" id="logoutButton" style="display: inline-flex; align-items: center; gap: 0.5rem;">
        <span class="material-symbols-outlined" style="font-size: 24px;">logout</span>
        Выход
    </div>
</div>
        </div>
    </nav>

    <div class="sidebar" id="sidebar">
        <button class="sidebar-close" id="closeSidebar">×</button>
        <div id="loginForm">
            <h2 class="sidebar-title">Вход в аккаунт</h2>
            <form action="#" method="post">
                <input type="email" id="emailLogin" class="input-field" placeholder="Введите вашу почту" autocomplete="username">
                <input type="password" id="passwordLogin" class="input-field" placeholder="Введите ваш пароль" autocomplete="current-password">
                <div class="error-message" id="loginErrorMessage"></div>
                <button type="submit" class="login-button" id="loginButton">Войти</button>
            </form>
            <p class="register-link" id="showRegisterForm">Ещё нет аккаунта? Зарегистрируйтесь</p>
        </div>
        <div id="registerForm" style="display: none;">
            <h2 class="sidebar-title">Регистрация</h2>
            <form action="#" method="post">
                <input type="text" id="nicknameRegister" class="input-field" placeholder="Введите ваш никнейм">
                <input type="email" id="emailRegister" class="input-field" placeholder="Введите вашу почту" autocomplete="username">
                <input type="password" id="passwordRegister" class="input-field" placeholder="Введите ваш пароль" autocomplete="new-password">
                <input type="password" id="confirmPasswordRegister" class="input-field" placeholder="Подтвердите ваш пароль" autocomplete="new-password">
                <span class="toggle-password" id="togglePasswordVisibility">Показать/Скрыть пароли</span>
                <div class="error-message" id="registerErrorMessage"></div>
                <button type="submit" class="register-button" id="registerButton">Зарегистрироваться</button>
            </form>
            <p class="back-link" id="backToLogin">← Назад к Входу</p>
            <p class="terms-text">
                Осуществляя вход вы соглашаетесь с пользовательским соглашением и политикой конфиденциальности
            </p>
        </div>
    </div>

    <div class="title-container" id="top">
        <div class="subtitle" data-text="Лучший курс">Лучший курс</div>
        <h1 class="title">Покупай робуксы</h1>
    </div>
    <main class="main-content" id="main-content">
        <div class="purchase-container">
            <!-- Manual Input Only -->
<div class="input-group">
    <div class="input-left">
        <label class="input-label" for="rubles">Ты платишь</label>
        <input class="input-value" id="rubles" type="text" value="30" />
        <div class="error-message" id="rublesError"></div> <!-- Добавлено сообщение об ошибке -->
    </div>
    <div class="currency-badge">₽</div>
</div>

<div class="input-group">
    <div class="input-left">
        <label class="input-label" for="robux">Ты получаешь</label>
        <input class="input-value" id="robux" type="text" value="42" />
    </div>
    <div class="robuxvalue">
        <img src="https://raw.githubusercontent.com/OGDuper/Logo/refs/heads/main/robux.svg" alt="robux icon">
    </div>
</div>
        </div>

<form action="payment.php" method="post" id="paymentForm">
    <!-- Скрытое поле для передачи суммы -->
    <input type="hidden" name="amount" id="hiddenAmount" value="500">
    <!-- Скрытое поле для передачи количества робуксов -->
    <input type="hidden" name="robux" id="hiddenRobux" value="500">
    <!-- Кнопка оплаты -->
    <button type="submit" class="buy-button" disabled>Купить робуксы</button>
</form>
        </div>
    </main>

    <div class="statistics">
        <h2 class="stats-title">Статистика</h2>
        <div class="stats-container">
            <div class="stats-card">
                <div class="icon-container">
                    <img src="https://raw.githubusercontent.com/OGDuper/Logo/refs/heads/main/sells.png" alt="Icon" class="stat-icon">
                </div>
                <div class="stats-label">Курс за 1 рубль</div>
                <div class="stats-value">1.4</div>
            </div>
            <div class="stats-card">
                <div class="icon-container">
                    <img src="https://raw.githubusercontent.com/OGDuper/Logo/refs/heads/main/trans.png" alt="Icon" class="stat-icon">
                </div>
                <div class="stats-label">Робуксов куплено</div>
                <div class="stats-value">2.000.000+</div>
            </div>
            <div class="stats-card">
                <div class="icon-container">
                    <img src="https://raw.githubusercontent.com/OGDuper/Logo/refs/heads/main/realtrans2.png" alt="Icon" class="stat-icon">
                </div>
                <div class="stats-label">Покупок</div>
                <div class="stats-value">4.000+</div>
            </div>
        </div>
    </div>
    
    

    <div class="news-section">
        <h2 class="news-title">Актуальные новости</h2>
        <div class="news-container">
            <div class="news-card">
                <img src="pics\widgets\first.jpg" alt="Telegram канал" class="news-image">
                <div class="news-content">
                    <h3>Покупай по праздничному курсу!</h3>
                    <a href="#top" class="news-button">Купить!</a>
                </div>
            </div>
            <div class="news-card">
                <img src="pics\widgets\giveaway.jpg" alt="Розыгрыш" class="news-image">
                <div class="news-content">
                    <h3>Розыгрыш 100.000 робуксов</h3>
                    <a href="https://t.me/rbxmarket_ru/14" class="news-button">Перейти</a>
                </div>
            </div>
        </div>
    </div>
    

    <div class="faq-section" id="faq-section">
        <h2 class="faq-title">F.A.Q.</h2>
        <div class="faq-container">
            <div class="faq-card">
                <div class="faq-question">Как купить робуксы?</div>
                <div class="faq-answer">Вы можете выбрать количество робуксов, настроить оплату и получить их на ваш аккаунт.</div>
            </div>
            <div class="faq-card">
                <div class="faq-question">Сколько робуксов в наличии?</div>
                <div class="faq-answer">На данный момент в наличии более 3,000,000 робуксов для быстрой покупки.</div>
            </div>
            <div class="faq-card">
                <div class="faq-question">Сколько занимает доставка?</div>
                <div class="faq-answer">Доставка обычно занимает 5-10 минут после оплаты.</div>
            </div>
        </div>
    </div>

    <div id="overlay" class="overlay"></div>
    <div id="confirmationModal" class="modal">
        <p>Вы уверены что создали геймпасс за <span id="amountValue"></span>                    <img src="https://raw.githubusercontent.com/OGDuper/Logo/refs/heads/main/robux2.svg" width="30" height="30" alt="icon"><br>И ввели верную ссылку/айди на геймпасс?</p>
        <div class="modal-buttons">
            <button id="confirmYes" class="modal-button">Да</button>
            <button id="confirmNo" class="modal-button">Нет</button>
        </div>
    </div>

    <footer class="footer">
        <div class="footer-content">
            <div class="footer-section">
                <h3 class="footer-title">Контакты</h3>
                <ul class="footer-links">
                    <li><a href="mailto:contact@rbxmarket.ru">contact@rbxmarket.ru</a></li>
                    <li><a href="https://vk.com/rbxmarketru">ВКонтакте</a></li>
                </ul>
            </div>
            <div class="footer-section">
                <h3 class="footer-title">Соглашения</h3>
                <ul class="footer-links">
                    <li><a href="terms">Пользовательское соглашение</a></li>
                    <li><a href="privacy-policy">Политика конфиденциальности</a></li>
                </ul>
            </div>
        </div>
    </footer>


    


    <script>
    
    
        function setCookie(name, value, days) {
            let expires = "";
            if (days) {
                const date = new Date();
                date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
                expires = "; expires=" + date.toUTCString();
            }
            document.cookie = name + "=" + (value || "") + expires + "; path=/";
        }

        function getCookie(name) {
            const nameEQ = name + "=";
            const ca = document.cookie.split(';');
            for (let i = 0; i < ca.length; i++) {
                let c = ca[i];
                while (c.charAt(0) === ' ') c = c.substring(1, c.length);
                if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
            }
            return null;
        }

        const mobileMenuButton = document.getElementById('mobileMenuButton');
        const navLinks = document.querySelector('.nav-links');

        mobileMenuButton.addEventListener('click', () => {
            navLinks.classList.toggle('show');
        });


        document.addEventListener('DOMContentLoaded', function() {
            const cards = document.querySelectorAll('.stats-card');
            cards.forEach((card, index) => {
                setTimeout(() => {
                    card.classList.add('animate');
                }, index * 200);
            });
        });
        



        function showNotification(message) {
            const notification = document.createElement('div');
            notification.textContent = message;
            notification.style.cssText = `
                position: fixed;
                top: 20px;
                right: 20px;
                background-color: #4caf50;
                color: white;
                padding: 16px;
                border-radius: 8px;
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
                z-index: 1000;
                animation: fadeInOut 3s forwards;
            `;
            document.body.appendChild(notification);
            setTimeout(() => {
                notification.remove();
            }, 3000);
        }

document.addEventListener('DOMContentLoaded', () => {
    const buyButton = document.querySelector('.buy-button');
    const rublesInput = document.getElementById('rubles');
    const robuxInput = document.getElementById('robux');

    function enableBuyButton() {
        const rubles = parseFloat(rublesInput.value);
        const robux = parseInt(robuxInput.value, 10);

        // Проверка, что введенные значения валидны
        if (rubles > 0 && robux > 0) {
            buyButton.disabled = false;  // Включаем кнопку
        } else {
            buyButton.disabled = true;   // Отключаем кнопку, если данные не валидны
        }
    }

    // Следим за изменениями в полях ввода
    rublesInput.addEventListener('input', enableBuyButton);
    robuxInput.addEventListener('input', enableBuyButton);

    // Изначально проверяем, нужно ли включить кнопку
    enableBuyButton();
});




        document.addEventListener('DOMContentLoaded', () => {
        const sidebar = document.getElementById('sidebar');
        const openSidebarBtn = document.getElementById('openSidebar');
        const closeSidebarBtn = document.getElementById('closeSidebar');
        const loginForm = document.getElementById('loginForm');
        const registerForm = document.getElementById('registerForm');
        const togglePasswordVisibility = document.getElementById('togglePasswordVisibility');
        
        if (openSidebarBtn) {
            openSidebarBtn.addEventListener('click', () => {
                sidebar.classList.add('open');
            });
        }


        if (closeSidebarBtn) {
            closeSidebarBtn.addEventListener('click', () => {
                sidebar.classList.remove('open');
            });
        }
    });
        

        document.getElementById('closeSidebar').addEventListener('click', () => {
            sidebar.classList.remove('open');
        });

        document.getElementById('showRegisterForm').addEventListener('click', () => {
            loginForm.style.display = 'none';
            registerForm.style.display = 'block';
        });
        
        document.getElementById('backToLogin').addEventListener('click', () => {
            registerForm.style.display = 'none';
            loginForm.style.display = 'block';
        });

        document.addEventListener('DOMContentLoaded', () => {
        const mainContent = document.getElementById('main-content');
        const faqSection = document.getElementById('faq-section');

        document.getElementById('navBuyRobux').addEventListener('click', (e) => {
            e.preventDefault();
            if (mainContent) {
                mainContent.scrollIntoView({ behavior: 'smooth' });
            } else {
                console.error('Error');
            }
        });

        document.getElementById('navFAQ').addEventListener('click', (e) => {
            e.preventDefault();
            if (faqSection) {
                faqSection.scrollIntoView({ behavior: 'smooth' });
            } else {
                console.error('Error');
            }
        });

        document.getElementById('navRewards').addEventListener('click', (e) => {
            e.preventDefault();
            alert('В процессе');
        });
    });


        togglePasswordVisibility.addEventListener('click', () => {
            const passwordField = document.getElementById('passwordRegister');
            const confirmPasswordField = document.getElementById('confirmPasswordRegister');
            const type = passwordField.type === 'password' ? 'text' : 'password';
            passwordField.type = confirmPasswordField.type = type;
        });


        function checkPasswordComplexity(password) {
            const complexityRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;
            return complexityRegex.test(password);
        }


        document.getElementById('registerButton').addEventListener('click', () => {
            const email = document.getElementById('emailRegister').value;
            const password = document.getElementById('passwordRegister').value;
            const confirmPassword = document.getElementById('confirmPasswordRegister').value;
            const nickname = document.getElementById('nicknameRegister').value;
            const errorMessage = document.getElementById('registerErrorMessage');
            
            if (!nickname) {
                errorMessage.textContent = 'Пожалуйста, введите никнейм';
                document.getElementById('nicknameRegister').classList.add('error');
                return;
            }
            if (!email.includes('@')) {
                errorMessage.textContent = 'Пожалуйста, введите корректный адрес почты';
                document.getElementById('emailRegister').classList.add('error');
                return;
            }
            if (!checkPasswordComplexity(password)) {
                errorMessage.textContent = 'Пароль должен быть не менее 8 символов, содержать строчные, заглавные буквы, цифры и спецсимволы';
                document.getElementById('passwordRegister').classList.add('error');
                return;
            }
            if (password !== confirmPassword) {
                errorMessage.textContent = 'Пароли не совпадают';
                document.getElementById('confirmPasswordRegister').classList.add('error');
                return;
            }

            errorMessage.textContent = '';
            console.log('Registration successful:', { nickname, email });
        });

        document.getElementById('loginButton').addEventListener('click', (event) => {
            event.preventDefault(); // Отменяем перезагрузку страницы
            const email = document.getElementById('emailLogin').value;
            const password = document.getElementById('passwordLogin').value;
            const errorMessage = document.getElementById('loginErrorMessage');

            if (!email.includes('@')) {
                errorMessage.textContent = 'Пожалуйста, введите корректный адрес почты';
                document.getElementById('emailLogin').classList.add('error');
                return;
            }
            if (!password) {
                errorMessage.textContent = 'Пожалуйста, введите пароль';
                document.getElementById('passwordLogin').classList.add('error');
                return;
            }

            errorMessage.textContent = '';
            console.log('Login successful:', { email });
        });


        const userInfo = document.getElementById('user-info');
        const dropdownMenu = document.getElementById('dropdownMenu');
        const dropdownArrow = document.getElementById('dropdownArrow');

        userInfo.addEventListener('click', () => {
            dropdownMenu.classList.toggle('active');
            dropdownArrow.style.transform = dropdownMenu.classList.contains('active') ? 'rotate(180deg)' : 'rotate(0deg)';
        });

        document.addEventListener('click', (event) => {
            if (!userInfo.contains(event.target)) {
                dropdownMenu.classList.remove('active');
                dropdownArrow.style.transform = 'rotate(0deg)';
            }
        });




document.querySelectorAll('.faq-card').forEach(card => {
            card.addEventListener('click', () => {
                card.classList.toggle('active');
            });
        });

        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                document.querySelector(this.getAttribute('href')).scrollIntoView({
                    behavior: 'smooth'
                });
            });
        });


        function isElementInViewport(el) {
            const rect = el.getBoundingClientRect();
            return (
                rect.top >= 0 &&
                rect.left >= 0 &&
                rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
                rect.right <= (window.innerWidth || document.documentElement.clientWidth)
            );
        }

        function handleScrollAnimation() {
            document.querySelectorAll('.news-card, .faq-card, .footer-section').forEach(el => {
                if (isElementInViewport(el)) {
                    el.style.opacity = '1';
                    el.style.transform = 'translateY(0)';
                }
            });
        }

        window.addEventListener('scroll', handleScrollAnimation);
        window.addEventListener('load', handleScrollAnimation);

        const rublesElement = document.getElementById('rubles'); // Элемент с суммой
    const hiddenAmount = document.getElementById('hiddenAmount'); // Скрытое поле формы

    // Перед отправкой формы обновляем значение скрытого поля



    
    
document.addEventListener('DOMContentLoaded', () => {
    const buyButton = document.querySelector('.buy-button');
    const rublesInput = document.getElementById('rubles');
    const robuxInput = document.getElementById('robux');
    const rublesError = document.getElementById('rublesError');

    const RUBLES_TO_ROBUX = 1.4; // Курс
    const MIN_RUBLES = 30; // Минимальная сумма
    const MIN_ROBUX = 42; // Минимальное количество робуксов

    function validateInputs() {
        const rubles = parseFloat(rublesInput.value) || 0;
        const robux = parseInt(robuxInput.value, 10) || 0;

        if (rubles < MIN_RUBLES) {
            rublesError.textContent = 'Ошибка: минимальная сумма покупки — 30 ₽.';
            buyButton.disabled = true;
        } else if (robux < MIN_ROBUX) {
            rublesError.textContent = 'Ошибка: минимальная покупка — 42 робуксов.';
            buyButton.disabled = true;
        } else {
            rublesError.textContent = ''; // Убираем сообщение об ошибке
            buyButton.disabled = false;
        }
    }

    function updateRobux() {
        const rubles = parseFloat(rublesInput.value) || 0;
        robuxInput.value = Math.floor(rubles * RUBLES_TO_ROBUX); // Пересчитываем робуксы
        validateInputs();
    }

    function updateRubles() {
        const robux = parseInt(robuxInput.value, 10) || 0;
        rublesInput.value = (robux / RUBLES_TO_ROBUX).toFixed(2); // Пересчитываем рубли
        validateInputs();
    }

    rublesInput.addEventListener('input', updateRobux);
    robuxInput.addEventListener('input', updateRubles);

    validateInputs(); // Проверяем сразу после загрузки
});





document.getElementById('paymentForm').addEventListener('submit', (e) => {
    const rublesValue = parseFloat(document.getElementById('rubles').value);
    const robuxValue = parseInt(document.getElementById('robux').value, 10);

    if (!rublesValue || isNaN(rublesValue) || !robuxValue || isNaN(robuxValue)) {
        e.preventDefault();
        alert('Пожалуйста, введите корректные данные.');
        return;
    }

    document.getElementById('hiddenAmount').value = rublesValue.toFixed(2);
    document.getElementById('hiddenRobux').value = robuxValue;
});


document.querySelectorAll('.menu-item').forEach(item => {
    item.addEventListener('click', () => {
        document.getElementById('navLinks').classList.remove('show');
    });
});


document.querySelectorAll('.social-icon').forEach(item => {
    item.addEventListener('click', () => {
        document.getElementById('navLinks').classList.remove('show');
    });
});
    </script>
</body>
</html>