/* components\hero\hero.css */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    overflow: hidden;
    background-color: #fff;
    
    /* ТЕХНИЧЕСКАЯ СЕТКА (Сделал чуть четче - 0.05) */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* АНИМИРОВАННОЕ ПЯТНО 1 (Желтое) */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 214, 51, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: blob-float 15s infinite alternate ease-in-out;
}

/* АНИМИРОВАННОЕ ПЯТНО 2 (Голубое) */
.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: blob-float-2 20s infinite alternate-reverse ease-in-out;
}

/* ВАЖНО: Поднимаем контент над фоном */
.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 580px;
}

.hero-content h1 {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.highlight {
    position: relative;
    white-space: nowrap;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: -5px;
    width: 105%;
    height: 30%;
    background: var(--primary);
    z-index: -1;
    opacity: 0.6;
    border-radius: 4px;
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.trust-block {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.avatars-group {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #fff;
    background-color: #e5e7eb;
    margin-left: -12px;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar:first-child { margin-left: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.trust-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.trust-text span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: #111;
    border-radius: 50px;
    border: 10px solid #111;
    position: relative;
    box-shadow: 
        0 0 0 2px #333,
        0 40px 80px -20px rgba(0,0,0,0.3);
    overflow: hidden;
    transform: rotate(-2deg);
    transition: transform 0.5s ease;
    flex-shrink: 0;
    z-index: 2;
    text-align: left; 
}

.phone-mockup:hover {
    transform: rotate(0deg) scale(1.01);
}

.notch {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.notch::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 50%;
}

.notch::after {
    content: '';
    width: 46px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 10px;
}

.screen {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 40px;
}

.status-bar {
    height: 44px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #000;
    padding-top: 8px;
}

.app-header {
    padding: 8px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-logo-img {
    height: 24px;
    width: auto;
    display: block;
}

.app-feed {
    flex: 1;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto; 
    scrollbar-width: none; 
}
.app-feed::-webkit-scrollbar { 
    display: none; 
}

.feed-post {
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    flex-shrink: 0; 
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.u-avatar-lg {
    width: 36px;
    height: 36px;
    background: #e5e7eb;
    border-radius: 50%;
    flex-shrink: 0;
}

.u-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; 
}

.u-info h4 {
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.u-info p {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
    line-height: 1.2;
}

.post-visual {
    height: 180px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.4) 100%),
                url('../../assets/hero.png');
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    overflow: hidden;
}

.workout-tag {
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.rec-dot {
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff4757;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.post-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    font-size: 16px;
    color: #111;
}

.post-text-content {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
    text-align: left; 
}

.trainer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #111;
}

.app-tab-bar {
    height: 60px;
    background: #fff;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 8px;
    flex-shrink: 0;
}

.tab-item {
    font-size: 18px;
    color: #9ca3af;
    position: relative;
}

.tab-item.active {
    color: #111;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
}

.tab-btn-add {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #111;
    box-shadow: 0 4px 10px rgba(255, 214, 51, 0.4);
}

.float-card {
    position: absolute;
    background: #fff;
    padding: 12px 18px;
    border-radius: 16px;
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 30;
    animation: float 6s ease-in-out infinite;
}

.float-1 { top: 15%; left: -80px; }
.float-2 { bottom: 20%; right: -60px; animation-delay: 2s; }

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.icon-yellow { background: #fffbeb; color: #d97706; }
.icon-green { background: #ecfdf5; color: #059669; }

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

@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-20px, 40px) scale(1.1); }
}

@keyframes blob-float-2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -30px) scale(1.15); }
}

@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
        height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .trust-block {
        justify-content: center;
        width: 100%;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 0;
        transform: scale(0.9); 
    }

    .float-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 90px;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
    }
    
    .post-visual {
        height: 140px;
    }
    
    .feed-post {
        padding: 10px;
    }
}