/* ============================================
   LUNARO - Premium Web Agency
   Modern Dark Theme with Advanced Animations
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --bg-dark: #050508;
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f15;
    --bg-elevated: #141420;
    --bg-card: rgba(20, 20, 32, 0.5);
    --bg-glass: rgba(255, 255, 255, 0.02);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    
    --accent-primary: #7c3aed;
    --accent-secondary: #a855f7;
    --accent-tertiary: #c084fc;
    --accent-pink: #ec4899;
    --accent-blue: #3b82f6;
    
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
    --gradient-text: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --gradient-glow: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
    
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --section-gap: 160px;
    --container-width: 1280px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --duration-fast: 0.2s;
    --duration-base: 0.4s;
    --duration-slow: 0.8s;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    --header-height: 80px;
}

/* Large screens (2K, 4K) — ограничение ширины для читаемости */
@media (min-width: 1920px) {
    .container {
        max-width: min(1400px, 85vw);
    }
}

@media (min-width: 2560px) {
    .container {
        max-width: min(1600px, 80vw);
    }
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Не задаём height: 100% у html/body — иначе нативный скролл Safari (iOS) работает некорректно */
html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    min-width: 320px;
}

/* Обёртка для GSAP ScrollSmoother (плавный скролл) */
#smooth-wrapper {
    position: relative;
    overflow: hidden;
}

#smooth-content {
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Мобильные: без ScrollSmoother — нативный скролл, без дрожания элементов */
@media (max-width: 768px) {
    #smooth-wrapper {
        overflow: visible;
    }
    #smooth-content {
        will-change: auto;
    }
    /* Уменьшает дергание при смене направления скролла на iOS */
    html, body {
        overscroll-behavior-y: none;
        -webkit-overflow-scrolling: touch;
    }
}


/* Предотвращение переполнения в grid/flex */
img, video {
    max-width: 100%;
    height: auto;
}

/* Перенос длинных слов */
p, .project-description, .service-desc, .section-desc {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Noise Texture */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Custom Cursor */
.cursor-follower {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .cursor-follower {
        display: block;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
    }
    
    .cursor-dot {
        position: fixed;
        width: 8px;
        height: 8px;
        background: var(--accent-primary);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
    }
    
    .cursor-outline {
        position: fixed;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(124, 58, 237, 0.5);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: transform 0.15s ease-out, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
    }
    
    body:has(a:hover) .cursor-dot,
    body:has(button:hover) .cursor-dot {
        width: 12px;
        height: 12px;
        background: var(--accent-secondary);
    }
    
    body:has(a:hover) .cursor-outline,
    body:has(button:hover) .cursor-outline {
        width: 60px;
        height: 60px;
        border-color: var(--accent-secondary);
    }
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out-expo);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    position: relative;
    z-index: 2;
    display: flex;
    transition: transform var(--duration-base) var(--ease-out-expo);
}

.btn:hover .btn-icon {
    transform: translate(3px, -3px);
}

.btn-arrow {
    display: flex;
    opacity: 0.7;
    transition: all var(--duration-base) var(--ease-out-expo);
}

