:root {
    --primary: #1E40AF;
    --primary-light: #3B82F6;
    --secondary: #F59E0B;
    --accent: #EF4444;
    --light: #F8FAFC;
    --light-gray: #E2E8F0;
    --dark: #1E293B;
    --text: #334155;
    --text-light: #64748B;
    --border-radius: 16px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s infinite linear;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary) 0%, #FBBF24 100%);
    top: 60%;
    right: 8%;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    bottom: 20%;
    left: 15%;
    animation-delay: -10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    top: 20%;
    right: 15%;
    animation-delay: -7s;
}

.shape-5 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--accent) 0%, #F87171 100%);
    bottom: 10%;
    right: 20%;
    animation-delay: -12s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(20px) rotate(270deg);
    }
}

/* Grid Pattern Overlay */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(30, 64, 175, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 64, 175, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

/* Floating particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 20s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Create multiple particles */
.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: -2s; }
.particle:nth-child(3) { left: 30%; animation-delay: -4s; }
.particle:nth-child(4) { left: 40%; animation-delay: -6s; }
.particle:nth-child(5) { left: 50%; animation-delay: -8s; }
.particle:nth-child(6) { left: 60%; animation-delay: -10s; }
.particle:nth-child(7) { left: 70%; animation-delay: -12s; }
.particle:nth-child(8) { left: 80%; animation-delay: -14s; }
.particle:nth-child(9) { left: 90%; animation-delay: -16s; }
.particle:nth-child(10) { left: 95%; animation-delay: -18s; }

/* Header */
.hero-header {
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(30, 64, 175, 0);
    }
    50% {
        box-shadow: 0 0 100px rgba(30, 64, 175, 0.1);
    }
}

/* Контейнер для переключателя языка */
.language-switcher-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.language-switcher {
    display: flex;
    background: var(--light);
    border-radius: 20px;
    padding: 4px;
    border: 1px solid var(--light-gray);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: var(--light-gray);
}

/* Центрирование логотипа */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.hero-logo {
    height: 70px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: inline-block;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 30px;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
}

.stat-value::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 1s ease;
}

.stat:hover .stat-value::after {
    width: 100%;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Promo Grid */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.promo-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, white, white), 
                linear-gradient(135deg, var(--primary-light), var(--secondary));
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    border: 2px solid transparent;
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.promo-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.promo-card:hover::after {
    left: 100%;
}

.slot-image {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}

.slot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.promo-card:hover .slot-image img {
    transform: scale(1.05);
}

.slot-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.promo-details {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 16px;
    min-height: 48px;
}

.promo-code {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.code {
    background: var(--light);
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    flex-grow: 1;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code:hover {
    background: var(--light-gray);
}

.code i {
    color: var(--text-light);
    font-size: 0.9rem;
}

.play-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 10px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

.validity {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.validity::before {
    content: "✓";
    color: #10B981;
    margin-right: 6px;
    font-weight: bold;
}

/* Badge */
.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    white-space: nowrap;
}

.usage-count {
    font-weight: 800;
    font-size: 0.85rem;
    margin-left: 4px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--light);
    border: none;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--light-gray);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.copied-notice {
    color: #10B981;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-code {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    background: var(--light);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px dashed var(--light-gray);
    color: var(--primary);
}

.instruction-image {
    width: 100%;
    background: var(--light);
    border-radius: 10px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
}

.instruction-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.modal-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--light-gray);
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .promo-grid {
        grid-template-columns: 1fr;
    }
    
    .promo-code {
        flex-direction: column;
    }
    
    .play-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .badge {
        top: 15px;
        right: 15px;
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-header {
        padding: 40px 0 30px;
        margin: 15px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .hero-logo {
        height: 60px;
    }
    
    .language-switcher-container {
        top: 15px;
        right: 15px;
    }
    
    .stats-container {
        gap: 20px;
        margin-top: 20px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .promo-card {
        padding: 20px;
        margin: 0 5px;
    }
    
    .slot-image {
        height: 140px;
    }
    
    .slot-name {
        font-size: 1.1rem;
    }
    
    .promo-details {
        font-size: 0.9rem;
        min-height: auto;
    }
    
    .promo-code {
        flex-direction: column;
    }
    
    .play-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .badge {
        top: 15px;
        right: 15px;
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .usage-count {
        font-size: 0.75rem;
    }
    
    .modal-content {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-code {
        font-size: 1.3rem;
        padding: 12px;
    }
    
    footer {
        padding: 25px 0;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .promo-card {
        padding: 18px;
    }
    
    .slot-image {
        height: 120px;
    }
    
    .slot-name {
        font-size: 1rem;
    }
    
    .code {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .play-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    /* Уменьшаем анимированные формы на мобильных */
    .shape-1, .shape-2, .shape-3, .shape-4, .shape-5 {
        width: 150px;
        height: 150px;
    }
}

/* Запрет выделения текста для лучшего UX на мобильных */
@media (max-width: 768px) {
    body {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Разрешаем выделение для промокодов */
    .code {
        -webkit-user-select: all;
        -moz-user-select: all;
        -ms-user-select: all;
        user-select: all;
    }
}

/* Портретная ориентация */
@media (max-width: 768px) and (orientation: portrait) {
    .hero-header {
        padding: 30px 0 25px;
    }
    
    .promo-grid {
        gap: 15px;
    }
}

/* Альбомная ориентация */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-header {
        padding: 25px 0 20px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .promo-card {
        padding: 15px;
    }
    
    .slot-name {
        font-size: 0.95rem;
    }
    
    .promo-details {
        font-size: 0.85rem;
    }
}

/* Добавьте эти стили в конец вашего style.css */

/* Стили для отдельных страниц слотов */
.single-slot {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
}

.promo-card.featured {
    transform: scale(1.02);
    border: 2px solid #F59E0B;
}

.badge.hot {
    background: linear-gradient(135deg, #FF6B6B, #FFA726);
}

.back-to-main {
    text-align: center;
    margin: 25px 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #1E40AF;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #1E40AF;
}

.back-btn:hover {
    background: #1E40AF;
    color: white;
    transform: translateY(-2px);
}

.back-btn.large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.back-to-main-bottom {
    text-align: center;
    margin: 50px 0 30px;
}

.bonus-breakdown {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    gap: 10px;
}

.bonus-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.bonus-item i {
    font-size: 1.5rem;
    color: #F59E0B;
    margin-bottom: 8px;
}

.bonus-item span {
    font-size: 0.85rem;
    font-weight: 600;
}

.slot-info {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin: 40px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: #F8FAFC;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #1E40AF;
}

.info-card h3 {
    color: #1E40AF;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.info-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: bold;
}

.seo-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin: 30px 0;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #E2E8F0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: #1E40AF;
    margin-bottom: 10px;
}

.keywords-section {
    margin-top: 30px;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.keyword-tag {
    background: #E2E8F0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #475569;
}

/* Адаптивность для отдельных страниц */
@media (max-width: 768px) {
    .bonus-breakdown {
        flex-direction: column;
        gap: 15px;
    }
    
    .back-btn {
        width: 100%;
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .single-slot {
        max-width: 100%;
    }
}