/* ====== ОБНУЛЕНИЕ И БАЗОВЫЕ СТИЛИ ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html, body {
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', Arial, sans-serif;
  }
  
  /* ====== ФОН И ЦВЕТА ====== */
  body {
    background-color: #000; 
    background-image: url("../img/Fon.png"); /* Замените путь при необходимости */
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover; 
    color: #fff;
  }
  
  /* ====== ШАПКА ====== */
  .header {
    width: 100%;
    height: 70px;
    background-color: #e5e5e5;
    display: flex;
    align-items: center;
  }
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1200px;
    margin: 0 auto;
  }
  .logo img {
    height: 40px;
  }
  .main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
  }
  .main-nav ul li a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
  }
  .lang-selector {
    display: flex;
    gap: 10px;
  }
  .lang-selector a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: bold;
  }
  .lang-selector a:hover {
    text-decoration: underline;
  }
  
  /* ====== ОСНОВНОЙ БЛОК ====== */
  .main-section {
    min-height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
  }
  .content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
  }
  .main-title {
    font-size: 45px;
    font-weight: bold;
    margin-bottom: 20px;
  }
  .subtitle {
    font-size: 20px;
    margin-bottom: 40px;
  }
  
  /* ====== КАРТОЧКИ ПРОФЕССИЙ ====== */
  .professions {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }
  .profession-card {
    background-color: #1a1a1a;
    width: 350px;  /* увеличено с 250px */
    border: 2px solid #cc0000;
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s;
  }
  .profession-card:hover {
    transform: scale(1.03);
  }
  .profession-card img {
    width: 100%;
    height: 220px;  /* увеличено с 160px */
    object-fit: cover;
  }
  .profession-card h3 {
    margin: 10px 0;
    font-size: 22px;
  }
  .btn-learn-more {
    display: inline-block;
    margin-bottom: 15px;
    padding: 12px 25px;
    background-color: #cc0000;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  .btn-learn-more:hover {
    background-color: #a30000;
  }
  
  /* ====== БОКОВАЯ ПАНЕЛЬ (SIDEBAR) ====== */
  .sidebar {
    position: fixed;
    top: 0;
    left: -500px; /* увеличено с 400px */
    width: 500px;  /* увеличено с 400px */
    height: 100vh;
    background-color: #000;
    border-right: 2px solid #cc0000;
    padding: 30px;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 9999;
  }
  .sidebar.open {
    left: 0;
  }
  .sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
  }
  .sidebar-content {
    margin-top: 60px;
  }
  .sidebar-title {
    font-size: 28px;  /* увеличено */
    margin-bottom: 20px;
    color: #cc0000;
    font-weight: bold;
  }
  .sidebar-text {
    white-space: pre-line;
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 30px;
  }
  .sidebar-apply-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #cc0000;
    color: #fff;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  .sidebar-apply-btn:hover {
    background-color: #a30000;
  }
  
  /* ====== АДАПТИВНОСТЬ ====== */
  @media (max-width: 992px) {
    .header-container {
      width: 90%;
    }
  }
  @media (max-width: 768px) {
    .header-container,
    .content-wrapper {
      width: 90%;
    }
    .main-title {
      font-size: 32px;
    }
    .subtitle {
      font-size: 16px;
    }
    .professions {
      flex-direction: column;
      align-items: center;
    }
    .profession-card {
      width: 80%;
    }
    .sidebar {
      width: 80%;
      left: -80%;
    }
    .sidebar.open {
      left: 0;
    }
  }
  @media (max-width: 576px) {
    .logo img {
      height: 30px;
    }
    .main-nav {
      display: none;
    }
  }
  