/* ═══════════════════════════════════════════
   HOME PAGE — Графические улучшения
   Версия: 1.4.0 — hero stack + mobile trust fix
═══════════════════════════════════════════ */

/* ─── 1. HERO — ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ ─── */
.hero__bg::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: heroPulse 8s ease-in-out infinite;
}

.hero__bg::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(107, 63, 160, 0.04) 0%, transparent 70%);
    pointer-events: none;
    animation: heroPulse 10s ease-in-out infinite reverse;
}

.hero__stack {
    position: relative;
    width: 100%;
}

@keyframes heroPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%      { transform: scale(1.15); opacity: 1; }
}

@media (min-width: 769px) {
    .hero__stack {
        position: relative;
        width: 100%;
    }

    .hero__trust {
        position: static !important;
        transform: none !important;
        width: auto !important;
        margin-top: 28px;
    }

    .hero__trust-number {
        background: linear-gradient(135deg, #D4A843, #E8C76A);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* ─── 2. ДЛЯ КОГО — GLASSMORPHISM ─── */
.for-whom {
    position: relative;
}

.for-whom::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(107, 63, 160, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.for-whom__card {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 8px 32px rgba(107, 63, 160, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.for-whom__card:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(107, 63, 160, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.for-whom__icon {
    position: relative;
}

.for-whom__icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.12) 0%, transparent 70%);
    animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.2); }
}

/* ─── 3. ШАГИ — TIMELINE ─── */
.steps__grid {
    position: relative;
}

.steps__grid::before {
    content: '';
    position: absolute;
    top: 80px;
    left: calc(16.66% + 20px);
    right: calc(16.66% + 20px);
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(107, 63, 160, 0.2) 20%,
        rgba(212, 168, 67, 0.3) 50%,
        rgba(107, 63, 160, 0.2) 80%,
        transparent
    );
    z-index: 0;
}

@media (max-width: 768px) {
    .steps__grid::before {
        display: none;
    }
}

.steps__number {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #6B3FA0, #8B5FBF) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(107, 63, 160, 0.3);
}

.steps__card {
    position: relative;
}

.steps__card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6B3FA0, #D4A843, #6B3FA0);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.4s;
    animation: shimmer 3s linear infinite;
}

.steps__card:hover::after {
    opacity: 1;
}

@keyframes shimmer {
    to { background-position: 200% 0; }
}

/* ─── 4. ОБО МНЕ — УЛУЧШЕННОЕ ФОТО ─── */
.about-short__photo-frame {
    position: relative;
    overflow: visible !important;
}

.about-short__photo-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(212, 168, 67, 0.3);
    border-radius: 50%;
    animation: decorCircle 6s ease-in-out infinite;
}

.about-short__photo-frame::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(107, 63, 160, 0.2);
    border-radius: 12px;
    transform: rotate(15deg);
    animation: decorSquare 8s ease-in-out infinite;
}

@keyframes decorCircle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(8px, -8px) scale(1.1); }
}

@keyframes decorSquare {
    0%, 100% { transform: rotate(15deg) translate(0, 0); }
    50%      { transform: rotate(25deg) translate(-5px, 5px); }
}

