﻿:root {
      --primary: #1D7BFF;
      --primary-hover: #0056b3;
      --accent: rgb(90,200,250);
      --deep-bg: #070b19;
      --card-bg: rgba(255, 255, 255, 0.03);
      --card-border: rgba(90, 200, 250, 0.15);
      --text-main: #f5f7fa;
      --text-muted: #8e9bb5;
      --white: #ffffff;
      --glass-bg: rgba(11, 20, 38, 0.8);
      --light-text-main: #111827;
      --light-text-muted: #4b5563;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      background-color: var(--deep-bg);
      color: var(--text-main);
      line-height: 1.6;
    }
    a { color: inherit; text-decoration: none; transition: all 0.3s ease; }

    
    .logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
    .logo img { display: block; height: 36px; width: auto; max-width: 150px; object-fit: contain; flex-shrink: 0; }
    .logo span { display: inline-block; font-size: 18px; font-weight: 800; line-height: 1; color: var(--text-main); white-space: nowrap; }

    
    .site-header { position: sticky; top: 0; z-index: 1000; background: var(--glass-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--card-border); }
    .header-container { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; }
    .desktop-nav { display: flex; gap: 25px; }
    .desktop-nav a { font-size: 15px; font-weight: 500; color: var(--text-muted); }
    .desktop-nav a:hover { color: var(--accent); }
    .header-actions { display: flex; align-items: center; gap: 15px; }
    .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
    .btn-primary { background-color: var(--primary); color: var(--white); border: none; }
    .btn-primary:hover { background-color: var(--primary-hover); }
    .drawer-trigger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
    .drawer-trigger span { display: block; width: 25px; height: 2px; background-color: var(--text-main); }

    
    .drawer-menu { position: fixed; top: 0; left: -100%; width: 100%; height: 100%; z-index: 2000; transition: left 0.4s; }
    .drawer-menu.active { left: 0; }
    .drawer-overlay { position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
    .drawer-content { position: absolute; top: 0; left: 0; width: 280px; height: 100%; background-color: #0b1021; border-right: 1px solid var(--card-border); padding: 30px 20px; display: flex; flex-direction: column; }
    .drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
    .drawer-close { background: none; border: none; font-size: 28px; color: var(--text-main); cursor: pointer; }
    .drawer-nav { display: flex; flex-direction: column; gap: 20px; }
    .drawer-nav a { font-size: 16px; color: var(--text-muted); }
    .drawer-footer { margin-top: auto; font-size: 12px; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }

    
    .article-container { max-width: 1200px; margin: 50px auto; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
    
    .article-main { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 40px; }
    .breadcrumbs { font-size: 14px; color: var(--text-muted); margin-bottom: 25px; display: flex; gap: 8px; }
    .breadcrumbs a:hover { color: var(--accent); }
    
    .article-title { font-size: 32px; color: var(--white); font-weight: 800; line-height: 1.3; margin-bottom: 20px; }
    .article-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--text-muted); padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 30px; }
    
    .article-content { font-size: 16px; line-height: 1.8; color: #cbd5e1; }
    .article-content p { margin-bottom: 20px; }
    .article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 25px 0; display: block; }
    .article-content h2, .article-content h3 { color: var(--white); margin: 35px 0 15px; }

    .article-tags-wrap { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; gap: 10px; align-items: center; }
    .tag-link { background: rgba(255,255,255,0.05); padding: 4px 12px; border-radius: 4px; font-size: 13px; color: var(--accent); }

    .prev-next-links { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; }
    .prev-next-links a { color: var(--accent); display: inline-block; max-width: 48%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    
    .related-section { margin-top: 60px; }
    .related-section h3 { font-size: 22px; color: var(--white); margin-bottom: 25px; border-left: 4px solid var(--accent); padding-left: 12px; }
    .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .related-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 8px; padding: 15px; }
    .related-card h4 { font-size: 15px; color: var(--white); margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .related-card a:hover h4 { color: var(--accent); }
    .related-card span { font-size: 11px; color: var(--text-muted); }

    
    .sidebar { display: flex; flex-direction: column; gap: 30px; }
    .sidebar-widget { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; padding: 25px; }
    .sidebar-widget h3 { font-size: 18px; color: var(--white); margin-bottom: 20px; border-left: 4px solid var(--accent); padding-left: 10px; }
    .side-list { list-style: none; }
    .side-list li { margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px dashed rgba(255,255,255,0.1); }
    .side-list li:last-child { border-bottom: none; }
    .side-list a { font-size: 14px; color: var(--text-muted); display: block; }
    .side-list a:hover { color: var(--accent); }

    
    .site-footer { background-color: #050811; border-top: 1px solid var(--card-border); padding: 60px 20px 20px; color: var(--text-muted); margin-top: 100px; }
    .footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
    .footer-brand p { margin-top: 15px; font-size: 14px; }
    .footer-links-group h4, .footer-contact h4 { color: var(--white); font-size: 16px; margin-bottom: 20px; }
    .footer-links-group ul { list-style: none; }
    .footer-links-group li { margin-bottom: 10px; }
    .footer-links-group a:hover { color: var(--accent); }
    .footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
    .footer-tags a { font-size: 11px; background: rgba(255,255,255,0.05); padding: 4px 8px; border-radius: 4px; }
    .footer-contact p { font-size: 14px; margin-bottom: 10px; }
    .footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

    @media (max-width: 991px) {
      .drawer-trigger { display: flex; }
      .desktop-nav { display: none; }
      .article-container { grid-template-columns: 1fr; }
      .related-grid { grid-template-columns: 1fr; }
      .footer-container { grid-template-columns: 1fr; }
    }