.btn:hover .btn-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.btn-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover .btn-shine {
    transform: translateX(100%);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-white {
    background: white;
    color: var(--bg-dark);
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-ghost-white {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 15px;
}

.btn-xl {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* Кнопки: адаптивные размеры */
@media (max-width: 768px) {
    .btn {
        padding: 12px 22px;
        font-size: 14px;
        gap: 8px;
    }
    
    .btn-lg {
        padding: 14px 26px;
        font-size: 14px;
    }
    
    .btn-xl {
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 11px 20px;
        font-size: 13px;
        gap: 6px;
    }
    
    .btn-lg {
        padding: 12px 22px;
        font-size: 13px;
    }
    
    .btn-xl {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--duration-base) var(--ease-out-expo);
}

.header.scrolled {
    padding: 12px 0;
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(20px);
}

@media (max-width: 768px) {
    .header.scrolled {
        backdrop-filter: none;
        background: rgba(5, 5, 8, 0.97);
    }
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    width: 100%;
    max-width: 100px;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 480px) {
    .logo-img {
        max-width: 80px;
    }
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    position: relative;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    padding: 12px 24px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    gap: 5px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mobile-menu-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
}

.mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active {
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu — минималистичный и современный */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 24px 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 320px;
}

.mobile-nav-links li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-links li:last-child {
    border-bottom: none;
}

.mobile-nav-links a {
    display: block;
    padding: 18px 20px;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.mobile-nav-links a:active {
    background: rgba(255, 255, 255, 0.06);
}

.mobile-menu .btn {
    margin-top: 32px;
    background: var(--text-primary);
    color: var(--bg-dark);
    border: none;
}

.mobile-menu .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 480px) {
    .mobile-nav-links a {
        font-size: 16px;
        padding: 16px 20px;
    }
}

@media (max-width: 992px) {
    .nav-links, .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 0 80px;
    overflow: hidden;
    background: var(--bg-dark);
}

/* Neural Network Canvas Background */
.neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-height: 100svh;
    min-height: 100vh;
    overflow: hidden;
    /* Fallback gradient for when WebGL is not available */
    background: 
        radial-gradient(ellipse at 70% 30%, rgba(124, 58, 237, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(236, 72, 153, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 60%),
        var(--bg-dark);
}

.neural-canvas canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover;
}

/* Gradient overlay on top of neural network */
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: 
        linear-gradient(to bottom, rgba(5, 5, 8, 0.2) 0%, transparent 20%),
        linear-gradient(to top, rgba(5, 5, 8, 0.9) 0%, transparent 35%),
        linear-gradient(to right, rgba(5, 5, 8, 0.3) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(44px, 7vw, 76px);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.title-line {
    display: block;
}

.hero-title em {
    font-style: normal;
}

.hero-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-metrics {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 48px;
    margin-top: 72px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.metric-label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-divider {
    width: 1px;
    height: 48px;
    background: var(--border-subtle);
}

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
    transition-delay: var(--delay, 0s);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero: CSS-анимация при загрузке — без ожидания JS, плавно */
@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .reveal-up {
    opacity: 0;
    transform: translateY(16px);
    animation: heroReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.hero .hero-title .title-line:nth-child(1) { animation-delay: 0s; }
.hero .hero-title .title-line:nth-child(2) { animation-delay: 0.06s; }
.hero .hero-description { animation-delay: 0.12s; }
.hero .hero-actions { animation-delay: 0.18s; }
.hero .hero-metrics { animation-delay: 0.24s; }

@media (max-width: 1024px) {
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-title {
        font-size: clamp(36px, 6vw, 56px);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
    }
    .neural-canvas {
        min-height: 100svh;
        min-height: 100dvh;
    }
    
    .hero-title {
        font-size: clamp(32px, 8vw, 44px);
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-metrics {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-top: 40px;
    }
    
    .metric-divider {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .metric-value {
        font-size: 36px;
    }
    
    .metric-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 50px;
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .hero-title {
        font-size: clamp(28px, 9vw, 36px);
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .hero-metrics {
        gap: 16px;
        margin-top: 32px;
    }
    
    .metric-value {
        font-size: 32px;
    }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
    padding: 32px 0;
    background: var(--bg-primary);
    overflow: hidden;
}

.marquee {
    position: relative;
    width: 100%;
}

.marquee-track {
    display: flex;
    width: fit-content;
    animation: marquee 25s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-right: 32px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .marquee-content {
        gap: 20px;
        padding-right: 20px;
    }
    
    .marquee-item {
        font-size: 12px;
    }
}

.marquee-dot {
    color: var(--accent-primary);
    font-size: 8px;
    flex-shrink: 0;
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: var(--section-gap) 0;
    position: relative;
}

@media (max-width: 1024px) {
    section {
        padding: 100px 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }
}

@media (max-width: 360px) {
    section {
        padding: 48px 0;
    }
}

.section-header {
    max-width: 600px;
    margin-bottom: 64px;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 48px;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 36px;
    }
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(36px, 5vw, 52px);
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    background: var(--bg-primary);
}

.services .section-header {
    max-width: 500px;
}

.services-grid {
    display: grid;
    gap: 16px;
}

.service-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
}

.service-number {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-secondary);
    font-family: monospace;
}

.service-content {
    position: relative;
}

.service-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.service-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 500px;
}

.service-tags {
    display: flex;
    gap: 12px;
}

.service-tags span {
    font-size: 12px;
    color: var(--text-tertiary);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-full);
}

.service-visual {
    position: relative;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-lg);
}

.service-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--accent-secondary);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px;
    }
    
    .service-number {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 28px;
        opacity: 0.7;
        line-height: 1;
    }
    
    .service-content {
        padding-right: 44px;
    }
    
    .service-visual {
        display: none;
    }
    
    .service-title {
        font-size: 22px;
    }
    
    .service-desc {
        font-size: 14px;
    }
    
    .service-tags {
        gap: 8px;
    }
    
    .service-tags span {
        font-size: 11px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 20px;
    }
    
    .service-number {
        font-size: 24px;
        top: 18px;
        right: 18px;
    }
    
    .service-content {
        padding-right: 38px;
    }
    
    .service-title {
        font-size: 20px;
    }
}

/* ============================================
   WORKS / PORTFOLIO
   ============================================ */
.works {
    background: var(--bg-dark);
    padding-bottom: 100px;
}

