* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #2d3748;
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Шапка */
.header {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1a202c;
    text-decoration: none;
    white-space: nowrap;
}
/* Стиль для иконки логотипа, загружаемой из файла */
.logo-svg {
    width: 40px;
    display: block;
}

/* Навигация */
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #000000;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F4CA53;
    transition: width 0.2s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Кнопка Скачать в меню */
.btn-outline {
    background: transparent;
    border: 1.5px solid #000000;
    color: #000000;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.btn-outline:hover {
    background: #F4CA53;
    border: 1.5px solid #F4CA53;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

/* Главная секция */
.hero {
    padding: 60px 0 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Левая часть — изображение */
.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.06));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Правая часть — текст */
.hero-content {
    flex: 1;
    max-width: 720px;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #1a202c;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #718096;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* Кнопки магазинов (изображения) */
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.store-img {
    display: block;
    width: 230px;
    height: auto;
    transition: transform 0.25s, box-shadow 0.25s;
    border-radius: 12px;   /* по желанию, как у прежних кнопок */
}

.store-img:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}


/* Адаптивность */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        order: 2;
        max-width: 100%;
    }

    .hero-image-wrapper {
        order: 1;
        max-width: 280px;
        margin: 0 auto;
    }

    .store-buttons {
        justify-content: center;
    }

    .nav {
        gap: 20px;
    }

    .header .container {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header .container {
        flex-direction: column;
        gap: 16px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

/* Секция "Иероглифы" */
.feature {
    padding: 80px 0;
    background-color: #ffffff;
}

.feature .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-content {
    flex: 0 0 60%;
    padding-left: 200px;
}

.feature-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    line-height: 1.3;
}

.feature-text {
    font-size: 1.15rem;
    color: #718096;
    line-height: 1.7;
}

.feature-image-wrapper {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
}

.feature-image {
    max-width: 100%;
    height: auto;
    max-height: 700px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.08));
}

/* Для секций с изображением слева */
.feature-reverse .feature-content {
    flex: 0 0 50%;
    padding-left: 0; /* убираем левый отступ у текста */
}
.feature-reverse .feature-image-wrapper {
    flex: 0 0 50%;
}
/* Левый отступ для изображения в секции с картинкой слева */
.feature-reverse .feature-image {
    margin-left: 200px; /* отступ слева у изображения */
}

/* Секция CTA */
.cta {
    padding: 100px 0;
    background-color: #ffffff;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.15rem;
    color: #718096;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta .store-buttons {
    justify-content: center;
}

/* Адаптивность для секции "Иероглифы"*/
@media (max-width: 768px) {
    .feature .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .feature-content {
        flex: auto;          /* сбрасываем проценты 60/40 */
        max-width: 100%;
        padding-left: 0;      /* убираем отступ на мобильных */
    }
    
    .feature-reverse .feature-content {
        flex: auto;
        max-width: 100%;
    }

    .feature-image-wrapper {
        flex: auto; /* сбрасываем проценты 60/40 */
        order: -1; /* На мобильных картинка сверху */
    }
    
    .feature-reverse .feature-image {
        margin-left: 0; /* убираем отступ слева на мобильных */
    }
    
    .cta {
        padding: 60px 0;
    }
    .cta-title {
        font-size: 2rem;
    }
}

/* Подвал */
.footer {
    background-color: #ffffff;
    padding: 40px 0 20px;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #6c5ce7;
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    text-align: center;
}

.footer-copy {
    font-size: 0.9rem;
    color: #a0aec0;
}

.footer-dev {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-top: 8px;
}

.footer-dev a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.footer-dev a:hover {
    color: #4a3bb5;
}

/* Адаптивность подвала */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }
}