/* why-us.css - Полная версия с обновленным timeline */

/* Блок "Почему мы" */
.why-us-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Анимированный фон */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 152, 70, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

.pulse-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #009846;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.dot-1 { top: 20%; left: 20%; animation-delay: 0s; }
.dot-2 { top: 70%; right: 30%; animation-delay: 1s; }
.dot-3 { bottom: 30%; left: 40%; animation-delay: 0.5s; }

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-30px) rotate(180deg); 
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.5);
    }
}

/* Заголовок секции */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.title-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.section-title {
    margin-bottom: 20px;
    line-height: 1.1;
}

.title-line {
    display: block;
    line-height: 1.2;
    margin-bottom: 10px;
}

.title-line.accent {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #009846);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.02em;
    display: block;
}

.section-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Философия компании */
.philosophy-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
    position: relative;
}

.philosophy-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 152, 70, 0.2);
    color: #009846;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 152, 70, 0.3);
}

.philosophy-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
    line-height: 1.3;
}

.text-reveal {
    display: block;
    color: #ffffff;
    margin-bottom: 10px;
}

.philosophy-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 600px;
}

.philosophy-visual {
    position: relative;
    width: 300px;
    height: 300px;
}

.floating-card {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #009846, #00a84d);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    animation: cardFloat 4s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 152, 70, 0.3);
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 10%;
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 20%;
    left: 40%;
    animation-delay: 3s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Ценностные предложения - 3D карточки */
.value-propositions {
    margin-bottom: 100px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.value-card {
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.value-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.value-card:hover .card-inner {
    transform: rotateY(180deg);
}

.value-card.hovered .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
}

.card-front {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: space-between;
}

.card-back {
    background: linear-gradient(135deg, rgba(0, 152, 70, 0.1), rgba(0, 152, 70, 0.05));
    border: 1px solid rgba(0, 152, 70, 0.3);
    transform: rotateY(180deg);
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 152, 70, 0.1) 0%, transparent 70%);
    animation: glowRotate 8s linear infinite;
}

@keyframes glowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.value-icon-wrapper {
    position: relative;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #009846, #00a84d);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    position: relative;
    z-index: 2;
}

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid #009846;
    border-radius: 50%;
    animation: iconPulse 2s ease-out infinite;
}

@keyframes iconPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.value-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.3;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.value-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.card-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
    transition: opacity 0.3s ease;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    margin-top: auto;
}

.value-card:hover .card-hint {
    opacity: 0;
}

/* Стили для списков с прокруткой */
.value-features {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 330px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #009846 rgba(255, 255, 255, 0.1);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 10;
}

.value-features::-webkit-scrollbar {
    width: 6px;
}

.value-features::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.value-features::-webkit-scrollbar-thumb {
    background: #009846;
    border-radius: 3px;
}

.value-features::-webkit-scrollbar-thumb:hover {
    background: #00a84d;
}

.value-features li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 10px 0 10px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.value-features li:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.value-features li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.value-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #009846;
    font-weight: bold;
    font-size: 1.1rem;
    top: 10px;
}

/* Подход к работе - Timeline */
.approach-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 25px;
    padding: 60px;
    margin-bottom: 60px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.approach-header {
    text-align: center;
    margin-bottom: 50px;
}

.approach-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.approach-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.approach-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #009846, transparent);
    transform: translateX(-50%);
}

.approach-step {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.approach-step.animated {
    opacity: 1;
    transform: translateX(0);
}

.approach-step:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
    transform: translateX(-50px);
}

.approach-step:nth-child(odd).animated {
    transform: translateX(0);
}

.step-indicator {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    z-index: 5;
}

/* КРУПНЫЕ И КРАСИВЫЕ ЦИФРЫ */
.step-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #009846;
    line-height: 1;
    text-shadow: 0 0 30px rgba(0, 152, 70, 0.3);
    background: linear-gradient(135deg, #009846, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.02em;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
}

/* Добавляем декоративный круг вокруг цифры */
.step-number::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: rgba(0, 152, 70, 0.1);
    border-radius: 50%;
    z-index: -1;
    border: 2px solid rgba(0, 152, 70, 0.2);
    animation: numberPulse 3s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

/* Улучшаем точку на линии */
.step-dot {
    width: 24px;
    height: 24px;
    background: #009846;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    animation: dotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(0, 152, 70, 0.7);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

@keyframes dotPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 152, 70, 0.7);
    }
    50% { 
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(0, 152, 70, 0);
    }
}

.step-content {
    flex: 1;
    padding: 0 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.3s;
}

.approach-step.animated .step-content {
    opacity: 1;
    transform: translateY(0);
}

.step-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* CTA блок */
.mission-cta {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 152, 70, 0.1), rgba(0, 152, 70, 0.05));
    border-radius: 30px;
    padding: 80px 60px;
    text-align: center;
    border: 1px solid rgba(0, 152, 70, 0.3);
    overflow: hidden;
}

.cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: #009846;
    border-radius: 50%;
}

.particle:nth-child(1) { top: 20%; left: 10%; width: 6px; height: 6px; }
.particle:nth-child(2) { top: 60%; right: 15%; width: 4px; height: 4px; }
.particle:nth-child(3) { bottom: 30%; left: 20%; width: 8px; height: 8px; }
.particle:nth-child(4) { top: 40%; right: 25%; width: 5px; height: 5px; }
.particle:nth-child(5) { bottom: 20%; right: 10%; width: 7px; height: 7px; }

.mission-content {
    position: relative;
    z-index: 2;
}

