/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat Alternates', sans-serif;
    background-color: #F7F7F7;
    color: #101010;
    line-height: 1.6;
}

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

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s;
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #8F88EA;
}

.logo-icon {
    font-size: 1.2rem;
    color: #E1F790;
}

header > .container > nav ul {
    display: flex;
    list-style: none;
}

header > .container > nav li {
    margin-left: 20px;
}

header > .container > nav a {
    text-decoration: none;
    color: #101010;
    font-weight: 500;
    transition: color 0.3s;
}

header > .container > nav a:hover {
    color: #8F88EA;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #8F88EA;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Dropdown Menu */
.mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 400px;
}

.mobile-menu ul {
    list-style: none;
    padding: 15px 20px 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu li {
    margin: 0;
}

.mobile-menu a {
    display: block;
    padding: 14px 0;
    color: #101010;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: #8F88EA;
}

.mobile-menu li:last-child a {
    border-bottom: none;
}

.mobile-menu .cta-btn {
    margin-top: 15px;
    text-align: center;
}

.cta-btn {
    display: inline-block;
    background-color: #E1F790;
    color: #0D1B33;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    background-color: #D0E680;
    color: #0D1B33;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(225, 247, 144, 0.5);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #8F88EA 0%, #0D1B33 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.hero-image img {
    width: 100%;
    max-width: 330px;
    border-radius: 46px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 5px solid #E1F790;
    position: relative;
    z-index: 2;
}

/* Декоративные элементы */
.deco {
    position: absolute;
    z-index: 1;
    opacity: 0.7;
    animation-duration: 8s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.deco.star {
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #E1F790;
    animation-name: spin;
}

.deco.puzzle {
    bottom: 20px;
    left: 20px;
    font-size: 1.5rem;
    color: #E1F790;
    animation-name: float;
}

.deco.paper-plane {
    bottom: 40px;
    right: 30px;
    font-size: 1.2rem;
    color: #fff;
    animation-name: fly;
}

.deco.cloud {
    width: 60px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    filter: blur(5px);
}

.deco.cloud-1 {
    top: 30px;
    left: 10%;
    animation-name: drift-left;
}

.deco.cloud-2 {
    top: 80px;
    right: 15%;
    animation-name: drift-right;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes fly {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    50% { transform: translateX(10px) translateY(-5px) rotate(10deg); }
    100% { transform: translateX(0) translateY(0) rotate(0deg); }
}

@keyframes drift-left {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100px); }
}

@keyframes drift-right {
    0% { transform: translateX(100px); }
    100% { transform: translateX(-100px); }
}

/* Sections General */
section {
    padding: 100px 0;
    position: relative;
}

section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #0D1B33;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #8F88EA;
    border-radius: 2px;
}

/* How It Works */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.step {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8F88EA, #E1F790);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: #8F88EA;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    transition: transform 0.3s;
}

.step:hover .step-icon {
    transform: scale(1.1) rotate(15deg);
}

.step h3 {
    margin-bottom: 15px;
    color: #0D1B33;
    font-weight: 600;
}

/* App Screenshot in How It Works */
.app-screenshot {
    margin: 40px 0;
    text-align: center;
}

.app-screenshot img {
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #8F88EA;
}

.screenshot-caption {
    margin-top: 15px;
    font-style: italic;
    color: #0D1B33;
    font-size: 0.9rem;
}

/* Why APPNAME */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

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

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #E1F790, #8F88EA);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: #E1F790;
    color: #0D1B33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 15px;
    transition: transform 0.3s;
}

.feature:hover .feature-icon {
    transform: scale(1.1) rotate(-15deg);
}

.feature h3 {
    color: #0D1B33;
    margin-bottom: 15px;
    font-weight: 600;
}

.why-us-screenshot {
    text-align: center;
}

.why-us-screenshot img {
    width: 100%;
    max-width: 330px;
    border-radius: 46px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 5px solid #E1F790;
}

/* Testimonials Carousel */
.testimonials {
    background: linear-gradient(135deg, #F7F7F7 0%, #E1F790 100%);
}

.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial {
    min-width: 100%;
    padding: 30px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial.active {
    opacity: 1;
    transform: translateY(0);
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid #8F88EA;
    box-shadow: 0 0 10px rgba(143, 136, 234, 0.3);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #0D1B33;
}

.testimonial cite {
    font-weight: 600;
    color: #8F88EA;
    display: block;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-controls button {
    background: #8F88EA;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-size: 1rem;
}

.carousel-controls button:hover {
    background: #0D1B33;
    transform: scale(1.1);
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.faq-screenshot {
    text-align: center;
}

.faq-screenshot img {
    width: 100%;
    max-width: 330px;
    border-radius: 46px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 5px solid #E1F790;
}

.faq-list {
    max-width: 100%;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.faq-item:hover {
    transform: translateY(-2px);
}

.faq-question {
    padding: 20px 25px;
    background: #8F88EA;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #0D1B33;
}

.faq-question i {
    font-size: 1.1rem;
}

.faq-answer {
    padding: 20px 25px;
    background: #F7F7F7;
    display: none;
    border-top: 1px solid #ddd;
    color: #101010;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Footer */
footer {
    background: #0D1B33;
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #E1F790;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    font-size: 1.2rem;
    color: #8F88EA;
}

.footer-info {
    text-align: center;
}

a.footer-link {
    color: #fff;
    text-decoration: none;
}

.footer-menu {
    text-align: center;
}

.footer-menu h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-menu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-menu li a {
    color: #E1F790;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu li a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 600px;
    text-align: center;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #8F88EA;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
    z-index: 1000;
    display: none;
}

.scroll-to-top:hover {
    background: #0D1B33;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(143, 136, 234, 0.5);
}

.scroll-to-top.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        gap: 40px;
    }

    .why-us-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    header > .container > nav,
    header > .container > .cta-btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    section {
        padding: 80px 0;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .step, .feature, .quote {
        padding: 20px;
    }

    .faq-question {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 15px 20px;
    }

    .testimonial-carousel {
        padding: 20px;
    }

    .avatar {
        width: 60px;
        height: 60px;
    }

    .carousel-controls button {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .footer-content {
        padding: 0 20px;
    }

    .deco {
        display: none;
    }

    .app-screenshot img,
    .why-us-screenshot img,
    .faq-screenshot img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .cta-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .scroll-to-top {
        width: 40px;
        height: 40px;
        right: 20px;
        bottom: 20px;
    }

    .footer-logo {
        font-size: 1.2rem;
    }

    section {
        padding: 60px 0;
    }
}