:root {
    --primary: #6ec1e4;
    --secondary: #f9a826;
    --accent: #e84c9c;
    --light: #f5f9ff;
    --dark: #2a3b5f;
    --success: #4caf50;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header - улучшен для мобильных */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Comic Neue', cursive;
    font-size: 1.6rem;
    color: var(--accent);
    font-weight: 700;
}

.logo i {
    font-size: 2rem;
}

.menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
    border-radius: 3px;
}

.menu a:hover {
    color: var(--accent);
}

.menu a:hover:after {
    width: 100%;
}

.cta-button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(249, 168, 38, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-button:hover {
    background-color: #e89715;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(249, 168, 38, 0.4);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.mobile-menu-btn:hover {
    background-color: rgba(110, 193, 228, 0.1);
}

/* Hero section - улучшена для мобильных */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #a1e3ff 0%, #f5f9ff 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-text {
    flex: 1;
    z-index: 2;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent);
    font-family: 'Comic Neue', cursive;
    position: relative;
    display: inline-block;
}

.hero h1 span:after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(232, 76, 156, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #4a5568;
    max-width: 600px;
}

/* Новый стиль для изображения - карточка с кнопкой */
.image-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.image-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(to bottom, #a1e3ff, #f5f9ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.image-card:hover .image-container img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(42, 59, 95, 0.9), transparent);
    color: white;
    padding: 20px;
    text-align: center;
}

.image-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.image-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.image-button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(232, 76, 156, 0.3);
}

.image-button:hover {
    background-color: #d43d86;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(232, 76, 156, 0.4);
}

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

/* Features section - адаптивная сетка */
.features {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #718096;
    max-width: 700px;
    margin: 0 auto 50px;
}

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

.feature-card {
    background-color: var(--light);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(110, 193, 228, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: background-color 0.3s;
}

.feature-card:hover .feature-icon {
    background-color: rgba(110, 193, 228, 0.2);
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

/* Characters section */
.characters {
    padding: 80px 0;
    background-color: #f0f7ff;
}

.characters-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 10px 40px;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.characters-slider::-webkit-scrollbar {
    height: 8px;
}

.characters-slider::-webkit-scrollbar-track {
    background: rgba(110, 193, 228, 0.1);
    border-radius: 10px;
}

.characters-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.character-card {
    min-width: 250px;
    background-color: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.character-card:hover {
    transform: scale(1.05);
}

.character-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background-color: #e0f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    transition: transform 0.3s;
}

.character-card:hover .character-avatar {
    transform: rotate(10deg) scale(1.1);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: white;
}

.testimonial-card {
    background-color: var(--light);
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    box-shadow: var(--shadow);
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 5rem;
    color: rgba(110, 193, 228, 0.2);
    font-family: serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #4a5568;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e0f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

/* CTA section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #4a9bc9 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-button.large {
    padding: 16px 35px;
    font-size: 1.2rem;
    background-color: var(--secondary);
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Game preview */
.game-preview {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 40px;
    box-shadow: var(--shadow);
}

.game-window {
    background-color: #2a3b5f;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.game-screen {
    background-color: #a1e3ff;
    height: 200px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark);
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.game-object {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    border-radius: 50%;
    animation: moveObject 4s linear infinite;
}

@keyframes moveObject {
    0% { left: 10%; top: 50%; }
    25% { left: 80%; top: 20%; }
    50% { left: 50%; top: 80%; }
    75% { left: 20%; top: 30%; }
    100% { left: 10%; top: 50%; }
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--light);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
}

.control-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Responsive styles - улучшенная адаптивность */
@media (max-width: 1100px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    
    .hero-text, .hero-image {
        flex: none;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
        border-radius: 0 0 15px 15px;
        z-index: 999;
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu li {
        width: 100%;
    }
    
    .menu a {
        display: block;
        padding: 15px;
        border-radius: 8px;
        transition: background-color 0.3s;
    }
    
    .menu a:hover {
        background-color: rgba(110, 193, 228, 0.1);
    }
    
    .menu a:after {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-cta-button {
        display: none;
    }
    
    .hero {
        padding: 130px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 10px 15px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .logo i {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 120px 0 50px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .features, .characters, .testimonials, .cta-section {
        padding: 60px 0;
    }
    
    .image-container {
        height: 250px;
    }
    
    .image-overlay h3 {
        font-size: 1.3rem;
    }
    
    .game-preview {
        padding: 20px 15px;
    }
    
    .game-screen {
        height: 180px;
        font-size: 1.3rem;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .cta-button.large {
        padding: 14px 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .character-card {
        min-width: 220px;
        padding: 20px;
    }
    
    .character-avatar {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
}

/* Анимация появления элементов при скролле */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация для звезд */
@keyframes starPulse {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* Стили для кнопок в карточках особенностей */
.feature-button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    width: 100%;
    display: block;
    text-align: center;
}

.feature-button:hover {
    background-color: #d43d86;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(232, 76, 156, 0.4);
}

.feature-card {
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .feature-button {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .feature-card {
        padding-bottom: 40px;
    }
}