/* =========================================================
   App Landing Page — Разработка бизнес-инструментов
   Premium dark theme with gradients & micro-animations
   ========================================================= */

/* ── Hero ─────────────────────────────────────────────── */
.app-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.app-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(5, 5, 15, 0.7) 0%,
            rgba(10, 10, 30, 0.85) 100%);
    z-index: 1;
}

.app-hero .container {
    position: relative;
    z-index: 2;
}

.app-hero__badge {
    display: inline-block;
    background: linear-gradient(135deg, #6c3baa, #2575d4);
    color: #fff;
    padding: 6px 22px;
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeInDown .8s ease;
}

.app-hero__title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(108, 59, 170, 0.5);
    animation: fadeInUp .8s ease;
}

.app-hero__subtitle {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 0 auto 35px;
    line-height: 1.7;
    animation: fadeInUp 1s ease;
}

.app-hero__cta {
    display: inline-block;
    padding: 16px 42px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    color: #fff;
    background: linear-gradient(135deg, #6c3baa, #2575d4);
    box-shadow: 0 8px 30px rgba(108, 59, 170, 0.4);
    transition: all .3s ease;
    text-decoration: none;
    animation: fadeInUp 1.2s ease;
}

.app-hero__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(108, 59, 170, 0.6);
    color: #fff;
    text-decoration: none;
}

/* Частицы на героическом фоне */
.app-hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.app-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(108, 59, 170, 0.6);
    border-radius: 50%;
    animation: particleFloat 8s infinite ease-in-out;
}

/* Генерируем позиции для 20 частиц */
.app-particle--1 {
    left: 5%;
    top: 15%;
    animation-delay: 0s;
}

.app-particle--2 {
    left: 12%;
    top: 60%;
    animation-delay: .5s;
}

.app-particle--3 {
    left: 20%;
    top: 30%;
    animation-delay: 1s;
}

.app-particle--4 {
    left: 28%;
    top: 80%;
    animation-delay: 1.5s;
}

.app-particle--5 {
    left: 35%;
    top: 45%;
    animation-delay: 2s;
}

.app-particle--6 {
    left: 42%;
    top: 20%;
    animation-delay: 2.5s;
}

.app-particle--7 {
    left: 50%;
    top: 70%;
    animation-delay: 3s;
}

.app-particle--8 {
    left: 58%;
    top: 35%;
    animation-delay: 3.5s;
}

.app-particle--9 {
    left: 65%;
    top: 85%;
    animation-delay: 4s;
}

.app-particle--10 {
    left: 72%;
    top: 50%;
    animation-delay: 4.5s;
}

.app-particle--11 {
    left: 78%;
    top: 15%;
    animation-delay: 5s;
}

.app-particle--12 {
    left: 85%;
    top: 65%;
    animation-delay: 5.5s;
}

.app-particle--13 {
    left: 90%;
    top: 25%;
    animation-delay: 6s;
}

.app-particle--14 {
    left: 95%;
    top: 75%;
    animation-delay: 6.5s;
}

.app-particle--15 {
    left: 8%;
    top: 90%;
    animation-delay: 7s;
}

.app-particle--16 {
    left: 33%;
    top: 10%;
    animation-delay: 0.3s;
}

.app-particle--17 {
    left: 47%;
    top: 55%;
    animation-delay: 1.3s;
}

.app-particle--18 {
    left: 60%;
    top: 40%;
    animation-delay: 2.3s;
}

.app-particle--19 {
    left: 75%;
    top: 90%;
    animation-delay: 3.3s;
}

.app-particle--20 {
    left: 88%;
    top: 45%;
    animation-delay: 4.3s;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-40px) scale(1.5);
        opacity: 0.8;
    }
}


/* ── Секция «Проблема» ──────────────────────────────── */
.app-pain {
    background: linear-gradient(273deg, #1a0a2e, #08080d);
}




.app-pain__text {
    padding: 20px 0;
}

.app-pain__desc {
    font-size: 17px;
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}


/* ── Секция «Решение» ───────────────────────────────── */
.app-solution {
    background: linear-gradient(275deg, #0d2540, #0e0c15);
}


.app-solution__text {
    padding: 20px 0;
}

.app-solution__text p {
    font-size: 17px;
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}


/* ── Секция «Возможности» — карточки ────────────────── */
.app-capabilities {
    background: linear-gradient(180deg, #0e0c15, #1a0a2e);
}

.app-cap-card {
    position: relative;
    border-radius: 14px;
    padding: 30px 22px;
    min-height: 260px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.app-cap-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    z-index: 0;
    pointer-events: none;
}

.app-cap-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(108, 59, 170, 0.35);
}

.app-cap-card--1 {
    background: linear-gradient(135deg, rgba(108, 59, 170, 0.7), rgba(37, 117, 212, 0.5));
}

.app-cap-card--2 {
    background: linear-gradient(135deg, rgba(37, 117, 212, 0.7), rgba(46, 204, 113, 0.5));
}

.app-cap-card--3 {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.7), rgba(231, 76, 60, 0.5));
}

.app-cap-card--4 {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.7), rgba(52, 152, 219, 0.5));
}

.app-cap-card--5 {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.7), rgba(26, 188, 156, 0.5));
}

.app-cap-card--6 {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.65), rgba(230, 126, 34, 0.5));
}

.app-cap-card__icon {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.app-cap-card h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
}

.app-cap-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    text-align: justify;
    line-height: 1.6;
}


/* ── Секция «Как это работает» — таймлайн ───────────── */
.app-howwork {
    background: linear-gradient(275deg, rgba(47, 41, 95, 0.9), #0e0c15);
}

.app-howwork__timeline {
    max-width: 700px;
    margin: 0 auto;
}

.app-howwork__step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 28px 30px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(108, 59, 170, 0.25), rgba(37, 117, 212, 0.15));
    border-left: 4px solid #6c3baa;
    transition: transform .3s ease, background .3s ease;
}

