* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Приглушенная цветовая палитра */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b0;
    --text-tertiary: #6b6b7d;
    
    --accent-blue: #4a7cff;
    --accent-blue-dark: #3a5fcc;
    --accent-purple: #7c5fff;
    --accent-purple-dark: #5c3fcc;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(74, 124, 255, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 124, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 95, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(74, 124, 255, 0.05) 0%, transparent 50%),
        var(--bg-primary);
    animation: bgShift 20s ease-in-out infinite;
}

@keyframes bgShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Hero Section - Вариант 3: Минималистичный */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    z-index: 1;
}

.hero-variant-3 .hero-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 6rem;
    align-items: start;
}

.hero-main-content {
    padding-top: 4rem;
}

.hero-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 2rem;
    letter-spacing: 0.2em;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.hero-variant-3 .hero-title {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.title-main {
    display: block;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.title-subtitle {
    display: block;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 1rem;
}

.hero-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), transparent);
    margin: 2rem 0;
    opacity: 0;
    animation: expandWidth 0.8s ease-out 0.6s forwards;
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

.hero-variant-3 .hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.hero-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    opacity: 0;
    animation: fadeInRight 1s ease-out 1s forwards;
}

.sidebar-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.sidebar-projects {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-project-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.sidebar-project-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
    transform: translateX(8px);
}

.sidebar-project-link svg {
    margin-left: auto;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
}

.sidebar-project-link:hover svg {
    color: var(--accent-blue);
    transform: translate(4px, -4px);
}

.project-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-blue);
    min-width: 30px;
}

.project-info {
    flex: 1;
}

.project-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.project-desc {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.sidebar-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-minimal {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.stat-minimal-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1;
    min-width: 80px;
}

.stat-minimal-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-top: 0.5rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--accent-blue), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header (общий стиль для всех секций) */
.section-header {
    margin-bottom: 4rem;
}

.section-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), transparent);
}

/* About Section */
.about-section {
    padding: 120px 24px;
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    max-width: 700px;
}

.about-description {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.about-feature-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-blue);
    transform: translateX(8px);
}

.feature-icon-minimal {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 124, 255, 0.1);
    border-radius: 12px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.feature-content-minimal {
    flex: 1;
}

.feature-title-minimal {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.feature-desc-minimal {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Services Section */
.services-section {
    padding: 120px 24px;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-blue);
    transform: translateY(-4px);
}

.service-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-list li {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 124, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover .card-glow {
    opacity: 1;
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
}

.project-icon {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 124, 255, 0.2), rgba(124, 95, 255, 0.2));
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-icon svg {
    position: relative;
    z-index: 1;
    color: var(--accent-blue);
}

.project-card[data-project="marketplace"] .icon-bg {
    background: linear-gradient(135deg, rgba(124, 95, 255, 0.2), rgba(74, 124, 255, 0.2));
}

.project-card[data-project="marketplace"] .project-icon svg {
    color: var(--accent-purple);
}

.project-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.project-link:hover {
    background: rgba(74, 124, 255, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateX(4px);
}

.project-link svg {
    transition: transform 0.3s ease;
}

.project-link:hover svg {
    transform: translate(4px, -4px);
}

.project-card[data-project="marketplace"] .project-link:hover {
    background: rgba(124, 95, 255, 0.1);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

/* Technologies Section */
.technologies-section {
    padding: 120px 24px;
    position: relative;
    z-index: 1;
}

.technologies-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-blue);
}

.tech-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.tech-stack {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 120px 24px;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.contact-content {
    max-width: 800px;
}

.contact-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.contact-value {
    font-size: 1.125rem;
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--accent-purple);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-link {
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-link:hover {
    color: var(--accent-blue);
    transform: translateX(4px);
}

/* Footer */
.footer {
    position: relative;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 24px 2rem;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-blue);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-variant-3 .hero-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 24px;
        min-height: auto;
    }

    .title-main {
        font-size: 3rem;
    }

    .hero-sidebar {
        grid-template-columns: 1fr;
    }

    .about-section,
    .services-section,
    .projects,
    .technologies-section,
    .contact-section {
        padding: 80px 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .technologies-list {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .about-section,
    .services-section,
    .projects,
    .technologies-section,
    .contact-section {
        padding: 60px 20px;
    }

    .project-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: rgba(74, 124, 255, 0.3);
    color: var(--text-primary);
}
