* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Montserrat", sans-serif;
    }

    html, body {
      height: 100%;
      scroll-behavior: smooth;
    }

    body {
      color: #333;
      background: #fff;
      line-height: 1.6;
      padding-top: 30px;
    }

    /* ===== ОСНОВНОЙ КОНТЕНТ СТАТЬИ ===== */
    .article-container {
      max-width: 1200px;
      margin: 80px auto;
      padding: 0 20px;
    }

    /* Заголовок статьи */
    .article-header {
    max-width: 1200px;
    margin: 120px auto 80px; /* Увеличил верхний отступ */
    padding: 0 20px;
    }

    .article-title {
      font-size: 42px;
      color: #1a73e8;
      margin-bottom: 20px;
      line-height: 1.3;
    }

    .article-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      margin-bottom: 30px;
    }

    .meta-item {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #666;
      font-size: 14px;
    }

    .meta-item i {
      color: #1a73e8;
    }

    .article-category {
      background: linear-gradient(90deg, #1a73e8, #b833ff);
      color: white;
      padding: 8px 16px;
      border-radius: 30px;
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
      display: inline-block;
    }

   .stage-button{display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 32px;
      border: none;
      border-radius: 4px;
      font-weight: 500;
      color: #fff;
      background: linear-gradient(90deg,#20c2ff 0%,#b833ff 100%);
      cursor: pointer;
      text-decoration: none;
      transition: .3s;}.btn:hover{transform: translateY(-2px);
      box-shadow: 0 8px 18px rgba(0,0,0,.2);}

    .article-featured-image img {
      width: 100%;
      height: auto;
      display: block;
    }

    /* Основное содержимое статьи */
    .article-content {
      display: grid;
      grid-template-columns: 1fr 350px;
      gap: 60px;
      margin-bottom: 60px;
    }

    /* Общие стили для контента */
    .article-body h2 {
      color: #1a73e8;
      margin: 50px 0 20px;
      padding-bottom: 15px;
      border-bottom: 2px solid #eef2f7;
      font-size: 32px;
    }

    .article-body h3 {
      color: #444;
      margin: 40px 0 15px;
      font-size: 24px;
    }

    .article-body p {
      margin-bottom: 25px;
      line-height: 1.8;
      font-size: 18px;
    }

    /* Боковая панель */
    .article-sidebar {
      display: flex;
      flex-direction: column;
      gap: 30px;
    }

    .sidebar-sticky-container {
      position: sticky;
      top: 100px;
      display: flex;
      flex-direction: column;
      gap: 30px;
    }

    .sidebar-widget {
      background: #f8fafc;
      border-radius: 12px;
      padding: 30px;
      transition: all 0.3s ease;
    }

    .sidebar-widget:hover {
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .widget-title {
      font-size: 20px;
      margin-bottom: 25px;
      color: #1a73e8;
      position: relative;
      padding-bottom: 15px;
    }

    .widget-title:after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 40px;
      height: 3px;
      background: linear-gradient(90deg, #1a73e8, #b833ff);
    }

    .toc-list {
      list-style: none;
    }

    .toc-item {
      margin-bottom: 15px;
      padding-bottom: 15px;
      border-bottom: 1px solid #eee;
    }

    .toc-item:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: none;
    }

    .toc-link {
      display: flex;
      align-items: center;
      color: #555;
      text-decoration: none;
      transition: all 0.3s ease;
      font-weight: 500;
      padding: 8px 0;
    }

    .toc-link:hover {
      color: #1a73e8;
      transform: translateX(5px);
    }

    .toc-link.active {
      color: #1a73e8;
      font-weight: 600;
    }

    .toc-link i {
      margin-right: 10px;
      color: #1a73e8;
      transition: transform 0.3s ease;
      font-size: 12px;
    }

    /* Виджет других статей */
    .related-article {
      display: flex;
      align-items: center;
      background: white;
      border-radius: 8px;
      padding: 15px;
      margin-bottom: 12px;
      text-decoration: none;
      color: #333;
      transition: all 0.3s ease;
      border-left: 3px solid #1a73e8;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .related-article:hover {
      transform: translateX(5px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      color: #1a73e8;
    }

    .related-article:last-child {
      margin-bottom: 0;
    }

    .related-article i {
      color: #1a73e8;
      margin-right: 12px;
      font-size: 14px;
    }

    .related-article span {
      flex: 1;
      font-size: 14px;
      line-height: 1.4;
    }

    /* Стили для временной линии этапов */
    .timeline {
      position: relative;
      margin: 60px 0;
    }

    .timeline::before {
      content: '';
      position: absolute;
      left: 30px;
      top: 0;
      bottom: 0;
      width: 4px;
      background: linear-gradient(to bottom, #1a73e8, #b833ff);
      border-radius: 2px;
    }

    .timeline-stage {
      position: relative;
      margin-bottom: 60px;
      padding-left: 80px;
    }

    .timeline-stage:last-child {
      margin-bottom: 0;
    }

    .stage-marker {
      position: absolute;
      left: 20px;
      top: 0;
      width: 24px;
      height: 24px;
      background: #1a73e8;
      border: 4px solid #fff;
      border-radius: 50%;
      box-shadow: 0 0 0 3px #1a73e8;
      z-index: 2;
    }

    .stage-content {
      background: #f8fafc;
      border-radius: 12px;
      padding: 30px;
      border-left: 4px solid #1a73e8;
      transition: all 0.3s ease;
    }

    .stage-content:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .stage-number {
      display: inline-block;
      background: linear-gradient(90deg, #1a73e8, #b833ff);
      color: white;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 15px;
    }

    .stage-title {
      color: #1a73e8;
      font-size: 24px;
      margin-bottom: 15px;
      font-weight: 700;
    }

    .stage-description {
      color: #666;
      line-height: 1.6;
      margin-bottom: 20px;
    }
    
          /* Стили для списков в статье */
    .article-body ul {
        list-style: none;
        margin: 25px 0;
    }
    
    .article-body li {
        position: relative;
        padding-left: 30px;
        margin-bottom: 15px;
        line-height: 1.6;
        font-size: 17px;
    }
    
    .article-body li:before {
        content: '✓';
        position: absolute;
        left: 0;
        color: #1a73e8;
        font-weight: bold;
        font-size: 16px;
    }
    
    /* Стили для блоков преимуществ и недостатков */
    .feature-card {
        background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
        border-radius: 12px;
        padding: 30px;
        margin: 30px 0;
        border-left: 4px solid;
        transition: all 0.3s ease;
    }
    
    .feature-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .feature-card.advantages {
        border-left-color: #4CAF50;
        background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e8 100%);
    }
    
    .feature-card.disadvantages {
        border-left-color: #f44336;
        background: linear-gradient(135deg, #fdf0f0 0%, #fce8e8 100%);
    }
    
    .feature-header {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: white;
    }
    
    .feature-card.advantages .feature-icon {
        background: linear-gradient(135deg, #4CAF50, #45a049);
    }
    
    .feature-card.disadvantages .feature-icon {
        background: linear-gradient(135deg, #f44336, #da190b);
    }
    
    .feature-title {
        font-size: 24px;
        font-weight: 700;
        margin: 0;
        color: #333;
    }
    
    .feature-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .feature-item {
        position: relative;
        padding: 12px 0 12px 35px;
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .feature-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .feature-item:before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
    }
    
    .feature-card.advantages .feature-item:before {
        content: '✓';
        background: #4CAF50;
        color: white;
    }
    
    .feature-card.disadvantages .feature-item:before {
        content: '✕';
        background: #f44336;
        color: white;
    }
    
    .feature-item strong {
        color: #333;
        font-weight: 600;}
        
    /* Стили для сетки технологий */
    .technology-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin: 30px 0;
    }
    
    .tech-item {
        background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
        border-radius: 12px;
        padding: 25px;
        text-align: center;
        transition: all 0.3s ease;
        border: 1px solid #e1e5eb;
    }
    
    .tech-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-color: #1a73e8;
    }
    
    .tech-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 15px;
        background: linear-gradient(135deg, #1a73e8, #b833ff);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: white;
    }
    
    .tech-item h4 {
        color: #1a73e8;
        margin-bottom: 10px;
        font-size: 18px;
        font-weight: 600;
    }
    
    .tech-item p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }
    
    /* Стили для изображений в статьях */
    .article-image {
        margin: 40px 0;
        text-align: center;
    }
    
    .article-image img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }
    
    .article-image img:hover {
        transform: scale(1.02);
    }
    
    .image-caption {
        margin-top: 10px;
        font-style: italic;
        color: #666;
        font-size: 14px;
        text-align: center;
    }
    
    /* Стили для схем и диаграмм */
    .scheme-image {
        background: #f8fafc;
        padding: 20px;
        border-radius: 12px;
        border: 2px dashed #e1e5eb;
    }
    
    .scheme-image img {
        display: block;
        margin: 0 auto;
        max-width: 90%;
    }
    
        /* Новые стили для этой статьи */
    .concept-section {
      margin: 2rem 0;
      padding: 1.5rem;
      border-radius: 10px;
      border-left: 5px solid;
    }

    .esb-section {
      border-color: #3498db;
      background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    }

    .broker-section {
      border-color: #2ecc71;
      background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
    }

    .concept-header {
      display: flex;
      align-items: center;
      margin-bottom: 1rem;
    }

    .concept-icon {
      font-size: 2rem;
      margin-right: 1rem;
      color: inherit;
    }

    .concept-header h2 {
      margin: 0;
      color: inherit;
    }

    .important-note {
      background: #fff3cd;
      border: 1px solid #ffeaa7;
      border-radius: 8px;
      padding: 1.5rem;
      margin: 2rem 0;
    }

    .important-note.warning {
      background: #d1ecf1;
      border-color: #bee5eb;
    }

    .note-header {
      display: flex;
      align-items: center;
      margin-bottom: 1rem;
    }

    .note-header i {
      font-size: 1.5rem;
      margin-right: 0.5rem;
      color: #856404;
    }

    .important-note.warning .note-header i {
      color: #0c5460;
    }

    .note-header h3 {
      margin: 0;
      color: inherit;
    }

    .cta-banner {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      padding: 2rem;
      border-radius: 10px;
      margin: 2rem 0;
      text-align: center;
    }

    .cta-banner h3 {
      margin-top: 0;
      font-size: 1.5rem;
    }

    .modules-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      margin: 2rem 0;
    }

    .modules-group {
      background: #f8f9fa;
      padding: 1.5rem;
      border-radius: 8px;
    }

    .modules-title {
      text-align: center;
      margin-bottom: 1.5rem;
      color: #2c3e50;
      border-bottom: 2px solid #3498db;
      padding-bottom: 0.5rem;
    }

    .module-card {
      background: white;
      padding: 1rem;
      margin-bottom: 1rem;
      border-radius: 6px;
      border-left: 4px solid #3498db;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .module-card h4 {
      margin: 0 0 0.5rem 0;
      display: flex;
      align-items: center;
    }

    .module-card h4 i {
      margin-right: 0.5rem;
      color: #3498db;
    }

    .examples-section {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin: 2rem 0;
    }

    .example-card {
      background: white;
      padding: 1.5rem;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .tech-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 1rem;
    }

    .tech-tag {
      background: #e3f2fd;
      color: #1976d2;
      padding: 0.3rem 0.8rem;
      border-radius: 20px;
      font-size: 0.9rem;
      border: 1px solid #bbdefb;
    }

    .comparison-table-container {
      overflow-x: auto;
      margin: 2rem 0;
    }

    .comparison-table {
      width: 100%;
      border-collapse: collapse;
      background: white;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .comparison-table th {
      background: #2c5aa0;
      color: white;
      padding: 1rem;
      text-align: left;
    }

    .comparison-table td {
      padding: 1rem;
      border-bottom: 1px solid #e0e0e0;
    }

    .comparison-table tr:nth-child(even) {
      background: #f8f9fa;
    }

    .use-case {
      margin: 2rem 0;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .use-case-header {
      padding: 1.5rem;
      color: white;
    }

    .esb-bg {
      background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    }

    .broker-bg {
      background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    }

    .use-case-header h3 {
      margin: 0;
      display: flex;
      align-items: center;
    }

    .use-case-header i {
      margin-right: 0.5rem;
    }

    .use-case-content {
      padding: 1.5rem;
      background: white;
    }

    .steps {
      margin-top: 1.5rem;
    }

    .step {
      display: flex;
      margin-bottom: 1rem;
      align-items: flex-start;
    }

    .step-number {
      background: #2c5aa0;
      color: white;
      width: 2rem;
      height: 2rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 1rem;
      flex-shrink: 0;
      font-weight: bold;
    }

    .conclusion-box {
      background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
      padding: 2rem;
      border-radius: 10px;
      margin: 2rem 0;
      text-align: center;
    }

    .conclusion-box h3 {
      margin-top: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .conclusion-box i {
      margin-right: 0.5rem;
    }

    .cta-button {
      display: inline-block;
      background: #2c5aa0;
      color: white;
      padding: 12px 24px;
      text-decoration: none;
      border-radius: 5px;
      margin-top: 15px;
      font-weight: 500;
      transition: background 0.3s;
    }

    .cta-button:hover {
      background: #1e3d6f;
    }

    @media (max-width: 768px) {
      .modules-grid,
      .examples-section {
        grid-template-columns: 1fr;
      }
      
      .concept-header {
        flex-direction: column;
        text-align: center;
      }
      
      .concept-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
      }
    }

    
    
    
    /* Адаптивность для сетки технологий */
    @media (max-width: 768px) {
        .technology-grid {
            grid-template-columns: 1fr;
            gap: 15px;
        }
        
        .tech-item {
            padding: 20px;
        }
    }

    /* Адаптивность */
    @media (max-width: 992px) {
      .article-content {
        grid-template-columns: 1fr;
        gap: 40px;
      }
      
      .sidebar-sticky-container {
        position: static;
      }
    }

    @media (max-width: 768px) {
      .article-title {
        font-size: 32px;
      }
      
      .article-meta {
        flex-direction: column;
        gap: 10px;
      }
      
      .sidebar-widget {
        padding: 20px;
      }
      
      .related-article {
        padding: 12px;
      }
      
      .timeline::before {
        left: 20px;
      }
      
      .timeline-stage {
        padding-left: 60px;
      }
      
      .stage-marker {
        left: 12px;
      }
}