.app-howwork__step:hover {
    transform: translateX(8px);
    background: linear-gradient(135deg, rgba(108, 59, 170, 0.4), rgba(37, 117, 212, 0.25));
}

.app-howwork__num {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #6c3baa, #2575d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 55px;
}

.app-howwork__body h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 8px;
}

.app-howwork__body p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}


/* ── Секция «Кейсы» — карточки с картинками ─────────── */
.app-cases {
    background: linear-gradient(180deg, #0e0c15, #0d1a2a);
}

.app-case-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

.app-case-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: linear-gradient(180deg, #141428, #0d1a2a);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.app-case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(108, 59, 170, 0.3);
}

.app-case-card__img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid rgba(108, 59, 170, 0.5);
    flex-shrink: 0;
}

.app-case-card__body {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.app-case-card__body h4 {
    color: #fff;
    font-size: 19px;
    margin-bottom: 10px;
}

.app-case-card__body p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    text-align: justify;
    line-height: 1.6;
    flex-grow: 1;
}


/* ── Секция «Почему я» ──────────────────────────────── */
.app-why {
    background: linear-gradient(273deg, #1a0a2e, #08080d);
}



.app-why__text {
    padding: 20px 0;
}

.app-why__item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
    padding: 15px 18px;
    border-radius: 10px;
    background: rgba(108, 59, 170, 0.1);
    border: 1px solid rgba(108, 59, 170, 0.2);
    transition: background .3s ease, transform .3s ease;
}

.app-why__item:hover {
    background: rgba(108, 59, 170, 0.2);
    transform: translateX(5px);
}

.app-why__item i {
    font-size: 24px;
    margin-top: 3px;
}

.app-why__item h5 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 17px;
}

.app-why__item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}


/* ── Секция «Цитата» ────────────────────────────────── */
.app-quote {
    background: linear-gradient(135deg, #1a0a2e, #0d2540);
    position: relative;
}

.app-quote__block {
    padding: 50px 40px;
    border-radius: 20px;
    background: rgba(108, 59, 170, 0.12);
    border: 1px solid rgba(108, 59, 170, 0.3);
    box-shadow: 0 10px 40px rgba(108, 59, 170, 0.15);
}

.app-quote__icon {
    font-size: 40px;
    color: rgba(108, 59, 170, 0.6);
    margin-bottom: 20px;
}

.app-quote__text {
    font-size: 22px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 15px;
}

.app-quote__author {
    font-size: 16px;
    color: rgba(108, 59, 170, 0.8);
    font-weight: 600;
}


/* ── Секция «Форма заявки» ──────────────────────────── */
.app-consult {
    background: linear-gradient(313deg, #2e1b5e, #0e0e1c);
}

.app-consult__sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
    max-width: 600px;
    margin: 10px auto 0;
}

.app-consult__wrapper {
    background: linear-gradient(135deg, rgba(108, 59, 170, 0.15), rgba(37, 117, 212, 0.1));
    border: 1px solid rgba(108, 59, 170, 0.25);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.app-consult__info {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.app-consult__benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.app-consult__benefit-card {
    background: rgba(108, 59, 170, 0.12);
    border: 1px solid rgba(108, 59, 170, 0.35);
    border-radius: 14px;
    padding: 22px 16px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.app-consult__benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(108, 59, 170, 0.3);
    border-color: rgba(108, 59, 170, 0.6);
}

.app-consult__benefit-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(108, 59, 170, 0.35), rgba(37, 117, 212, 0.25));
    font-size: 20px;
    color: #a78bfa;
}

.app-consult__benefit-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.app-consult__benefit-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.app-consult__msg {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 15px;
}

.app-consult__form-block .form-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
}

.app-consult__form-block .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(108, 59, 170, 0.3);
    color: #fff;
    border-radius: 8px;
    padding: 10px 15px;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.app-consult__form-block .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.app-consult__form-block .form-control:focus {
    border-color: #6c3baa;
    box-shadow: 0 0 15px rgba(108, 59, 170, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
}

.app-consult__btn {
    display: inline-block;
    padding: 14px 45px;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid #6c3baa;
    border-radius: 50px;
    color: #fff;
    background: linear-gradient(135deg, #6c3baa, #2575d4);
    box-shadow: 0 8px 25px rgba(108, 59, 170, 0.35);
    transition: all .3s ease;
    cursor: pointer;
}

.app-consult__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(108, 59, 170, 0.5);
}

.app-consult__btn:active {
    transform: translateY(0);
}

#app-form-result {
    font-size: 15px;
    color: #2ecc71;
}

#app-form-result.error {
    color: #e74c3c;
}


/* ── Анимации ───────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ── Scroll animations ──────────────────────────────── */
.app-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
}

.app-animate.app-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ── Адаптив ────────────────────────────────────────── */
@media (max-width: 991px) {
    .app-hero__title {
        font-size: 32px;
    }

    .app-hero__subtitle {
        font-size: 16px;
    }

    .app-howwork__step {
        padding: 20px;
    }

    .app-consult__wrapper {
        padding: 25px 18px;
    }

    .app-pain__img,
    .app-solution__img,
    .app-why__img {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .app-hero__title {
        font-size: 26px;
    }

    .app-hero__cta {
        padding: 12px 28px;
        font-size: 15px;
    }

    .app-cap-card {
        min-height: auto;
    }

    .app-quote__text {
        font-size: 18px;
    }

    .app-quote__block {
        padding: 30px 20px;
    }

    .app-consult__benefits-grid {
        grid-template-columns: 1fr;
    }
}