/* ========================================
   PREMIUM ENTERPRISE TYPOGRAPHY SYSTEM
   ======================================== */

/* Подключение премиум шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Премиум шрифты */
    --font-premium-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-premium-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-premium-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Улучшенная типографика */
    --font-size-h1-premium: clamp(3rem, 7vw, 5rem);
    --font-size-h2-premium: clamp(2.25rem, 5vw, 3.5rem);
    --font-size-h3-premium: clamp(1.75rem, 4vw, 2.5rem);
    --font-size-h4-premium: clamp(1.5rem, 3vw, 2rem);
    
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    --letter-spacing-tight: -0.03em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.02em;
}

/* ========================================
   ПЕРЕОПРЕДЕЛЕНИЕ БАЗОВОЙ ТИПОГРАФИКИ
   ======================================== */

body {
    font-family: var(--font-premium-body) !important;
    font-size: clamp(1rem, 1.2vw, 1.125rem) !important;
    font-weight: var(--font-weight-normal) !important;
    line-height: 1.75 !important;
    letter-spacing: 0.01em !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    color: var(--text-primary) !important;
}

/* ========================================
   PREMIUM HEADINGS
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-premium-heading) !important;
    font-weight: var(--font-weight-bold) !important;
    line-height: 1.15 !important;
    letter-spacing: var(--letter-spacing-tight) !important;
    color: var(--text-primary) !important;
    margin-bottom: clamp(1rem, 2vw, 1.5rem) !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
}

h1 {
    font-size: var(--font-size-h1-premium) !important;
    font-weight: var(--font-weight-black) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.04em !important;
    margin-bottom: clamp(1.5rem, 3vw, 2rem) !important;
}

h2 {
    font-size: var(--font-size-h2-premium) !important;
    font-weight: var(--font-weight-extrabold) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem) !important;
}

h3 {
    font-size: var(--font-size-h3-premium) !important;
    font-weight: var(--font-weight-bold) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: clamp(1rem, 2vw, 1.5rem) !important;
}

h4 {
    font-size: var(--font-size-h4-premium) !important;
    font-weight: var(--font-weight-semibold) !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
}

/* ========================================
   PREMIUM TEXT STYLES
   ======================================== */

p {
    font-family: var(--font-premium-body) !important;
    font-size: clamp(1rem, 1.2vw, 1.125rem) !important;
    font-weight: var(--font-weight-normal) !important;
    line-height: 1.8 !important;
    letter-spacing: 0.01em !important;
    color: var(--text-secondary) !important;
    margin-bottom: clamp(1rem, 2vw, 1.5rem) !important;
}