.works .section-header {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.project-showcase {
    margin-bottom: 60px;
}

.project-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.project-card.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.project-card.reverse .project-media {
    order: 2;
}

.project-card.reverse .project-info {
    order: 1;
}

.project-media {
    position: relative;
}

/* Device Mockups - ноутбук, планшет, телефон */
.device-mockups {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    min-height: 320px;
    padding: 20px 0;
}

.device {
    position: relative;
    z-index: 1;
}

.device-frame {
    position: relative;
}

.device-screen {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.device-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ноутбук */
.device-laptop {
    z-index: 3;
}

.device-laptop .device-frame {
    max-width: 420px;
}

.device-laptop .device-screen {
    border-radius: 12px 12px 0 0;
    aspect-ratio: 16 / 10;
}

.device-laptop .device-base {
    height: 14px;
    margin: 0 20px;
    background: linear-gradient(180deg, #1a1a24 0%, #0d0d12 100%);
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.device-laptop .device-base::before {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    margin: 4px auto 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Планшет */
.device-tablet {
    z-index: 2;
    margin: 0 -30px -40px 0;
}

.device-tablet .device-frame {
    max-width: 260px;
}

.device-tablet .device-screen {
    border-radius: 16px;
    aspect-ratio: 4 / 3;
}

.device-tablet .device-screen img {
    object-fit: contain;
}

/* Телефон */
.device-phone {
    z-index: 2;
    margin: 0 0 -20px -40px;
}

.device-phone .device-frame {
    max-width: 160px;
}

.device-phone .device-screen {
    border-radius: 24px;
    aspect-ratio: 9 / 19;
}

.device-phone .device-screen img {
    object-fit: contain;
}

.project-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.project-glow.glow-pink {
    background: var(--accent-pink);
}

.project-info {
    padding: 20px 0;
    min-width: 0;
}

.project-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.project-meta span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-year {
    color: var(--text-tertiary);
}

.project-type {
    color: var(--accent-secondary);
}

.project-title {
    font-size: 36px;
    margin-bottom: 16px;
}

.project-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    min-width: 0;
}

@media (max-width: 600px) {
    .project-description {
        font-size: 15px;
    }
}

.project-results {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 480px) {
    .project-results {
        gap: 16px 24px;
    }
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-secondary);
}

.result-label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tags span {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-secondary);
}

.works-cta {
    padding-top: 80px;
}

.works-cta-inner {
    position: relative;
    text-align: center;
    padding: 56px 40px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(236, 72, 153, 0.04) 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.works-cta-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
    opacity: 0.6;
}

.works-cta-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-secondary);
    margin-bottom: 20px;
}

.works-cta-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.works-cta-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 28px 0;
}

.works-cta-btn {
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
}

.works-cta-btn:hover {
    box-shadow: 0 8px 36px rgba(124, 58, 237, 0.5);
}

@media (max-width: 768px) {
    .works-cta-inner {
        padding: 40px 24px;
    }
}

@media (max-width: 900px) {
    .project-card,
    .project-card.reverse {
        grid-template-columns: 1fr;
    }
    
    .project-card.reverse .project-media,
    .project-card.reverse .project-info {
        order: unset;
    }
    
    .project-title {
        font-size: 28px;
    }
    
    .device-mockups {
        min-height: 260px;
        padding: 16px 0;
    }
    
    .device-laptop .device-frame {
        max-width: 320px;
    }
    
    .device-tablet {
        margin: 0 -20px -30px 0;
    }
    
    .device-tablet .device-frame {
        max-width: 180px;
    }
    
    .device-phone {
        margin: 0 0 -15px -30px;
    }
    
    .device-phone .device-frame {
        max-width: 110px;
    }
}

@media (max-width: 600px) {
    .device-tablet {
        display: none;
    }
    
    .device-mockups {
        min-height: 220px;
    }
    
    .device-laptop .device-frame {
        max-width: 280px;
    }
    
    .device-phone {
        margin: 0 0 -10px -25px;
    }
    
    .device-phone .device-frame {
        max-width: 95px;
    }
}

/* ============================================
   PROCESS - BENTO GRID
   ============================================ */
.process {
    background: var(--bg-primary);
    overflow: hidden;
}

.section-header-center {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Bento Grid Layout */
.process-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    position: relative;
}

/* Process Item Base Styles */
.process-item {
    position: relative;
    padding: 32px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(40px);
}

.process-item.revealed {
    opacity: 1;
    transform: translateY(0);
    transition-delay: var(--delay, 0s);
}

/* Background glow effect */
.process-item-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(124, 58, 237, 0.15) 0%,
        transparent 70%
    );
}

/* Content layout */
.process-item-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Large gradient number */
.process-number {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(236, 72, 153, 0.2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    letter-spacing: -0.05em;
}

/* Badge */
.process-badge {
    display: inline-flex;
    padding: 6px 12px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-secondary);
    margin-bottom: 12px;
    width: fit-content;
}

.process-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.process-info p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Meta info */
.process-meta {
    margin-top: auto;
    padding-top: 20px;
}

.process-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-secondary);
    padding: 8px 14px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 100px;
}

.process-time svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent-secondary);
}

/* Floating icon */
.process-icon-float {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 14px;
}