.mission-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.title-word {
    display: inline-block;
    color: #ffffff;
}

.title-word.accent {
    background: linear-gradient(135deg, #00ff88, #009846);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #00ff88;
}

.mission-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.mission-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Кнопки */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: #009846;
    color: white;
}

.cta-button.primary:hover {
    background: #00a84d;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 152, 70, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: #009846;
    border-color: #009846;
}

.cta-button.secondary:hover {
    background: rgba(0, 152, 70, 0.1);
    transform: translateY(-2px);
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button.primary:hover .button-shine {
    left: 100%;
}

/* Мобильные взаимодействия */
.value-card.touch-device {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.value-card.touch-device.flipped .card-inner {
    transform: rotateY(180deg);
    z-index: 10;
}

/* Исправления для CTA кнопок */
.mission-cta {
    pointer-events: auto !important;
}

.mission-actions {
    pointer-events: auto !important;
    position: relative;
    z-index: 1000;
}

.mission-actions .cta-button {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 1001;
    transform: none !important;
}

.mission-actions .cta-button * {
    pointer-events: none !important;
}

.cta-button[data-no-magnetic] {
    transform: none !important;
    transition: none !important;
}

.cta-button[data-no-magnetic]:hover {
    transform: translateY(-2px) !important;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .title-line.accent {
        font-size: 3rem;
    }
    
    .philosophy-section {
        gap: 40px;
    }
    
    .philosophy-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .why-us-section {
        padding: 80px 0;
        min-height: auto;
    }
    
    .title-line.accent {
        font-size: 2.5rem;
        letter-spacing: -0.01em;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .philosophy-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        margin-bottom: 60px;
    }
    
    .philosophy-visual {
        order: -1;
        margin: 0 auto;
        width: 250px;
        height: 250px;
    }
    
    .philosophy-title {
        font-size: 2rem;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .value-card {
        height: 420px;
        min-height: 420px;
    }
    
    .value-card:hover .card-inner {
        transform: none;
    }
    
    .value-title {
        min-height: 50px;
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .value-description {
        font-size: 0.9rem;
        line-height: 1.5;
        min-height: 80px;
    }
    
    .value-features {
        max-height: 280px;
    }
    
    .value-features li {
        font-size: 0.85rem;
        padding: 8px 0 8px 24px;
    }
    
    .card-front,
    .card-back {
        padding: 25px 20px;
    }
    
    .approach-section {
        padding: 40px 25px;
    }
    
    .approach-title {
        font-size: 1.8rem;
    }
    
    .approach-step,
    .approach-step:nth-child(odd) {
        flex-direction: column;
        text-align: center;
        margin-bottom: 60px;
    }
    
    .timeline-line {
        left: 50px;
    }
    
    .step-indicator {
        flex-direction: row;
        gap: 30px;
        margin-bottom: 25px;
    }
    
    .step-number {
        font-size: 3rem;
        width: 80px;
        height: 80px;
    }
    
    .step-number::before {
        width: 100px;
        height: 100px;
    }
    
    .step-content {
        padding: 0;
    }
    
    .step-content h4 {
        font-size: 1.3rem;
    }
    
    .step-content p {
        font-size: 1rem;
    }
    
    .mission-cta {
        padding: 50px 30px;
    }
    
    .mission-title {
        font-size: 2rem;
    }
    
    .mission-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .title-line.accent {
        font-size: 2rem;
    }
    
    .philosophy-title {
        font-size: 1.6rem;
    }
    
    .mission-title {
        font-size: 1.8rem;
    }
    
    .value-card {
        height: 400px;
        min-height: 400px;
    }
    
    .value-features {
        max-height: 260px;
    }
    
    .value-title {
        min-height: 45px;
        font-size: 1.1rem;
    }
    
    .value-description {
        font-size: 0.85rem;
        min-height: 70px;
    }
    
    .card-front,
    .card-back {
        padding: 20px 15px;
    }
    
    .mission-cta {
        padding: 40px 20px;
    }
    
    .approach-step {
        padding: 15px;
    }
    
    .step-number {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
    }
    
    .step-number::before {
        width: 90px;
        height: 90px;
    }
    
    .step-indicator {
        gap: 20px;
    }
    
    .step-dot {
        width: 20px;
        height: 20px;
    }
}

/* Ландшафтная ориентация */
@media (max-width: 768px) and (orientation: landscape) {
    .why-us-section {
        padding: 60px 0;
    }
    
    .title-line.accent {
        font-size: 2rem;
    }
    
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .value-card {
        height: 350px;
        min-height: 350px;
    }
    
    .value-features {
        max-height: 200px;
    }
    
    .value-title {
        min-height: 40px;
        font-size: 1.1rem;
    }
    
    .value-description {
        min-height: 60px;
        font-size: 0.8rem;
    }
    
    .approach-step {
        margin-bottom: 50px;
    }
    
    .step-number {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
    }
}

/* Эффект при наведении для десктопа */
@media (min-width: 769px) {
    .approach-step:hover .step-number {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }
    
    .approach-step:hover .step-dot {
        animation-duration: 1s;
    }
}

/* Улучшения для производительности */
.value-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.floating-card {
    transform: translateZ(0);
}

/* Fallback для браузеров без поддержки CSS анимаций */
.no-js .title-line,
.no-js .text-reveal,
.no-js .title-word {
    opacity: 1;
    transform: none;
}

.no-js .value-card {
    opacity: 1;
    transform: none;
}

.no-js .approach-step {
    opacity: 1;
    transform: none;
}

.no-js .step-content {
    opacity: 1;
    transform: none;
}