/* ============================================
   MyPay Billing - Landing Page Styles
   Подключается только на главной странице
   ============================================ */

:root {
    --lp-bg: #07070d;
    --lp-surface: #101018;
    --lp-surface-2: #16161f;
    --lp-border: rgba(255, 255, 255, 0.07);
    --lp-border-strong: rgba(255, 255, 255, 0.14);
    --lp-violet: #8b5cf6;
    --lp-blue: #3b82f6;
    --lp-cyan: #22d3ee;
    --lp-green: #34d399;
    --lp-amber: #fbbf24;
    --lp-text: #f4f6fb;
    --lp-text-2: #a3adc2;
    --lp-text-3: #6b7591;
    --lp-radius: 18px;
    --lp-radius-lg: 26px;
    --lp-max: 1180px;
}

body {
    background: var(--lp-bg);
    color: var(--lp-text);
}

/* Отключаем декоративный фон старого style.css ( landing.css грузится только на главной ) */
body::before {
    content: none !important;
    animation: none !important;
}

/* === Фоновые пятна === */
.lp-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.lp-bg span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}

.lp-bg .b1 {
    width: 700px;
    height: 700px;
    top: -320px;
    left: -180px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 65%);
    animation: lpDrift1 24s ease-in-out infinite;
}

.lp-bg .b2 {
    width: 620px;
    height: 620px;
    top: 5%;
    right: -260px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 65%);
    animation: lpDrift2 30s ease-in-out infinite;
}

.lp-bg .b3 {
    width: 560px;
    height: 560px;
    bottom: -240px;
    left: 35%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 65%);
    animation: lpDrift1 34s ease-in-out infinite reverse;
}

@keyframes lpDrift1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(70px, 50px); }
}

@keyframes lpDrift2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-60px, 60px); }
}

.landing {
    position: relative;
    z-index: 1;
}

.landing .container {
    max-width: var(--lp-max);
    padding: 0 24px;
}

/* === Navbar (переопределение для лендинга) === */
.landing ~ .navbar,
.navbar {
    background: rgba(7, 7, 13, 0.72);
    border-bottom: 1px solid var(--lp-border);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.navbar-menu a {
    position: relative;
    padding: 6px 0;
    color: var(--lp-text-2);
}

.navbar-menu a:hover {
    color: var(--lp-text);
    background: none;
}

/* === Hero === */
.hero {
    padding: 150px 0 90px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 12px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--lp-green);
    margin-bottom: 28px;
}

.hero-badge .badge-dot {
    width: 7px;
    height: 7px;
    background: var(--lp-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: lpPulse 2.4s infinite;
}

@keyframes lpPulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
    font-size: clamp(2.6rem, 6.2vw, 4.4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--lp-text);
}

.hero h1 .accent {
    background: linear-gradient(100deg, var(--lp-violet), var(--lp-blue) 45%, var(--lp-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero .hero-sub {
    font-size: 1.15rem;
    color: var(--lp-text-2);
    max-width: 620px;
    margin: 0 auto 34px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--lp-text-3);
}

.hero-note b {
    color: var(--lp-text-2);
    font-weight: 600;
}

/* Статистика */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 74px;
    padding-top: 0;
    border-top: none;
}

.hero-stat {
    padding: 26px 16px;
    background: linear-gradient(180deg, var(--lp-surface-2), var(--lp-surface));
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    transition: transform 0.3s, border-color 0.3s;
}

.hero-stat:hover {
    transform: translateY(-3px);
    border-color: var(--lp-border-strong);
}

.hero-stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, var(--lp-violet), var(--lp-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat-label {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--lp-text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* === Секции === */
.lp-section {
    padding: 92px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-eyebrow {
    display: inline-block;
    padding: 5px 14px;
    margin-bottom: 16px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lp-violet);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 100px;
}

.section-header h2 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--lp-text-2);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* === Преимущества === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 28px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
    text-align: left;
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
    background: var(--lp-surface-2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--lp-cyan);
    background: linear-gradient(140deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.12));
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--lp-text-2);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* === Как начать === */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.step {
    position: relative;
    padding: 30px 26px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--lp-violet), var(--lp-blue));
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    color: var(--lp-text-2);
    font-size: 0.93rem;
}