.process-icon-float svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-secondary);
}

/* Launch icon special effect */
.process-icon-launch svg {
    fill: rgba(124, 58, 237, 0.2);
}

/* Grid positions */
.process-item-1 {
    grid-column: 1;
    grid-row: 1;
}

.process-item-2 {
    grid-column: 2;
    grid-row: 1;
}

.process-item-3 {
    grid-column: 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
}

.process-item-3 .process-number {
    font-size: 96px;
}

.process-item-4 {
    grid-column: 1 / 3;
    grid-row: 2;
}

.process-item-4 .process-item-content {
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.process-item-4 .process-number {
    font-size: 96px;
    flex-shrink: 0;
}

.process-item-4 .process-info {
    flex: 1;
}

.process-item-4 .process-meta {
    margin-top: 0;
    padding-top: 0;
    flex-shrink: 0;
}

/* Code decoration for development step */
.process-decoration {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0.3;
}

.code-line {
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    border-radius: 2px;
}

.code-line:nth-child(1) { width: 60px; }
.code-line:nth-child(2) { width: 45px; }
.code-line:nth-child(3) { width: 75px; }

/* Connecting lines SVG */
.process-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.process-line-path {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 1;
}

@media (max-width: 1024px) {
    .process-lines { display: none; }
}

/* Responsive */
@media (max-width: 1024px) {
    .process-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto;
    }
    
    .process-item-1 {
        grid-column: 1;
        grid-row: 1;
    }
    
    .process-item-2 {
        grid-column: 2;
        grid-row: 1;
    }
    
    .process-item-3 {
        grid-column: 1;
        grid-row: 2;
    }
    
    .process-item-3 .process-number {
        font-size: 72px;
    }
    
    .process-item-4 {
        grid-column: 2;
        grid-row: 2;
    }
    
    .process-item-4 .process-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .process-item-4 .process-number {
        font-size: 72px;
    }
    
    .process-number {
        font-size: 56px;
    }
}

@media (max-width: 640px) {
    .process-bento {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .process-item {
        padding: 24px;
    }
    
    .process-item-1,
    .process-item-2,
    .process-item-3,
    .process-item-4 {
        grid-column: 1;
        grid-row: auto;
    }
    
    .process-item-4 .process-item-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .process-number {
        font-size: 48px;
    }
    
    .process-item-3 .process-number,
    .process-item-4 .process-number {
        font-size: 48px;
    }
    
    .process-info h3 {
        font-size: 20px;
    }
    
    .process-decoration {
        display: none;
    }
}

/* ============================================
   О НАС — Layered Content Switching
   .about-wrapper 100vh, слои в одном месте (absolute)
   ============================================ */
.about-section {
    position: relative;
    background: var(--bg-secondary);
    overflow: hidden;
}

/* 100vh — fallback; 100svh — стабильная высота при скрытии адресной строки iOS */
.about-section.about-pinned {
    height: calc(100vh - var(--header-height) + 13px);
    height: calc(100svh - var(--header-height) + 13px);
    min-height: calc(100vh - var(--header-height) + 13px);
    min-height: calc(100svh - var(--header-height) + 13px);
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.about-section.about-pinned .about-wrapper {
    height: calc(100vh - var(--header-height) + 13px);
    height: calc(100svh - var(--header-height) + 13px);
}

@supports (height: 100dvh) {
    .about-section.about-pinned {
        height: calc(100dvh - var(--header-height) + 13px);
        min-height: calc(100dvh - var(--header-height) + 13px);
    }
    .about-section.about-pinned .about-wrapper {
        height: calc(100dvh - var(--header-height) + 13px);
    }
}

@supports (height: 100svh) {
    @media (max-width: 768px) {
        .about-section.about-pinned {
            height: calc(100svh - var(--header-height) + 13px);
            min-height: calc(100svh - var(--header-height) + 13px);
        }
        .about-section.about-pinned .about-wrapper {
            height: calc(100svh - var(--header-height) + 13px);
        }
    }
}

.about-pin-spacer {
    height: 0;
    pointer-events: none;
}

.about-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.about-bg-spot {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
}

.about-bg-spot-1 {
    width: 480px;
    height: 480px;
    background: var(--accent-primary);
    top: -120px;
    right: -100px;
}

.about-bg-spot-2 {
    width: 360px;
    height: 360px;
    background: var(--accent-pink);
    bottom: -100px;
    left: -80px;
}

.about-bg-shape {
    position: absolute;
    width: 60%;
    max-width: 600px;
    height: 400px;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, transparent 50%, rgba(236, 72, 153, 0.04) 100%);
    border-radius: 40% 0 0 40%;
    pointer-events: none;
}

/* Creative Path — извилистая линия с «живым» свечением */
.about-line-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
    filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.5))
            drop-shadow(0 0 24px rgba(236, 72, 153, 0.25));
}

