/* Evolution Interactive - Articles Styles */
/* Единый файл стилей для всех статей */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: #f8f9fa;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #2c3e50;
}

.logo svg {
    width: 40px;
    height: 40px;
}

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

.project-link {
    background: #3498db;
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.project-link:hover {
    background: #2980b9;
}

/* Container */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.875rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Project Badge */
.project-badge {
    display: inline-block;
    background: #e8f4f8;
    color: #3498db;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Heading */
h1 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    line-height: 1.3;
}

/* Problem and Solution Blocks */
.problem-block,
.solution-block {
    padding: 1.75rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.problem-block {
    background: #fff9e6;
    border-left: 4px solid #f39c12;
}

.solution-block {
    background: #e8f8f5;
    border-left: 4px solid #27ae60;
}

.block-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.problem-block .block-title {
    color: #d68910;
}

.solution-block .block-title {
    color: #229954;
}

/* Benefits */
.benefits {
    background: #fff;
    padding: 1.75rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.benefits h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.benefits ul {
    list-style: none;
    padding-left: 0;
}

.benefits li {
    padding: 0.625rem 0 0.625rem 2.25rem;
    position: relative;
    border-bottom: 1px solid #ecf0f1;
}

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

.benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.25rem;
    width: 1.75rem;
    height: 1.75rem;
    background: #e8f8f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Block */
.cta-block {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 3rem;
}

.cta-block h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-block p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.content-section h2 {
    font-size: 1.625rem;
    color: #2c3e50;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #e8f4f8;
}

.content-section h3 {
    font-size: 1.3125rem;
    color: #34495e;
    margin: 2rem 0 1rem 0;
}

.content-section p {
    margin-bottom: 1.125rem;
    text-align: justify;
    font-size: 1.0625rem;
}

/* Highlight Boxes */
.highlight-box {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 6px 6px 0;
}

.highlight-box.warning {
    background: #fff9e6;
    border-left-color: #f39c12;
}

.highlight-box.success {
    background: #e8f8f5;
    border-left-color: #27ae60;
}

.highlight-box strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #e8f4f8;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: #3498db;
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9375rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.875rem 0 0.875rem 2.75rem;
    position: relative;
    border-bottom: 1px solid #ecf0f1;
    font-size: 1.0625rem;
}

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

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.875rem;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.25rem;
    width: 2rem;
    height: 2rem;
    background: #e8f8f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-list li strong {
    color: #2c3e50;
}

/* Interface Screenshot */
.interface-screenshot {
    background: #fff;
    border: 2px solid #dce4ec;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.interface-screenshot .caption {
    font-size: 0.9375rem;
    color: #7f8c8d;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
    padding-top: 1rem;
    border-top: 1px dashed #dce4ec;
}

/* Comparison Table */
table.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8f4f8;
}

table.comparison-table th {
    background: #3498db;
    color: #fff;
    padding: 1.125rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

table.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
    font-size: 1rem;
}

table.comparison-table tr:last-child td {
    border-bottom: none;
}

table.comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

table.comparison-table tr:hover {
    background: #f0f7fb;
}

/* Case Study */
.case-study {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    margin: 2.5rem 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.case-study h3 {
    color: #fff;
    margin-top: 0;
    font-size: 1.5rem;
}

.case-study .results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.case-study .result-item {
    background: rgba(255,255,255,0.15);
    padding: 1.25rem;
    border-radius: 6px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.case-study .result-value {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

.case-study .result-label {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Numbered List */
.numbered-list {
    counter-reset: item;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.numbered-list li {
    counter-increment: item;
    padding: 1rem 0 1rem 3.5rem;
    position: relative;
    border-bottom: 1px solid #ecf0f1;
    font-size: 1.0625rem;
}

.numbered-list li:before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 1rem;
    background: #3498db;
    color: #fff;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .problem-block,
    .solution-block {
        padding: 1.25rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.375rem;
    }
    
    .content-section p {
        font-size: 1rem;
    }
    
    .cta-block {
        padding: 1.75rem;
    }
    
    .cta-block h2 {
        font-size: 1.375rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    table.comparison-table {
        font-size: 0.875rem;
    }
    
    table.comparison-table th,
    table.comparison-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.25rem;
    }
    
    .content-section h3 {
        font-size: 1.125rem;
    }
    
    .project-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .cta-block,
    .breadcrumbs {
        display: none;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .problem-block,
    .solution-block,
    .content-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}