/**
 * Fullscreen дизайн - одна секция = один экран
 * Плавные переходы между секциями
 */

/* Профессиональные шрифты */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Шрифты */
    --font-primary: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
    
    /* Цвета */
    --color-primary: #8cbf30;
    --color-primary-dark: #6fa024;
    --color-primary-light: #a8d84a;
    --color-primary-glow: rgba(140, 191, 48, 0.15);
    
    /* Нейтральные */
    --color-neutral-50: #fafafa;
    --color-neutral-100: #f5f5f5;
    --color-neutral-200: #e5e5e5;
    --color-neutral-300: #d4d4d4;
    --color-neutral-400: #a3a3a3;
    --color-neutral-500: #737373;
    --color-neutral-600: #525252;
    --color-neutral-700: #404040;
    --color-neutral-800: #262626;
    --color-neutral-900: #171717;
    
    /* Фоны */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-surface: #ffffff;
    
    /* Текст */
    --text-primary: #0a0a0a;
    --text-secondary: #525252;
    --text-tertiary: #737373;
    --text-inverse: #ffffff;
    
    /* Границы */
    --border-light: #e5e5e5;
    --border-medium: #d4d4d4;
    
    /* Тени */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Переходы */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Радиусы */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Темная тема */
[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #171717;
    --bg-surface: #171717;
    
    --text-primary: #fafafa;
    --text-secondary: #d4d4d4;
    --text-tertiary: #a3a3a3;
    --text-inverse: #0a0a0a;
    
    --border-light: #262626;
    --border-medium: #404040;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    height: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-weight: 400;
    overflow: hidden;
    height: 100%;
    position: relative;
}

/* Контейнер для всех секций */
.sections-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Fullscreen секции */
.fullscreen-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 5rem 0 6rem;
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Transition overlay для эффектов */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--color-primary-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    will-change: opacity, transform;
    transform: scale(1);
}

/* Градиентные фоны для секций */
.fullscreen-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, var(--color-primary-glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
    z-index: 0;
}

.fullscreen-section.active::before {
    opacity: 0.3;
}

/* Улучшенная производительность */
.fullscreen-section * {
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Плавные анимации для всех интерактивных элементов */
.card,
.btn,
.section-dot,
.nav-link {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Контейнер контента */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.fullscreen-section .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .container {
        padding: 0 3rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 4rem;
    }
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 5.5vw, 4rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}

h4 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
}

p {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Header - всегда видимый */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.header .container {
    height: auto;
    display: block;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
}

[data-theme="dark"] .header {
    background: rgba(10, 10, 10, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Навигация */
.nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition-base);
    position: relative;
    padding: 0.5rem 0;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: 2px;
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Контролы */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher,
.theme-switcher {
    padding: 0.625rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switcher:hover,
.theme-switcher:hover {
    background: var(--bg-surface);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Боковая навигация по секциям */
.section-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    will-change: transform;
}

.section-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-medium);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    will-change: transform, background;
    transform-style: preserve-3d;
}

.section-dot:hover {
    background: var(--color-primary);
    transform: scale(1.3);
}

.section-dot.active {
    background: var(--color-primary);
    border-color: var(--color-primary-light);
    transform: scale(1.4);
    box-shadow: 0 0 0 4px var(--color-primary-glow);
}

.section-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: var(--bg-surface);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    pointer-events: none;
}

.section-dot:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--text-inverse);
    box-shadow: 0 4px 14px 0 var(--color-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px 0 var(--color-primary-glow);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Карточки */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    will-change: transform, opacity;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.card:hover::before {
    transform: scaleX(1);
}

/* Иконки */
.card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    stroke-width: 2;
    transition: all var(--transition-base);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--color-primary-dark);
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid {
        gap: 2.5rem;
    }
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

.grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Hero контент */
.hero-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Заголовки секций */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: 2px;
}

/* Статистика */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
}

.stat-value {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Формы */
.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
    font-family: inherit;
    line-height: 1.5;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-glow);
    transform: translateY(-1px);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--border-light);
    padding: 1.5rem 0;
    z-index: 999;
}

[data-theme="dark"] .footer {
    background: rgba(23, 23, 23, 0.95);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.footer-section p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-base);
    display: inline-block;
}

.footer-section a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-bottom a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-bottom a:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-xl);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .section-nav {
        right: 1rem;
    }
}

/* Параллакс элементы */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    will-change: transform;
    transform: translateZ(0);
}

/* Улучшенные hover эффекты */
.card:hover {
    transform: translateY(-8px) translateZ(0);
}

.btn:hover {
    transform: translateY(-2px) translateZ(0);
}

/* Анимация появления элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Утилиты */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