.about-line-path {
    fill: none;
    stroke-width: 0.4;
    stroke-dasharray: none;
}

@media (max-width: 768px) {
    .about-line-svg {
        filter: none;
        opacity: 0.85;
    }
}


/* Wrapper — высота экрана минус хедер (100dvh для мобильных) */
.about-wrapper {
    position: static;
    z-index: 1;
    height: calc(100vh - var(--header-height) + 13px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 24px 48px;
}

.about-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 150px;
    margin-bottom: 34px;
}

.about-header .about-section-num,
.about-header .about-divider {
    display: none;
}

.about-divider {
    width: 24px;
    height: 1px;
    background: var(--border-light);
}

.about-section-num {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
}

.about-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-secondary);
}

/* Stage — flex-контейнер */
.about-stage {
    position: static;
    flex: 1;
    width: 100%;
    min-height: 0;
    max-width: 720px;
}

/* Планшеты и десктоп: слайды ровно по центру блока (относительно wrapper) */
@media (min-width: 769px) {
    .about-section.about-pinned .about-wrapper {
        position: relative;
    }
    .about-section.about-pinned .about-stage {
        position: static;
    }
    .about-section.about-pinned .about-layer {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* will-change только на мобильных — на десктопе может конфликтовать с pin+ScrollSmoother */
.about-section.about-pinned .about-header,
.about-section.about-pinned [data-about-layer] {
    will-change: transform;
}
@media (min-width: 769px) {
    .about-section.about-pinned .about-header,
    .about-section.about-pinned [data-about-layer] {
        will-change: auto;
    }
}

/* Layer — на 10% выше середины относительно #why */
.about-layer {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 680px;
    text-align: center;
    will-change: transform, opacity;
    opacity: 0;
}

.about-layer-num {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}

.about-layer-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    margin: 0 0 20px 0;
}

.about-layer-title .char {
    display: inline-block;
}

.about-layer-title .gradient-text,
.about-layer-desc .gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-layer-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 28px 0;
}

.about-tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
}

.about-tech-tag {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.about-benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.about-benefits-list li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.about-benefits-list li:last-child {
    border-bottom: none;
}

.about-cta {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .about-wrapper {
        padding: 24px 20px 60px;
        position: relative;
    }
    .about-header {
        margin-top: 80px;
        margin-bottom: 20px;
        z-index: 2;
        position: relative;
        will-change: transform;
    }
    .about-stage {
        z-index: 1;
        position: static;
        flex: none;
        height: 0;
        min-height: 0;
        overflow: visible;
    }
    .about-layer {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        will-change: transform;
    }
    .about-layer-title {
        font-size: clamp(28px, 6vw, 40px);
    }
    .about-benefits-list {
        text-align: center;
    }
    .about-benefits-list li {
        text-align: center;
    }
}

/* На узких/низких экранах (например Samsung S21) — надпись «О нас» выше, слайды не перекрывают */
@media (max-width: 768px) and (max-height: 700px) {
    .about-wrapper {
        padding-top: 16px;
    }
    .about-header {
        margin-bottom: 12px;
    }
}

/* Мобильные: креативный карточный layout + анимации появления */
@media (max-width: 768px) {
    .about-section.about-static {
        height: auto;
        min-height: 0;
    }
    .about-section.about-static .about-wrapper {
        height: auto;
        min-height: 0;
        overflow: visible;
        padding: 32px 20px 64px;
    }
    .about-section.about-static .about-header {
        margin-top: 24px;
        margin-bottom: 28px;
    }
    .about-section.about-static .about-label {
        position: relative;
    }
    .about-section.about-static .about-label::after {
        content: '';
        display: block;
        width: 32px;
        height: 2px;
        margin: 8px auto 0;
        background: linear-gradient(90deg, var(--accent-primary), var(--accent-pink));
        border-radius: 1px;
    }
    .about-section.about-static .about-stage {
        display: flex;
        flex-direction: column;
        gap: 16px;
        height: auto;
        min-height: 0;
        overflow: visible;
    }
    .about-section.about-static .about-layer {
        position: static;
        top: auto;
        left: auto;
        transform: translateY(24px);
        opacity: 0;
        will-change: auto;
        text-align: center;
        padding: 0;
        border: none;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-top: 1px solid var(--accent-primary);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        overflow: hidden;
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        transition-delay: var(--about-delay, 0s);
    }
    .about-section.about-static .about-layer.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .about-section.about-static .about-layer:nth-child(1) { --about-delay: 0.2s; }
    .about-section.about-static .about-layer:nth-child(2) { --about-delay: 0.3s; }
    .about-section.about-static .about-layer:nth-child(3) { --about-delay: 0.4s; }
    .about-section.about-static .about-layer:nth-child(4) { --about-delay: 0.5s; }
    .about-section.about-static .about-header.reveal-up {
        transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .about-section.about-static .about-layer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        
    }
    .about-section.about-static .about-layer {
        position: relative;
        padding: 26px 22px;
    }
    .about-section.about-static .about-layer-num {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        margin: 0 auto 16px;
        font-size: 12px;
        border-radius: 10px;
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(236, 72, 153, 0.2));
        border: 1px solid rgba(124, 58, 237, 0.3);
        color: var(--accent-secondary);
    }
    .about-section.about-static .about-layer-title {
        margin-bottom: 16px;
    }
    .about-section.about-static .about-tech-tags {
        gap: 10px;
    }
    .about-section.about-static .about-tech-tag {
        background: rgba(255, 255, 255, 0.04);
        transition: border-color 0.2s ease, background 0.2s ease;
    }
    .about-section.about-static .about-benefits-list {
        text-align: center;
    }
    .about-section.about-static .about-benefits-list li {
        position: relative;
        padding-left: 0;
        padding-top: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
    .about-section.about-static .about-benefits-list li::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        width: 24px;
        height: 2px;
        opacity: 0.6;
    }
    .about-section.about-static .about-benefits-list li:first-child::before {
        display: none;
    }
    .about-section.about-static .about-cta {
        margin-top: 20px;
    }
    .about-section.about-static .about-line-svg {
        display: none;
    }
    .about-section.about-static .about-bg-spot {
        opacity: 0.25;
    }
}

