@import url("https://fonts.googleapis.com/css2?family=Boldonse&family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Inter:wght@100..900&display=swap");

/* Frame6 Section - Полностью пересобранный премиальный блок */

.frame6-section {
    position: relative;
    min-height: 100vh;
    background: 
        linear-gradient(135deg, 
            #0d1b2a 0%, 
            #1b2838 25%, 
            #2e3c4a 50%, 
            #1b2838 75%, 
            #0d1b2a 100%),
        radial-gradient(ellipse at 20% 80%, 
            rgba(129, 199, 132, 0.1) 0%, 
            transparent 50%),
        radial-gradient(ellipse at 80% 20%, 
            rgba(76, 175, 80, 0.08) 0%, 
            transparent 50%),
        radial-gradient(ellipse at 50% 50%, 
            rgba(244, 232, 176, 0.05) 0%, 
            transparent 70%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Фоновые элементы */
.frame6-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, 
            rgba(129, 199, 132, 0.03) 0%, 
            transparent 50%),
        radial-gradient(circle at 70% 70%, 
            rgba(76, 175, 80, 0.02) 0%, 
            transparent 50%);
    pointer-events: none;
}

.frame6-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.6;
}

.frame6-particles::before,
.frame6-particles::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(129, 199, 132, 0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(76, 175, 80, 0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(244, 232, 176, 0.8), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(129, 199, 132, 0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(76, 175, 80, 0.8), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: floatParticles 20s linear infinite;
}

.frame6-particles::after {
    background-image: 
        radial-gradient(1px 1px at 50px 20px, rgba(244, 232, 176, 0.6), transparent),
        radial-gradient(2px 2px at 80px 60px, rgba(129, 199, 132, 0.8), transparent),
        radial-gradient(1px 1px at 120px 10px, rgba(76, 175, 80, 0.6), transparent),
        radial-gradient(2px 2px at 150px 90px, rgba(244, 232, 176, 0.8), transparent);
    background-size: 150px 80px;
    animation: floatParticles2 25s linear infinite reverse;
}

@keyframes floatParticles {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

@keyframes floatParticles2 {
    0% { transform: translateY(-80px); }
    100% { transform: translateY(0px); }
}

/* Основной контент */
.frame6-content {
    width: 100%;
    padding: 9vw 1rem;
    position: relative;
    z-index: 3;
}

/* Заголовок */
.frame6-header {
    text-align: center;
    margin-bottom: 3rem;
}

.frame6-title {
    font-family: "Boldonse", serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #f4e8b0;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 
        0 2px 15px rgba(244, 232, 176, 0.8), 
        0 0 25px rgba(244, 232, 176, 0.6),
        0 0 50px rgba(244, 232, 176, 0.3);
    position: relative;
    line-height: 0.9;
}

.frame6-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        #81C784, 
        #4CAF50, 
        #81C784, 
        transparent);
    box-shadow: 
        0 0 20px rgba(129, 199, 132, 0.8),
        0 0 40px rgba(76, 175, 80, 0.4);
    border-radius: 2px;
}

.frame6-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #b0bec5;
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* Сетка карточек */
.frame6-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem 23rem;
    position: relative;
    z-index: 2;
    justify-content: space-around;
    align-items: start;
    margin: 20px 0;
}

/* Карточки */
.frame6-card {
    background: 
        linear-gradient(145deg, 
            rgba(13, 27, 42, 0.95) 0%, 
            rgba(27, 40, 56, 0.92) 25%, 
            rgba(46, 60, 74, 0.95) 50%, 
            rgba(27, 40, 56, 0.92) 75%, 
            rgba(13, 27, 42, 0.95) 100%),
        radial-gradient(ellipse at 30% 20%, 
            rgba(129, 199, 132, 0.08) 0%, 
            transparent 40%),
        radial-gradient(ellipse at 70% 80%, 
            rgba(76, 175, 80, 0.06) 0%, 
            transparent 40%);
    backdrop-filter: blur(25px) saturate(1.5);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(129, 199, 132, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 0 30px rgba(27, 94, 32, 0.15);
    border: 1px solid rgba(129, 199, 132, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    will-change: transform, box-shadow;
}

.frame6-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.05) 0%, 
            transparent 50%),
        radial-gradient(circle at 20% 20%, 
            rgba(129, 199, 132, 0.1) 0%, 
            transparent 50%),
        radial-gradient(circle at 80% 80%, 
            rgba(76, 175, 80, 0.08) 0%, 
            transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 20px;
}