/* ─── 5. БЕГУЩАЯ СТРОКА ─── */
.marquee-facts {
    overflow: hidden;
    padding: 20px 0;
    background: linear-gradient(135deg, #2D1B4E, #3D2B5E);
    position: relative;
}

.marquee-facts__track {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-facts__item {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.marquee-facts__icon {
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

.marquee-facts__highlight {
    color: #D4A843;
    font-weight: 700;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── 6. ОТЗЫВЫ ─── */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '❝';
    position: absolute;
    top: -10px;
    right: 16px;
    font-size: 80px;
    color: rgba(107, 63, 160, 0.05);
    font-family: 'Playfair Display', serif;
    line-height: 1;
    pointer-events: none;
}

.testimonial-card__stars {
    background: linear-gradient(90deg, #D4A843, #E8C76A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
    letter-spacing: 2px;
}

.testimonial-card__result-value {
    background: linear-gradient(135deg, #6B3FA0, #D4A843);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ─── 7. ПРОДУКТЫ — БЕЗ ОБРЕЗКИ ─── */
.product-card--featured {
    position: relative;
}

.product-card--featured .product-card__header {
    position: relative;
    overflow: hidden;
}

.product-card--featured .product-card__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.06), transparent);
    animation: cardShineSlide 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: 20px;
}

@keyframes cardShineSlide {
    0%   { left: -100%; }
    50%  { left: 100%; }
    100% { left: 100%; }
}

/* ─── 8. CTA ГАЙД — БЕЗ ПСЕВДОЭЛЕМЕНТОВ ─── */
/* Фон теперь через отдельный div, псевдоэлементы не нужны */

/* ─── 9. BLOG — HOVER ─── */
.blog-card {
    position: relative;
    overflow: hidden;
}

.blog-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6B3FA0, #D4A843);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover::after {
    transform: scaleX(1);
}

/* ─── 10. РАЗДЕЛИТЕЛИ ─── */
.section--lavender {
    position: relative;
}

.section--lavender::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4A843, transparent);
}

/* ─── 11. HERO — МОБИЛЬНАЯ ВЕРСИЯ ─── */
@media (max-width: 768px) {
    .hero {
        min-height: calc(100svh + 220px);
        min-height: calc(100vh + 220px);
        align-items: flex-start;
        padding-top: 96px;
        position: relative;
        overflow: hidden;
    }

    .hero__bg-image {
        background-image: url('../img/Olesya_bg_mobile.webp') !important;
        background-size: cover !important;
        background-position: top center !important;
        background-repeat: no-repeat !important;
    }

    .hero__bg-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.72) 18%,
            rgba(0, 0, 0, 0.48) 36%,
            rgba(0, 0, 0, 0.22) 54%,
            rgba(0, 0, 0, 0.00) 72%
        ) !important;
    }

    .hero__inner {
        position: relative;
        padding: 18px 0 330px !important;
        align-items: flex-start !important;
    }

    .hero__stack {
        position: relative;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .hero__content {
        width: 100%;
        max-width: 360px !important;
        margin: 0 auto !important;
        text-align: center !important;
        position: relative;
        z-index: 3;
    }

    .hero__title {
        font-size: 30px !important;
        line-height: 1.08 !important;
        margin-bottom: 14px !important;
    }

    .hero__subtitle {
        font-size: 15px !important;
        line-height: 1.45 !important;
        margin-bottom: 14px !important;
    }

    .hero__buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-bottom: 0 !important;
        width: 100% !important;
    }

    .hero__buttons .btn,
    .hero__buttons a,
    .hero__buttons button {
        width: 100% !important;
        min-height: 60px !important;
        font-size: 16px !important;
        border-radius: 999px !important;
    }

    .hero__trust {
        position: absolute !important;
        top: calc(100% + 300px) !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;

        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;

        justify-content: stretch !important;
        align-items: stretch !important;
        z-index: 3;
    }

    .hero__trust-divider {
        display: none !important;
    }

    .hero__trust-item {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: none !important;
        margin: 0 !important;
        padding: 12px 8px !important;
        border-radius: 18px !important;
        background: rgba(122, 78, 191, 0.82) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .hero__trust-number {
        display: block !important;
        font-size: 18px !important;
        line-height: 1.05 !important;
        margin-bottom: 4px !important;
        text-align: center !important;
        background: none !important;
        -webkit-text-fill-color: currentColor !important;
    }

    .hero__trust-text {
        display: block !important;
        font-size: 10px !important;
        line-height: 1.15 !important;
        text-align: center !important;
    }
}

/* ─── ПЛАВНЫЙ СКРОЛЛ ─── */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}