.about-section .container-about {
    position: relative;
    z-index: 1;
}

.about-section .section-label {
    display: block;
    margin-bottom: 32px;
}

.about-hero {
    margin-bottom: 48px;
}

.about-hero-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 0 0 20px 0;
}

.about-hero-line {
    display: block;
}

.about-hero-line-accent {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-punch {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.about-punch-line {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.about-punch-sep {
    width: 1px;
    height: 18px;
    background: var(--border-light);
}

/* Технологии */
.about-tech {
    margin-bottom: 56px;
}

.about-tech-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.about-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 8px;
}

.about-tech-item {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

/* Bento: текст + визуальная карточка */
.about-bento {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 64px;
}

.about-bento-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-bento-main p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0;
}

.about-bento-lead {
    font-size: 18px !important;
    color: var(--text-primary) !important;
    font-weight: 500;
}

.about-bento-visual {
    position: relative;
}

.about-visual-card {
    position: sticky;
    top: 120px;
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
}

.about-visual-card .about-card-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-secondary);
    margin-bottom: 12px;
}

.about-visual-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
}

.about-visual-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.about-visual-cta:hover {
    color: var(--accent-primary);
    gap: 12px;
}

.about-visual-cta::after {
    content: '→';
}

/* Наш подход — нумерованные карточки */
.about-approach {
    padding-top: 48px;
    border-top: 1px solid var(--border-subtle);
}

.about-benefits-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 28px;
}

.about-approach-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(4, 1fr);
    gap: 20px;
}

.about-approach-card {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.about-approach-card-large {
    grid-row: span 1;
}

.about-approach-num {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-secondary);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.about-approach-card h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.about-approach-card-large h4 {
    font-size: 19px;
}

.about-approach-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 1200px) {
    .about-approach-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-approach-card-large {
        grid-column: span 3;
    }
}

@media (max-width: 1024px) {
    .about-section {
        padding: 80px 0 80px;
    }
    
    .about-bento {
        grid-template-columns: 1fr;
        margin-bottom: 48px;
    }
    
    .about-visual-card {
        position: static;
    }
    
    .about-approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-approach-card-large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0 60px;
    }
    
    .about-hero {
        margin-bottom: 32px;
    }
    
    .about-tech {
        margin-bottom: 40px;
    }
    
    .about-punch {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .about-punch-sep {
        width: 24px;
        height: 1px;
    }
    
    .about-bento-main p,
    .about-bento-lead {
        font-size: 16px !important;
    }
    
    .about-approach {
        padding-top: 36px;
    }
    
    .about-approach-grid {
        grid-template-columns: 1fr;
    }
    
    .about-approach-card-large {
        grid-column: span 1;
    }
    
    .about-approach-card {
        padding: 22px 20px;
    }
    
    .about-approach-card h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .about-hero-title {
        font-size: clamp(28px, 8vw, 36px);
    }
    
    .about-tech-item {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
    background: var(--bg-primary);
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
    height: fit-content;
}

.faq-header {
    position: absolute;
    top: -120px;
    align-self: start;
    margin-top: 0;
    padding-top: 0;
}

/* ScrollSmoother: sticky не работает внутри transform, пин задаётся в GSAP */
body.has-smoother .faq-header {
    position: static;
}

/* Убираем отступ pin-spacer (было inset: 120px из top sticky) */
.faq-section .pin-spacer {
    inset: 0 auto auto !important;
}

.faq-header .section-title {
    margin-bottom: 16px;
}

.faq-intro {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(20px);
}

.faq-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.faq-item.is-open {
    border-color: rgba(124, 58, 237, 0.35);
    background: rgba(124, 58, 237, 0.04);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--accent-secondary);
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    transition: transform 0.3s var(--ease-out-expo);
}