.frame6-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(129, 199, 132, 0.3), 
        rgba(76, 175, 80, 0.2), 
        rgba(244, 232, 176, 0.1), 
        rgba(129, 199, 132, 0.3));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}

.frame6-card:hover {
    transform: translateY(-8px);
    background: 
        linear-gradient(145deg, 
            rgba(13, 27, 42, 0.98) 0%, 
            rgba(27, 40, 56, 0.95) 25%, 
            rgba(46, 60, 74, 0.98) 50%, 
            rgba(27, 40, 56, 0.95) 75%, 
            rgba(13, 27, 42, 0.98) 100%),
        radial-gradient(ellipse at 30% 20%, 
            rgba(129, 199, 132, 0.12) 0%, 
            transparent 40%),
        radial-gradient(ellipse at 70% 80%, 
            rgba(76, 175, 80, 0.1) 0%, 
            transparent 40%);
    box-shadow: 
        0 35px 70px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(129, 199, 132, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 0 40px rgba(27, 94, 32, 0.25),
        0 0 60px rgba(129, 199, 132, 0.1);
    border-color: rgba(129, 199, 132, 0.5);
}

.frame6-card:hover::before {
    opacity: 1;
}

.frame6-card:hover::after {
    opacity: 0.6;
}

/* Текст карточек */
.frame6-card p {
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    color: #b0bec5;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: justify;
}

/* Выделенный текст */
.frame6-card .highlight {
    color: #81C784;
    font-weight: 600;
    font-style: italic;
    text-align: center;
    padding: 1.2rem;
    background: 
        linear-gradient(135deg, 
            rgba(76, 175, 80, 0.08) 0%, 
            rgba(129, 199, 132, 0.12) 50%, 
            rgba(76, 175, 80, 0.08) 100%),
        radial-gradient(ellipse at 50% 50%, 
            rgba(244, 232, 176, 0.05) 0%, 
            transparent 70%);
    border-radius: 12px;
    border-left: 3px solid #4CAF50;
    margin-top: 1.5rem;
    box-shadow: 
        0 4px 15px rgba(76, 175, 80, 0.15),
        inset 0 1px 0 rgba(129, 199, 132, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(129, 199, 132, 0.2);
}

/* Изображение рук */
.hands {
    position: absolute;
    left: 50%;
    bottom: -15%;
    height: 60%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 0.6;
    filter: 
        drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4))
        brightness(0.8)
        contrast(1.2);
    transition: all 0.6s ease;
    pointer-events: none;
    display: none;
}

.frame6-section:hover .hands {
    opacity: 0.8;
    filter: 
        drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6))
        brightness(1)
        contrast(1.1);
}

/* Анимации появления */
.frame6-section.animate-in .frame6-title {
    animation: slideInDown 0.8s ease-out;
}

.frame6-section.animate-in .frame6-subtitle {
    animation: slideInDown 0.8s ease-out 0.2s both;
}

.frame6-section.animate-in .frame6-card {
    animation: slideInUp 0.8s ease-out 0.4s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 1024px) {
    .frame6-content {
        padding: 3rem 1.5rem;
    }
    
    .frame6-grid {
        gap: 2rem;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .frame6-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .frame6-content {
        padding: 2.5rem 1rem;
    }
    
    .frame6-grid {
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }
    
    .frame6-card {
        padding: 1.8rem 1.2rem;
    }
    
    .frame6-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .frame6-subtitle {
        font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    }
    
    .hands {
        height: 50%;
        bottom: -10%;
    }
}

@media (max-width: 480px) {
    .frame6-content {
        padding: 2rem 0.8rem;
    }
    
    .frame6-card {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .frame6-title {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
        letter-spacing: 1px;
    }
    
    .frame6-subtitle {
        font-size: clamp(0.8rem, 2vw, 1rem);
    }
    
    .hands {
        height: 40%;
        bottom: -8%;
    }
} 