/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: #1a202c;
}

h2 {
    font-size: 2.2rem;
    color: #2d3748;
}

h3 {
    font-size: 1.5rem;
    color: #4a5568;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-game {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    color: #2d3748;
    font-weight: 600;
}

.btn-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 234, 167, 0.4);
}

/* Warning Banner */
.warning-banner {
    background: linear-gradient(135deg, #ff7675 0%, #fd79a8 100%);
    color: white;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    position: relative;
    top: 0;
    z-index: 1000;
}

.warning-banner strong {
    font-weight: 600;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 0;
}

.nav-tagline {
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-cards {
    position: relative;
    width: 300px;
    height: 300px;
}

.card-slot {
    position: absolute;
    width: 80px;
    height: 100px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.card-2 {
    top: 100px;
    right: 50px;
    animation-delay: 2s;
}

.card-3 {
    bottom: 50px;
    left: 100px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: white;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #4a5568;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.feature p {
    color: #718096;
    font-size: 0.95rem;
}

/* Games Section */
.games {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.game-card.featured {
    border: 3px solid #667eea;
    position: relative;
}

.game-card.featured::before {
    content: '⭐ Featured';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.game-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 10px 10px 0 0;
}

/* Индивидуальные игры */
.game-1 { background-image: url('../images/cover1.webp'); }
.game-2 { background-image: url('../images/cover2.webp'); }
.game-3 { background-image: url('../images/cover3.webp'); }
.game-4 { background-image: url('../images/cover4.webp'); }
.game-5 { background-image: url('../images/cover5.webp'); }
.game-6 { background-image: url('../images/cover6.webp'); }


.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #2d3748;
}

.game-info p {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Advantages Section */
.advantages {
    background: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.advantage-card p {
    color: #718096;
    line-height: 1.6;
}

/* Reviews Section */
.reviews {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.reviews .section-header h2,
.reviews .section-header p {
    color: white;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffeaa7;
}

.review-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-style: italic;
}

.review-author strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.review-author span {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: #2d3748;
}

.contact-details p {
    color: #718096;
    margin: 0;
}

.contact-form {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 16px;
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    text-align: center;
}

.footer-disclaimer {
    background: linear-gradient(135deg, #ff7675 0%, #fd79a8 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-disclaimer strong {
    font-weight: 600;
}

.footer-copyright {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Game Page Styles */
.game-page {
    background: #2d3748;
    min-height: 100vh;
    color: white;
}

.game-page .navbar {
    background: rgba(45, 55, 72, 0.95);
}

.game-page .nav-links a {
    color: #a0aec0;
}

.game-page .nav-links a:hover {
    color: #667eea;
}

.game-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0;
    text-align: center;
}

.game-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.game-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.game-container {
    padding: 2rem 0;
}

.game-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.game-wrapper iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.game-info-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.game-info-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.game-info-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-cards {
        display: none;
    }
}

@media (max-width: 480px) {
    .warning-banner {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .game-wrapper iframe {
        height: 400px;
    }
}

/* Page-specific styles */
.page-content {
    background: white;
    padding: 3rem 0;
}

.page-content h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2d3748;
}

.page-content .container {
    max-width: 800px;
}

.page-content p {
    margin-bottom: 1.5rem;
    color: #4a5568;
    line-height: 1.8;
}

.page-content h2 {
    color: #2d3748;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    color: #4a5568;
    line-height: 1.6;
}