.faq-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-tertiary);
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-item.is-open .faq-icon svg {
    stroke: var(--accent-secondary);
}

.faq-answer {
    overflow: hidden;
    transition: height 0.35s var(--ease-out-expo);
}

.faq-answer[hidden] {
    display: block;
    height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    opacity: 0;
}

.faq-answer p {
    margin: 0;
    padding: 0 24px 20px 24px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer strong {
    color: var(--accent-secondary);
    font-weight: 600;
}

@media (max-width: 900px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    /* Когда заголовок сверху — отключаем sticky, иначе залазит на вопросы */
    .faq-header {
        position: static;
    }
}

@media (max-width: 640px) {
    .faq-layout {
        gap: 36px;
    }
    
    .faq-question {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .faq-answer p {
        padding: 0 20px 16px 20px;
        font-size: 14px;
    }
}

/* ============================================
   CTA SECTION WITH DITHERING EFFECT
   ============================================ */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    position: relative;
    min-height: 420px;
    padding: 80px 60px;
    background: linear-gradient(135deg, 
        #7c3aed 0%, 
        #a855f7 30%, 
        #c084fc 50%,
        #e879f9 70%,
        #ec4899 100%
    );
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Dithering noise texture overlay */
.cta-noise {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 150px 150px;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.cta-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 480px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* White filled button */
.btn-cta-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: #ffffff;
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 500;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-cta-white:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Ghost/outline button with pink styling */
.btn-cta-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.03);
}

.btn-cta-ghost svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cta-card {
        padding: 60px 24px;
        min-height: 380px;
        border-radius: 24px;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }
    
    .btn-cta-white,
    .btn-cta-ghost {
        width: 100%;
        padding: 14px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .btn-cta-white,
    .btn-cta-ghost {
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* ============================================
   CONTACT - Full Redesign
   ============================================ */
.contact {
    position: relative;
    /* Плавный градиент: сливается с FAQ сверху и с Footer снизу */
    background: linear-gradient(
        180deg,
        var(--bg-primary) 0%,
        var(--bg-secondary) 20%,
        var(--bg-secondary) 80%,
        var(--bg-dark) 100%
    );
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Мягкая сетка — едва заметная */
.contact-mesh {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.8;
}

/* Мягкие свечения — не перегружают переход */
.contact-spot {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
}

.contact-spot-1 {
    background: var(--accent-primary);
    top: -200px;
    right: -150px;
}

.contact-spot-2 {
    background: var(--accent-pink);
    bottom: -200px;
    left: -150px;
}

.contact-wrap {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    position: relative;
    border-radius: 28px;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-pink), transparent);
    opacity: 0.6;
}

.contact-card-inner {
    padding: 56px 48px;
}

/* Header */
.contact-card-header {
    margin-bottom: 40px;
}

.contact-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.contact-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.contact-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 4px;
}

.contact-link {
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--accent-secondary);
}

.contact-link-divider {
    color: var(--text-tertiary);
    font-size: 12px;
    margin: 0 4px;
}

/* Form - Underline style */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    margin-bottom: 24px;
}

.form-field {
    position: relative;
}

.form-field-full {
    margin-bottom: 40px;
}

.form-field input:not([type="radio"]),
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 16px 0 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 16px;
    transition: color 0.2s ease;
}

/* Отключить белый фон при автозаполнении */
.form-field input:not([type="radio"]):-webkit-autofill,
.form-field input:not([type="radio"]):-webkit-autofill:hover,
.form-field input:not([type="radio"]):-webkit-autofill:focus,
.form-field input:not([type="radio"]):-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0a0a0f inset !important;
    box-shadow: 0 0 0 30px #0a0a0f inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    transition: background-color 5000s ease-in-out 0s;
}


.form-field input::placeholder,
.form-field textarea::placeholder {
    color: transparent;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
}

/* Только лейблы для input/textarea с плавающей подписью, не для form-choice */
.form-field input ~ label,
.form-field textarea ~ label {
    position: absolute;
    top: 16px;
    left: 0;
    font-size: 16px;
    color: var(--text-tertiary);
    pointer-events: none;
    transition: all 0.25s ease;
}

.form-field textarea ~ label {
    top: 20px;
}

.form-field .form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.form-field input:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label,
.form-field select:focus ~ label,
.form-field select:valid ~ label,
.form-field textarea:focus ~ label,
.form-field textarea:not(:placeholder-shown) ~ label {
    top: -4px;
    font-size: 11px;
    color: var(--accent-secondary);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 20px;
}

/* Выбор услуги — красивые радиокнопки */
.form-field-choices {
    margin-bottom: 32px;
}

