/* Article Styles */
.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 40px;
    margin-bottom: 40px;
}

.article-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

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

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 14px;
    opacity: 0.9;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 60px;
}

.article-section {
    margin-bottom: 50px;
}

.article-section h2 {
    font-size: 2rem;
    color: #00ff88;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #00ff88;
}

.article-section h3 {
    font-size: 1.5rem;
    color: #00ff88;
    margin: 30px 0 15px;
}

.article-section h4 {
    font-size: 1.25rem;
    color: #00ff88;
    margin: 20px 0 10px;
}

.article-section h5 {
    font-size: 1.1rem;
    color: #00ff88;
    margin: 15px 0 8px;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Table of Contents */
.table-of-contents {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
    position: sticky;
    top: 20px;
}

.table-of-contents h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #00ff88;
    border: none;
    padding: 0;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #3498db;
}

/* Highlight Boxes */
.highlight-box {
    background: #1a1a1a;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    color: white;
}

.highlight-box h4 {
    margin-top: 0;
    color: #00ff88;
}

.highlight-box p {
    color: white;
}

/* Comparison Table */
.comparison-table {
    overflow-x: auto;
    margin: 20px 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: white;
}

.comparison-table th {
    background: #34495e;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #333;
    color: white;
}

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

/* Salary Breakdown */
.salary-breakdown {
    display: grid;
    gap: 25px;
    margin: 30px 0;
}

.salary-level {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: white;
}

.salary-level h4 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.salary-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.min-salary, .max-salary {
    font-size: 1.5rem;
    font-weight: 700;
    color: #27ae60;
}

.separator {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.salary-median {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 15px;
}

.salary-factors {
    list-style: none;
    padding: 0;
    margin: 0;
}

.salary-factors li {
    padding: 5px 0;
    color: white;
}

/* Regional Salaries */
.regional-salaries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.region-salary {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: white;
}

.region-salary h4 {
    color: #00ff88;
    margin-bottom: 10px;
}

.salary-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 8px;
}

.region-note {
    font-size: 14px;
    color: #7f8c8d;
    font-style: italic;
}

/* Demand Stats */
.demand-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: white;
}

.stat-item h4 {
    color: #00ff88;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-description {
    font-size: 14px;
    color: #7f8c8d;
}

/* Skills Demand */
.skills-demand {
    display: grid;
    gap: 15px;
    margin: 30px 0;
}

.skill-item {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: white;
}

.skill-item.high-demand {
    border-left: 4px solid #e74c3c;
}

.skill-item.medium-demand {
    border-left: 4px solid #f39c12;
}

.skill-item h4 {
    color: #00ff88;
    margin-bottom: 8px;
}

.demand-level {
    font-weight: 600;
    margin-bottom: 5px;
}

.skill-note {
    font-size: 14px;
    color: #7f8c8d;
}

/* Skills Categories */
.skills-category {
    margin: 30px 0;
}