/* === Тарифы === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 30px 26px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.pricing-card.popular {
    border-color: rgba(139, 92, 246, 0.6);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.12), var(--lp-surface) 45%);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.18);
}

.pricing-card.popular::before {
    content: 'Выбирают чаще всего';
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 14px;
    white-space: nowrap;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(135deg, var(--lp-violet), var(--lp-blue));
    border-radius: 100px;
}

.pricing-card {
    position: relative;
}

.pricing-name {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--lp-text-2);
    margin-bottom: 14px;
}

.pricing-card.popular .pricing-name {
    color: var(--lp-text);
}

.pricing-price {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 6px;
}

.pricing-price span {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--lp-text-3);
}

.pricing-period {
    font-size: 0.84rem;
    color: var(--lp-text-3);
    margin-bottom: 22px;
}

/* Мини-характеристики 2x2 */
.pricing-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--lp-border);
    border-radius: 14px;
}

.pricing-spec {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pricing-spec b {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lp-text);
}

.pricing-spec small {
    font-size: 0.75rem;
    color: var(--lp-text-3);
}

.pricing-features {
    flex: 1;
    margin: 0 0 24px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.9rem;
    color: var(--lp-text-2);
    border-bottom: none;
}

.pricing-features .check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--lp-green);
    background: rgba(52, 211, 153, 0.12);
    border-radius: 50%;
}

/* === Кнопки === */
.btn {
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(120deg, var(--lp-violet), var(--lp-blue));
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(139, 92, 246, 0.42);
    color: #fff;
}

.btn-outline {
    color: var(--lp-text);
    border: 1px solid var(--lp-border-strong);
    background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--lp-violet);
    color: var(--lp-text);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1rem;
}

/* === CTA === */
.lp-cta {
    padding: 40px 0 100px;
}

.cta-box {
    position: relative;
    overflow: hidden;
    padding: 60px 40px;
    text-align: center;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(59, 130, 246, 0.1) 50%, rgba(34, 211, 238, 0.12));
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.cta-box h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--lp-text-2);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 28px;
}

.cta-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.cta-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    font-size: 0.82rem;
    color: var(--lp-text-2);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--lp-border);
    border-radius: 100px;
}

.cta-tag svg {
    width: 14px;
    height: 14px;
    stroke: var(--lp-green);
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* === FAQ === */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    transition: border-color 0.25s;
}

.faq-item:hover {
    border-color: var(--lp-border-strong);
}

.faq-item.active {
    border-color: rgba(139, 92, 246, 0.4);
}

.faq-question {
    padding: 20px 22px;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--lp-violet);
}

.faq-answer-content {
    padding: 0 22px 22px;
    color: var(--lp-text-2);
    font-size: 0.94rem;
    line-height: 1.7;
}

/* === Отзывы === */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.review-card {
    padding: 28px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
}

.review-card:hover {
    transform: translateY(-4px);
    border-color: var(--lp-border-strong);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.review-stars {
    color: var(--lp-amber);
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.review-text {
    color: var(--lp-text-2);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--lp-violet), var(--lp-blue));
}

.review-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.review-role {
    font-size: 0.8rem;
    color: var(--lp-text-3);
}

/* === Footer === */
.footer {
    background: var(--lp-surface);
    border-top: 1px solid var(--lp-border);
}

.footer-col h4 {
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lp-text-3);
}

.footer-col a:hover {
    color: var(--lp-violet);
}

/* === Появление при скролле === */
@keyframes lpFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: lpFadeUp 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* === Адаптив === */
@media (max-width: 900px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
    }

    .lp-section {
        padding: 64px 0;
    }

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

    .cta-box {
        padding: 44px 24px;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