/* Общие стили для всех .hero-title */
.hero-title,
.page-header h1 {
    font-family: var(--font-premium-display) !important;
    font-size: clamp(3rem, 8vw, 5.5rem) !important;
    font-weight: var(--font-weight-black) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.05em !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Специфичные стили для .about-hero .hero-title - белый цвет */
.about-hero .hero-title {
    font-family: var(--font-premium-display) !important;
    font-size: clamp(3rem, 8vw, 5.5rem) !important;
    font-weight: var(--font-weight-black) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.05em !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important; /* Белый цвет для .about-hero .hero-title */
}

.hero-subtitle,
.about-hero .hero-subtitle {
    font-family: var(--font-premium-body) !important;
    font-size: clamp(1.125rem, 2vw, 1.5rem) !important;
    font-weight: var(--font-weight-medium) !important;
    line-height: 1.7 !important;
    letter-spacing: 0.02em !important;
    color: #ffffff !important; /* Белый цвет для hero-subtitle */
}

/* ========================================
   PREMIUM CARDS TEXT
   ======================================== */

.info-card h3,
.team-member h3,
.timeline-content h3 {
    font-family: var(--font-premium-heading) !important;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important;
    font-weight: var(--font-weight-bold) !important;
    line-height: 1.3 !important;
    letter-spacing: -0.02em !important;
}

.info-card p,
.team-member p,
.timeline-content p {
    font-family: var(--font-premium-body) !important;
    font-size: clamp(0.9375rem, 1.1vw, 1.0625rem) !important;
    line-height: 1.75 !important;
}

/* ========================================
   PREMIUM BUTTONS TEXT
   ======================================== */

.btn,
.cta-buttons .btn {
    font-family: var(--font-premium-heading) !important;
    font-size: clamp(0.9375rem, 1.2vw, 1.125rem) !important;
    font-weight: var(--font-weight-semibold) !important;
    letter-spacing: 0.03em !important;
    text-transform: none !important;
}

/* ========================================
   SITE TITLE & LOGO
   ======================================== */

.site-title,
.site-title a {
    font-family: var(--font-premium-display) !important;
    font-weight: var(--font-weight-black) !important;
    letter-spacing: -0.03em !important;
    font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
}

/* ========================================
   NAVIGATION MENU
   ======================================== */

.main-header-menu > .menu-item > a {
    font-family: var(--font-premium-body) !important;
    font-size: clamp(0.875rem, 1vw, 1rem) !important;
    font-weight: var(--font-weight-semibold) !important;
    letter-spacing: 0.02em !important;
}

/* ========================================
   GRADIENT TEXT EFFECTS
   ======================================== */

/* Градиентный текст применяется только к .hero-title, который НЕ находится в .about-hero */
.gradient-text,
.hero-title:not(.about-hero .hero-title),
.site-title a {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-primary-light) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

/* ПРОФЕССИОНАЛЬНОЕ РЕШЕНИЕ: Используем правильный порядок и специфичность */
/* Сначала правило для .about-hero .hero-title (более специфичное) - БЕЛЫЙ ТЕКСТ */
body.page-id-9 .about-hero .hero-title,
.about-hero .hero-title {
    background: none !important;
    background-image: none !important;
    background-size: unset !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    animation: none !important;
}

/* Затем общее правило для .hero-title (менее специфичное) - ГРАДИЕНТНЫЙ ТЕКСТ */
/* ИСКЛЮЧАЕМ .about-hero .hero-title из градиентного текста */
.hero-title:not(.about-hero .hero-title) {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-primary-light) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

/* ========================================
   TEXT SHADOWS FOR DEPTH
   ======================================== */

h1, h2, h3 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero-title,
.page-header h1 {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */

@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }
    
    h2 {
        font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
    }
    
    h3 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }
    
    p {
        font-size: 1rem !important;
    }
}

/* ========================================
   ЗАМЕТНЫЕ ВИЗУАЛЬНЫЕ ЭФФЕКТЫ ENTERPRISE
   ======================================== */

/* Усиленные эффекты для карточек */
.info-card,
.team-member,
.timeline-content,
.mission-block,
.values-block {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%) !important;
    border: 2px solid rgba(144, 193, 64, 0.25) !important;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 4px 8px rgba(144, 193, 64, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.5) !important;
    transform: translateY(0) scale(1) !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative !important;
    overflow: visible !important;
}

.info-card::before,
.team-member::before {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-primary-light)) !important;
    border-radius: inherit !important;
    opacity: 0 !important;
    z-index: -1 !important;
    transition: opacity 0.4s !important;
}