.skill-levels {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.skill-level {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    color: white;
}

.skill-level h5 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.skill-level ul {
    margin: 0;
    padding-left: 20px;
}

.skill-level li {
    margin-bottom: 8px;
    color: white;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tool-category {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: white;
}

.tool-category h5 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.tool-category ul {
    margin: 0;
    padding-left: 20px;
}

.tool-category li {
    margin-bottom: 6px;
    color: white;
    font-size: 14px;
}

/* Soft Skills */
.soft-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.soft-skill {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: white;
}

.soft-skill h4 {
    color: #00ff88;
    margin-bottom: 10px;
}

.soft-skill p {
    color: white;
    line-height: 1.5;
    margin: 0;
}

/* Job Platforms */
.job-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.platform {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: white;
}

.platform h4 {
    color: #00ff88;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.platform-description {
    color: #ccc;
    font-style: italic;
    margin-bottom: 15px;
}

.platform-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.platform-tips li {
    padding: 5px 0;
    color: white;
    position: relative;
    padding-left: 20px;
}

.platform-tips li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Job Search Strategy */
.job-search-strategy {
    display: grid;
    gap: 25px;
    margin: 30px 0;
}

.strategy-step {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: white;
}

.strategy-step h4 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.strategy-step ul {
    margin: 0;
    padding-left: 20px;
}

.strategy-step li {
    margin-bottom: 8px;
    color: white;
}

/* Article Continue */
.article-continue {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
    color: white;
}

.article-continue p {
    margin: 0;
    color: white;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .table-of-contents {
        position: static;
        margin-bottom: 30px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .regional-salaries,
    .demand-stats,
    .job-platforms,
    .soft-skills {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .qa-hero {
        padding: 0;
    }
    
    .article-header {
        padding: 40px 0 30px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .salary-range {
        flex-direction: column;
        gap: 5px;
    }
    
    .min-salary, .max-salary {
        font-size: 1.3rem;
    }
}

/* =========================
   НОВОЕ МОБИЛЬНОЕ МЕНЮ (БЕЗ JAVASCRIPT)
   ========================= */

/* Мобильная кнопка меню (гамбургер) */
.mobile-menu-toggle {
  display: none;
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-button span {
  width: 25px;
  height: 3px;
  background: var(--light);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: 1px;
}

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--dark);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header h3 {
  color: var(--primary);
  margin: 0;
  font-size: 1.2rem;
}

.mobile-close-btn {
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-links a {
  display: block;
  padding: 15px 20px;
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-nav-links a:hover {
  background: rgba(0, 255, 136, 0.1);
  color: var(--primary);
}

.mobile-nav-links .kids-link {
  color: #8b5cf6 !important;
  font-weight: 700;
}

.mobile-nav-links .telegram-link {
  color: #0088cc !important;
  font-weight: 600;
}

/* Мобильные dropdown'ы */
.mobile-dropdown-toggle {
  display: none;
}

.mobile-dropdown-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  color: var(--light);
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-dropdown-label:hover {
  background: rgba(0, 255, 136, 0.1);
  color: var(--primary);
}

.mobile-dropdown-label i {
  transition: transform 0.3s ease;
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0, 0, 0, 0.5);
}

.mobile-dropdown-menu li {
  border-bottom: none;
}

.mobile-dropdown-menu a {
  padding: 12px 40px;
  font-size: 0.9rem;
  color: var(--gray);
}

.mobile-dropdown-menu a:hover {
  color: var(--primary);
}

/* Overlay для закрытия меню */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* Активация мобильного меню */
.mobile-menu-toggle:checked ~ .mobile-menu {
  right: 0;
}

.mobile-menu-toggle:checked ~ .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
}

/* Анимация гамбургера */
.mobile-menu-toggle:checked ~ .mobile-menu-button span:first-child {
  transform: rotate(45deg);
}

.mobile-menu-toggle:checked ~ .mobile-menu-button span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle:checked ~ .mobile-menu-button span:last-child {
  transform: rotate(-45deg);
}

/* Активация dropdown'ов */
.mobile-dropdown-toggle:checked ~ .mobile-dropdown-menu {
  max-height: 500px;
}

.mobile-dropdown-toggle:checked ~ .mobile-dropdown-label i {
  transform: rotate(180deg);
}

/* Медиа запросы для мобильных устройств */
@media (max-width: 768px) {
  /* Скрываем десктопное меню */
  .desktop-menu {
    display: none;
  }
  
  /* Показываем мобильную кнопку */
  .mobile-menu-button {
    display: flex;
  }
  
  /* Навигация уже имеет правильную высоту в основных стилях */
  
  .logo img {
    max-height: 70px;
    min-height: 50px;
  }
  
  /* Убираем старые стили мобильного меню */
  .menu-toggle {
    display: none !important;
  }
  
  .nav-links {
    display: none !important;
  }
  
  /* Контейнер на мобильных */
  .container {
    flex-direction: column;
    margin-top: 0;
    padding: 0;
  }
  
  .qa-hero {
    padding-top: 0;
  }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
  .mobile-menu {
    width: 90%;
    max-width: none;
  }
  
  .mobile-menu-header {
    padding: 15px;
  }
  
  .mobile-nav-links a,
  .mobile-dropdown-label {
    padding: 12px 15px;
  }
  
  .mobile-dropdown-menu a {
    padding: 10px 30px;
  }
}

