/* Roblox-inspired CSS */
:root {
    --roblox-primary: #00A2FF;
    --roblox-secondary: #1E88E5;
    --roblox-accent: #FF6B35;
    --roblox-success: #4CAF50;
    --roblox-warning: #FF9800;
    --roblox-error: #F44336;
    --roblox-background: #F5F5F5;
    --roblox-text: #333333;
    --roblox-white: #FFFFFF;
    --roblox-dark: #1A1A1A;
    --roblox-gray: #666666;
    --roblox-light-gray: #E0E0E0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--roblox-primary) 0%, var(--roblox-secondary) 100%);
    color: var(--roblox-text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--roblox-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0; /* Убираем сдвиг, чтобы тексты были на одном уровне */
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start; /* Выравниваем по левому краю */
}

.roblox-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.logo h1 {
    color: var(--roblox-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-align: left;
}

.tagline {
    color: var(--roblox-gray);
    font-size: 0.9rem;
    margin: 0;
    text-align: left;
}

/* Main Content */
.main-content {
    background: var(--roblox-white);
    margin: 2rem auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: visible;
    position: relative;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--roblox-primary) 0%, var(--roblox-secondary) 100%);
    color: var(--roblox-white);
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
}

.hero-content {
    flex: 1;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--roblox-accent);
    color: var(--roblox-white);
}

.btn-primary:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: var(--roblox-white);
    color: var(--roblox-primary);
}

.btn-secondary:hover {
    background: var(--roblox-light-gray);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.roblox-character {
    font-size: 8rem;
    animation: float 3s ease-in-out infinite;
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background: var(--roblox-background);
    position: relative;
    clear: both;
    margin-top: 2rem;
    z-index: 1;
    scroll-margin-top: 80px; /* Отступ при скролле к якорю с учетом sticky header */
}

.features h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--roblox-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--roblox-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--roblox-primary);
}

.feature-card p {
    color: var(--roblox-gray);
}

/* How it works */
.how-it-works {
    padding: 4rem 2rem;
    background: var(--roblox-white);
}

.how-it-works h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--roblox-primary);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--roblox-background);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-3px);
}

.step-number {
    background: var(--roblox-primary);
    color: var(--roblox-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--roblox-primary);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--roblox-gray);
}

/* Statistics */
.stats {
    background: var(--roblox-primary);
    color: var(--roblox-white);
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Roboto', 'Arial', sans-serif;
}

/* Специальный стиль для 24/7 */
.stat-247 {
    font-variant: normal;
    letter-spacing: 0;
    white-space: nowrap;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.stat-label-full {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--roblox-accent) 0%, #E55A2B 100%);
    color: var(--roblox-white);
    padding: 4rem 2rem;
    text-align: center;
}

.cta-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--roblox-dark);
    color: var(--roblox-white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--roblox-primary);
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-section a {
    color: var(--roblox-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--roblox-primary);
}

.footer-bottom {
    border-top: 1px solid var(--roblox-gray);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.7;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-image {
        display: none; /* Скрываем робота на мобильной версии */
    }
    
    .hero-content {
        width: 100%;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .features {
        scroll-margin-top: 20px; /* Отступ при скролле к якорю */
        padding-top: 3rem; /* Увеличенный отступ сверху */
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Rules Section */
.rules-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.rules-section h2 {
    color: var(--roblox-blue);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.rules-content h3 {
    color: var(--roblox-blue);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--roblox-blue);
    padding-bottom: 5px;
}

.rules-content p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
}

.rules-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

.rules-footer p {
    margin: 5px 0;
    color: #666;
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero-image {
        display: none; /* Скрываем робота на маленьких экранах */
    }
    
    .features {
        scroll-margin-top: 20px;
        padding-top: 2.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}
