/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f05610;
    --primary-dark: #d14a0e;
    --primary-light: #ff6b2a;
    --secondary-color: #ff8c5a;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    --bg-primary: #0f0e0e;
    --bg-secondary: #1a1919;
    --bg-card: #1a1919;
    --bg-dark: #0f0e0e;
    --border-color: #2a2a2a;
    --gradient-start: #f05610;
    --gradient-end: #ff6b2a;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    
    /* Spacing System для лаконичного дизайна */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 0.75rem;   /* 12px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
    --space-3xl: 4rem;     /* 64px */
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
}

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);
    background-image: url('images/Syntaloc_BG.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Improve touch scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 14, 14, 0.85);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    width: 100%;
}

/* Tablet and Mobile Container Padding */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 14, 14, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    min-height: 70px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}


.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(70px + var(--space-3xl)) 0 var(--space-3xl);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    padding: var(--space-xl) 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    /* Better touch interaction */
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.hero-features {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--space-sm) 0;
}

.feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

/* Section Styles */
section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    padding: 0 var(--space-lg);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* About Section */
.about {
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    padding: var(--space-xl) 0;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    padding-right: var(--space-lg);
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.about-text p {
    margin-bottom: var(--space-lg);
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(26, 25, 25, 0.4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.stat-card {
    text-align: center;
    padding: var(--space-xl);
    background: transparent;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
    border: none;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    line-height: 1;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--primary-color);
    line-height: 1.3;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Portfolio Section */
.portfolio {
    background: var(--bg-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    padding: var(--space-md) 0;
}

.portfolio-item {
    background: var(--bg-card);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.portfolio-item:hover::before {
    transform: scaleX(1);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.portfolio-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
    display: inline-block;
    transition: transform 0.3s ease;
    line-height: 1;
}

.portfolio-item:hover .portfolio-icon {
    transform: scale(1.1) rotate(5deg);
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--primary-color);
    line-height: 1.3;
}

.portfolio-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

/* AI Development Section */
.ai-development {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.04) 100%);
    position: relative;
    overflow: hidden;
}

.ai-development-content {
    max-width: 1200px;
    margin: 0 auto;
}

.ai-animation-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.ai-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-brain {
    position: relative;
    width: 200px;
    height: 200px;
}

.brain-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    animation: pulse-core 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(240, 86, 16, 0.5);
}

@keyframes pulse-core {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.neuron {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: neuron-pulse 2s ease-in-out infinite;
}

.neuron-1 { top: 10%; left: 50%; animation-delay: 0s; }
.neuron-2 { top: 50%; left: 10%; animation-delay: 0.3s; }
.neuron-3 { top: 50%; right: 10%; animation-delay: 0.6s; }
.neuron-4 { bottom: 10%; left: 30%; animation-delay: 0.9s; }
.neuron-5 { bottom: 10%; right: 30%; animation-delay: 1.2s; }
.neuron-6 { top: 30%; left: 20%; animation-delay: 1.5s; }

@keyframes neuron-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 10px rgba(240, 86, 16, 0.5);
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 20px rgba(240, 86, 16, 0.8);
    }
}

.connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
    animation: connection-flow 3s ease-in-out infinite;
}

.connection-1 {
    top: 20%;
    left: 30%;
    width: 40%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.connection-2 {
    top: 40%;
    left: 20%;
    width: 60%;
    transform: rotate(-30deg);
    animation-delay: 1s;
}

.connection-3 {
    bottom: 30%;
    left: 25%;
    width: 50%;
    transform: rotate(60deg);
    animation-delay: 2s;
}

.connection-4 {
    top: 60%;
    right: 20%;
    width: 45%;
    transform: rotate(-45deg);
    animation-delay: 1.5s;
}

@keyframes connection-flow {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.6;
    }
}

.ai-assistant-icon {
    position: absolute;
    right: 20%;
    top: 50%;
    transform: translateY(-50%);
}

.assistant-core {
    font-size: 4rem;
    animation: assistant-float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes assistant-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.assistant-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
    opacity: 0;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.ai-text-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ai-feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    border: 1px solid var(--border-color);
}

.ai-feature-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-color);
}

.ai-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.ai-feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.ai-feature-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Blog Section */
.blog {
    background: var(--bg-primary);
}