.form-choices-label {
    display: block;
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.form-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-choice {
    position: relative;
    cursor: pointer;
    margin: 0;
    display: inline-block;
}

.form-choice input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form-choice-text {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    transition: all 0.25s ease;
}

.form-choice:hover .form-choice-text {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.form-choice input:checked + .form-choice-text {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.4);
    color: var(--accent-secondary);
}

/* Form line - gradient on focus */
.form-field input:focus ~ .form-line,
.form-field select:focus ~ .form-line,
.form-field textarea:focus ~ .form-line {
    height: 2px;
    background: var(--gradient-primary);
}

/* Button */
.form-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 100px;
    color: white;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.45);
}

.contact-btn svg {
    transition: transform 0.3s ease;
}

.contact-btn:hover svg {
    transform: translateX(4px);
}

.form-disclaimer {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .contact-card-inner {
        padding: 40px 32px;
    }
    
    .contact-btn {
        padding: 14px 28px;
        font-size: 15px;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .contact-card-inner {
        padding: 32px 24px;
    }
    
    .contact-btn {
        padding: 12px 24px;
        font-size: 14px;
        gap: 8px;
    }
    
    .contact-card-header {
        margin-bottom: 32px;
    }
    
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }
    
    .form-field-choices {
        margin-bottom: 28px;
    }
    
    .form-choice-text {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .form-field-full {
        margin-bottom: 32px;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .contact-link-divider {
        display: none;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    padding: 80px 0 40px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 16px;
    margin-bottom: 24px;
    max-width: 280px;
    line-height: 1.6;
}

.footer-brand .footer-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-nav {
    display: flex;
    gap: 80px;
    justify-content: flex-end;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

.footer-col a:hover {
    color: var(--accent-secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-tertiary);
}


.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-tertiary);
    text-decoration: none;
    border-radius: 8px;
    transition: color var(--duration-fast) ease, background-color var(--duration-fast) ease;
}

.footer-social-icon:hover {
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.06);
}

.footer-social-icon svg {
    flex-shrink: 0;
}

.footer-main-minimal .footer-brand .footer-socials {
    margin-top: 20px;
}

.footer-legal {
    display: flex;
    align-items: center;
}

.footer-legal a {
    font-size: 13px;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-nav {
        justify-content: flex-start;
        gap: 48px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-base) ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: 48px;
    text-align: center;
    max-width: 400px;
    transform: scale(0.9) translateY(20px);
    transition: all var(--duration-base) var(--ease-out-expo);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 72px;
    height: 72px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-icon svg {
    width: 32px;
    height: 32px;
    stroke: #22c55e;
}

.modal-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s var(--ease-out-expo);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out-expo);
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.4s; }

.stagger-children.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax */
[data-parallax] {
    will-change: transform;
}

/* ============================================
   АДАПТИВНОСТЬ И ПРОИЗВОДИТЕЛЬНОСТЬ
   ============================================ */

/* Отключить тяжёлые эффекты на мобильных */
@media (max-width: 768px) {
    [data-parallax] {
        will-change: auto;
    }
}

/* Уменьшенная анимация для пользователей с настройкой */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* iPhone SE и узкие экраны */
@media (max-width: 375px) {
    .container {
        padding: 0 clamp(12px, 4vw, 24px);
    }
    
    .hero-title {
        font-size: clamp(28px, 8vw, 36px);
    }
    
    .works-cta-inner {
        padding: 32px 16px;
    }
    
    .works-cta-title {
        font-size: 20px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .container {
        padding: 0 clamp(10px, 3vw, 16px);
    }
    
    .section-title {
        font-size: clamp(22px, 7vw, 28px);
    }
    
    .project-title {
        font-size: 22px;
    }
    
    .contact-title {
        font-size: 26px;
    }
    
    .form-choice-text {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Контейнер без overflow */
.device-mockups,
.contact-form-grid,
.form-choices {
    min-width: 0;
}

.project-tags {
    flex-wrap: wrap;
}


/* ============================================
   LOADING SPINNER
   ============================================ */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}


/* ============================================
   СТРАНИЦА ПОЛИТИКИ КОНФИДЕНЦИАЛЬНОСТИ
   ============================================ */
.legal-page {
    padding: 90px 0 48px;
    min-height: 100vh;
    background: var(--bg-dark);
}

.legal-content {
    max-width: 720px;
    margin: 0 auto;
}

.legal-title {
    font-size: clamp(26px, 4vw, 32px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.legal-section {
    margin-bottom: 12px;
    padding: 0;
}

.legal-section h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.legal-section p,
.legal-section li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.legal-section ul {
    margin: 4px 0;
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 2px;
}

.legal-back {
    margin-top: 24px;
    margin-bottom: 0;
}

.form-disclaimer a {
    color: var(--accent-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--duration-fast) ease;
}

.form-disclaimer a:hover {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .legal-page {
        padding: 80px 0 40px;
    }
    .legal-title {
        margin-bottom: 14px;
    }
    .legal-section {
        margin-bottom: 10px;
    }
}