.info-card:hover,
.team-member:hover,
.timeline-content:hover {
    transform: translateY(-15px) scale(1.04) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 5px rgba(144, 193, 64, 0.2),
        0 0 40px rgba(144, 193, 64, 0.4),
        0 0 60px rgba(144, 193, 64, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

.info-card:hover::before,
.team-member:hover::before {
    opacity: 1 !important;
    animation: gradientShift 3s ease infinite !important;
}

/* Усиленные иконки */
.info-icon {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%) !important;
    box-shadow: 
        0 10px 20px rgba(144, 193, 64, 0.4),
        0 0 0 5px rgba(144, 193, 64, 0.15),
        0 0 30px rgba(144, 193, 64, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
    transform: scale(1) rotate(0deg) !important;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

.info-card:hover .info-icon {
    transform: scale(1.2) rotate(10deg) !important;
    box-shadow: 
        0 15px 30px rgba(144, 193, 64, 0.5),
        0 0 0 8px rgba(144, 193, 64, 0.2),
        0 0 50px rgba(144, 193, 64, 0.6),
        inset 0 3px 6px rgba(255, 255, 255, 0.5),
        inset 0 -3px 6px rgba(0, 0, 0, 0.15) !important;
    animation: pulse 2s ease-in-out infinite, rotate 10s linear infinite !important;
}

/* Усиленные кнопки */
.btn,
.cta-buttons .btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%) !important;
    box-shadow: 
        0 6px 20px rgba(144, 193, 64, 0.4),
        0 0 0 3px rgba(144, 193, 64, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(0) scale(1) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
}

.btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent) !important;
    transition: left 0.6s !important;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 
        0 15px 35px rgba(144, 193, 64, 0.5),
        0 0 0 5px rgba(144, 193, 64, 0.25),
        0 0 40px rgba(144, 193, 64, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15) !important;
    animation: glow 2s ease-in-out infinite !important;
}

.btn:hover::before {
    left: 100% !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%) !important;
}

.btn-outline {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px) !important;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 1) !important;
}

/* Hero секция - заметные эффекты */
.about-hero {
    position: relative !important;
    overflow: hidden !important;
}

.about-hero::after {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    right: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(144, 193, 64, 0.2) 0%, transparent 70%) !important;
    animation: rotate 25s linear infinite !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(144, 193, 64, 0.92) 0%, rgba(34, 197, 94, 0.88) 100%) !important;
    backdrop-filter: blur(3px) !important;
    z-index: 1 !important;
}

/* Timeline - заметные эффекты */
.timeline::before {
    width: 5px !important;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-primary) 100%) !important;
    background-size: 100% 200% !important;
    animation: gradientShift 4s ease infinite !important;
    box-shadow: 
        0 0 15px rgba(144, 193, 64, 0.6),
        0 0 30px rgba(144, 193, 64, 0.3) !important;
}

.timeline-year {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%) !important;
    box-shadow: 
        0 10px 25px rgba(144, 193, 64, 0.5),
        0 0 0 5px rgba(255, 255, 255, 0.9),
        0 0 30px rgba(144, 193, 64, 0.7) !important;
    transform: translateX(-50%) scale(1) !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    left: 50% !important;
    position: absolute !important;
}

.timeline-item:hover .timeline-year {
    transform: translateX(-50%) scale(1.15) !important;
    box-shadow: 
        0 15px 35px rgba(144, 193, 64, 0.6),
        0 0 0 8px rgba(255, 255, 255, 0.95),
        0 0 40px rgba(144, 193, 64, 0.9) !important;
    animation: pulse 2s ease-in-out infinite !important;
}

/* Фото команды - заметные эффекты */
.member-photo {
    border: 5px solid rgba(144, 193, 64, 0.4) !important;
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.2),
        0 0 0 5px rgba(144, 193, 64, 0.15),
        0 0 30px rgba(144, 193, 64, 0.3),
        inset 0 0 25px rgba(144, 193, 64, 0.15) !important;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.team-member:hover .member-photo {
    border-color: var(--color-primary) !important;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 0 0 8px rgba(144, 193, 64, 0.25),
        0 0 50px rgba(144, 193, 64, 0.5),
        inset 0 0 40px rgba(144, 193, 64, 0.2) !important;
    transform: scale(1.08) rotate(2deg) !important;
    animation: pulse 3s ease-in-out infinite !important;
}

/* CTA секция - заметные эффекты */
.about-cta {
    position: relative !important;
    overflow: hidden !important;
}

.about-cta::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%) !important;
    animation: rotate 18s linear infinite !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.about-cta::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(144, 193, 64, 0.96) 0%, rgba(34, 197, 94, 0.92) 100%) !important;
    z-index: 0 !important;
}

.about-cta h2,
.about-cta p,
.about-cta .cta-buttons {
    position: relative !important;
    z-index: 1 !important;
}