.blog-content {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-featured {
    margin-bottom: 4rem;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-post-image {
    position: relative;
    overflow: hidden;
}

.blog-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.5rem;
    position: relative;
}

.blog-image-placeholder.small {
    min-height: 200px;
}

.blog-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.blog-category {
    background: rgba(240, 86, 16, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 1;
    position: relative;
    border: 1px solid rgba(240, 86, 16, 0.3);
}

.blog-post-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.blog-date::after {
    content: '•';
    margin-left: 1rem;
    color: var(--text-light);
}

.blog-post-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.featured-post .blog-post-title {
    font-size: 2.25rem;
}

.blog-post-excerpt {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.blog-read-more:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.blog-post-card {
    background: var(--bg-card);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.blog-post-card .blog-post-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-card .blog-post-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-post-card .blog-post-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.blog-post-card .blog-post-meta {
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
}

.blog-post-card .blog-post-image {
    height: 180px;
    overflow: hidden;
}

.blog-post-card .blog-post-image img,
.blog-post-card .blog-post-image iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Стиль для логотипа по умолчанию */
.blog-post-card .blog-post-image img[src*="syntaloc-logo"] {
    object-fit: contain;
    background: var(--bg-dark);
    padding: 1.5rem;
}

.blog-post-card .blog-image-placeholder {
    height: 180px;
    min-height: 180px;
}

.blog-post-card .blog-post-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Старые стили для обратной совместимости */
.blog-post {
    background: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-post .blog-post-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-post .blog-post-title {
    font-size: 1.5rem;
}

/* Approach Section */
.approach {
    background: var(--bg-primary);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    padding: var(--space-md) 0;
}

.approach-card {
    background: var(--bg-card);
    padding: var(--space-2xl) var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.approach-card:hover::before {
    transform: scaleY(1);
}

.approach-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.approach-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.2;
    margin-bottom: var(--space-md);
    line-height: 1;
}

.approach-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--primary-color);
    line-height: 1.3;
}

.approach-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-xl) 0;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--primary-color);
    line-height: 1.2;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-secondary);
    padding: var(--space-sm) 0;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-form {
    background: var(--bg-card);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(240, 86, 16, 0.2);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-brand .logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 24px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        gap: 3rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .ai-animation-container {
        gap: 3rem;
    }

    .contact-content {
        gap: 3rem;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    section {
        padding: var(--space-2xl) 0;
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }
}

/* Mobile and Tablet (up to 768px) */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-card);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        gap: 1rem;
        border-top: 1px solid var(--border-color);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        align-items: center;
    }

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

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    /* Hero Section */
    .hero {
        padding: 90px 0 50px;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.125rem);
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        min-height: 48px;
        font-size: 1rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .feature-item {
        font-size: 0.95rem;
    }

    /* Sections */
    section {
        padding: var(--space-2xl) 0;
    }

    .section-header {
        margin-bottom: var(--space-2xl);
        padding: 0 var(--space-md);
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: clamp(1rem, 3vw, 1.125rem);
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .about-text .lead {
        font-size: 1.125rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-lg);
    }

    .stat-card {
        padding: var(--space-lg);
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Portfolio Section */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .portfolio-item {
        padding: var(--space-xl) var(--space-lg);
    }

    .portfolio-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .portfolio-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .portfolio-description {
        font-size: 0.95rem;
    }

    /* AI Development Section */
    .ai-animation-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ai-visual {
        height: 280px;
        order: -1;
    }

    .ai-brain {
        width: 150px;
        height: 150px;
    }

    .brain-core {
        width: 60px;
        height: 60px;
    }

    .assistant-core {
        font-size: 3rem;
    }

    .ai-text-content {
        gap: 1.5rem;
    }

    .ai-feature-card {
        padding: 1.5rem;
    }

    .ai-feature-icon {
        font-size: 2rem;
    }

    .ai-feature-title {
        font-size: 1.25rem;
    }

    .ai-feature-description {
        font-size: 0.95rem;
    }

    /* Approach Section */
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .approach-card {
        padding: 2rem 1.5rem;
    }

    .approach-number {
        font-size: 3rem;
    }

    .approach-title {
        font-size: 1.25rem;
    }

    .approach-description {
        font-size: 0.95rem;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .contact-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .contact-info p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-details {
        gap: 1.25rem;
    }

    .contact-item {
        font-size: 0.95rem;
    }

    .contact-form {
        padding: var(--space-xl) var(--space-lg);
    }

    .form-group {
        margin-bottom: var(--space-lg);
    }

    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .form-group textarea {
        min-height: 120px;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-column h4 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .footer-column ul li {
        margin-bottom: 0.5rem;
    }

    .footer-column a {
        font-size: 0.95rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Blog Section */
    .featured-post {
        grid-template-columns: 1fr;
    }

    .blog-post-content {
        padding: 1.5rem;
    }

    .blog-post-title {
        font-size: 1.25rem;
    }

    .featured-post .blog-post-title {
        font-size: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    body {
        background-attachment: scroll;
    }

    .container {
        padding: 0 12px;
    }

    /* Navigation */
    .nav-wrapper {
        padding: 0.75rem 0;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .nav-menu {
        top: 60px;
        padding: 1.5rem;
    }

    /* Hero Section */
    .hero {
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 4vw, 1.05rem);
        margin-bottom: 1.25rem;
    }

    .hero-buttons {
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Sections */
    section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .section-subtitle {
        font-size: clamp(0.95rem, 3vw, 1.05rem);
    }

    /* About Section */
    .about-text {
        font-size: 0.95rem;
    }

    .about-text .lead {
        font-size: 1.05rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* Portfolio Section */
    .portfolio-item {
        padding: 1.5rem 1.25rem;
    }

    .portfolio-icon {
        font-size: 2rem;
    }

    .portfolio-title {
        font-size: 1.125rem;
    }

    .portfolio-description {
        font-size: 0.9rem;
    }

    /* AI Development Section */
    .ai-visual {
        height: 220px;
    }

    .ai-brain {
        width: 120px;
        height: 120px;
    }

    .brain-core {
        width: 50px;
        height: 50px;
    }

    .neuron {
        width: 16px;
        height: 16px;
    }

    .assistant-core {
        font-size: 2.5rem;
    }

    .ai-feature-card {
        padding: 1.25rem;
    }

    .ai-feature-icon {
        font-size: 1.75rem;
    }

    .ai-feature-title {
        font-size: 1.125rem;
    }

    .ai-feature-description {
        font-size: 0.9rem;
    }

    /* Approach Section */
    .approach-card {
        padding: 1.5rem 1.25rem;
    }

    .approach-number {
        font-size: 2.5rem;
    }

    .approach-title {
        font-size: 1.125rem;
    }

    .approach-description {
        font-size: 0.9rem;
    }

    /* Contact Section */
    .contact-info h3 {
        font-size: 1.25rem;
    }

    .contact-info p {
        font-size: 0.95rem;
    }

    .contact-item {
        font-size: 0.9rem;
    }

    .contact-icon {
        font-size: 1.25rem;
    }

    .contact-form {
        padding: 1.5rem 1.25rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 0 1.25rem;
    }

    .footer-content {
        gap: 2rem;
        margin-bottom: 1.5rem;
    }

    .footer-description {
        font-size: 0.9rem;
    }

    .footer-column h4 {
        font-size: 1rem;
    }

    .footer-column a {
        font-size: 0.9rem;
    }

    /* Blog Section */
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.25rem;
    }

    .blog-post-card .blog-post-content {
        padding: 1rem;
    }

    .blog-post-card .blog-post-title {
        font-size: 1rem;
    }

    .blog-post-card .blog-post-excerpt {
        font-size: 0.8rem;
    }

    .blog-post-card .blog-post-image {
        height: 150px;
    }

    .blog-post-card .blog-image-placeholder {
        height: 150px;
        min-height: 150px;
    }

    .blog-post-content {
        padding: 1.25rem;
    }

    .blog-post-title {
        font-size: 1.125rem;
    }

    .featured-post .blog-post-title {
        font-size: 1.25rem;
    }

    .blog-post-excerpt {
        font-size: 0.9rem;
    }

    /* Service Cards */
    .service-card {
        padding: 1.5rem 1.25rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-title {
        font-size: 1.125rem;
    }

    .service-description {
        font-size: 0.9rem;
    }
}

/* Landscape Mobile (up to 768px height) */
@media (max-height: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
    }

    .hero-title {
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        margin-bottom: 1rem;
    }

    .hero-buttons {
        margin-bottom: 1.5rem;
    }

    section {
        padding: 50px 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    /* Improve touch scrolling */
    -webkit-overflow-scrolling: touch;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
    a, button {
        -webkit-tap-highlight-color: rgba(240, 86, 16, 0.2);
        tap-highlight-color: rgba(240, 86, 16, 0.2);
    }

    /* Ensure minimum touch target size (44x44px recommended by Apple/Google) */
    .btn, .nav-link, .menu-toggle {
        min-height: 44px;
        min-width: 44px;
    }
}


/* Animation on Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Blog Post Page Styles */
.blog-post-page {
    background: var(--bg-primary);
    min-height: calc(100vh - 80px);
}

.blog-post-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.back-to-blog:hover {
    color: var(--primary-light);
    background: rgba(240, 86, 16, 0.1);
    transform: translateX(-5px);
}

.blog-post-full {
    background: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.blog-post-image-full {
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
}

.blog-post-image-full img,
.blog-post-image-full iframe {
    width: 100%;
    display: block;
}

/* Стиль для логотипа по умолчанию на странице поста */
.blog-post-image-full img[src*="syntaloc-logo"] {
    object-fit: contain;
    background: var(--bg-dark);
    padding: 2rem;
    max-height: 500px;
}

.blog-image-placeholder-full {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-post-content-full {
    padding: 3rem;
}

.blog-post-meta-full {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    align-items: center;
}

.blog-post-meta-full .blog-date::after {
    content: '•';
    margin-left: 1rem;
    color: var(--text-light);
}

.blog-post-title-full {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.blog-post-subtitle-full {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
}

.blog-post-body {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-post-body p {
    margin-bottom: 1.5rem;
}

.blog-post-body p:last-child {
    margin-bottom: 0;
}

.blog-content-heading {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-content-heading:first-of-type {
    margin-top: 0;
}

/* Responsive styles for blog post page */
@media (max-width: 768px) {
    .blog-post-content-full {
        padding: 2rem 1.5rem;
    }

    .blog-post-title-full {
        font-size: 1.75rem;
    }

    .blog-post-subtitle-full {
        font-size: 1.1rem;
    }

    .blog-post-body {
        font-size: 1rem;
    }

    .blog-content-heading {
        font-size: 1.5rem;
    }

    .blog-post-image-full iframe {
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .blog-post-card .blog-post-content {
        padding: 1rem;
    }

    .blog-post-card .blog-post-title {
        font-size: 0.95rem;
    }

    .blog-post-card .blog-post-excerpt {
        font-size: 0.8rem;
    }

    .blog-post-card .blog-post-image {
        height: 140px;
    }

    .blog-post-card .blog-image-placeholder {
        height: 140px;
        min-height: 140px;
    }

    .blog-post-content-full {
        padding: 1.5rem 1rem;
    }

    .blog-post-title-full {
        font-size: 1.5rem;
    }

    .blog-post-subtitle-full {
        font-size: 1rem;
    }

    .blog-post-body {
        font-size: 0.95rem;
    }

    .blog-content-heading {
        font-size: 1.25rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideDown 0.3s ease;
    position: relative;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: var(--text-light);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 10;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.modal-close:hover,
.modal-close:focus {
    color: var(--text-primary);
    background: rgba(240, 86, 16, 0.2);
    transform: rotate(90deg);
}

#modal-body {
    padding: 3rem;
    color: var(--text-primary);
}

#modal-body h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-right: 3rem;
}

#modal-body h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#modal-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

#modal-body ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

#modal-body ul li {
    margin-bottom: 0.5rem;
}

#modal-body a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

#modal-body a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }

    #modal-body {
        padding: 2rem 1.5rem;
    }

    #modal-body h2 {
        font-size: 1.5rem;
        padding-right: 2.5rem;
    }

    #modal-body h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }

    .modal-close {
        right: 0.75rem;
        top: 0.75rem;
        width: 36px;
        height: 36px;
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }

    #modal-body {
        padding: 1.5rem 1rem;
    }

    #modal-body h2 {
        font-size: 1.25rem;
        padding-right: 2rem;
    }

    #modal-body h3 {
        font-size: 1.125rem;
    }

    #modal-body p,
    #modal-body ul {
        font-size: 0.95rem;
    }
}

