/* Contacts Section - 16:9 Aspect Ratio */

.contacts {
    padding: 0;
    background: #0a0a0a url('../assets/images/contactsBg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .contacts-inner {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрирование всего контента */
    height: 100%;
  }
  
  .contacts-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Распределяем пространство между элементами */
    height: 100vh; /* Занимаем всю высоту viewport */
    padding: 80px 0 0 0; /* Отступ сверху, снизу 0 */
  }
  
  /* Основной контент занимает доступное пространство */
  .contacts-content-wrapper {
    flex: 1; /* Занимает все доступное пространство */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрируем основной контент по вертикали */
  }
  
  .contacts-header {
    text-align: left;
    margin-bottom: 60px;
    padding-left: 105px;
    width: 100%;
  }
  
  .contacts-title {
    font-family: Cambria;
    font-weight: 700;
    font-style: normal;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #ff0000;
    padding-left: 20px;
    margin: 0 0 30px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    position: relative;
  }
  
  .contacts-title::before {
    content: '';
    position: absolute;
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 4px;
    background-color: #ff0000;
  }
  
  .contacts-content {
    position: relative;
    padding-left: 120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start; /* Выравнивание элементов по верху */
    width: 1200px;
    height: 300px;
    max-width: 1200px;
    max-height: 300px;
    margin: 0 auto; /* Центрируем контент по горизонтали */
  }
  
  .contacts-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
  }
  
  .contacts-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
  }
  
  
  /* Логотип и copyright прижаты к низу */
  .contacts-bottom-section {
    margin-top: auto; /* Прижимаем к низу */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px; /* Промежуток 40px между логотипом и copyright */
    padding-bottom: 40px; /* Отступ от нижней границы */
  }
  
  /* Убираем старые отступы у логотипа */
  .contacts-logo {
    margin: 0;
  }
  
  .studio-logo {
    width: 200px;
    height: 233px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.3));
  }
  
  /* Copyright прижимаем к самому низу */
  .copyright {
    text-align: center;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
  }
  
  .copyright p {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
  }
   /* Desktop: Media section fixes */
   @media (min-width: 769px) {
     .media-inner {
       max-width: 100% !important;
       width: 100% !important;
       margin: 0;
       padding: 0 20px;
     }
     
     .media-header {
       text-align: left;
       margin-bottom: 60px;
       padding-left: 105px;
       width: 100%;
     }
     
     .media-title {
       font-family: Cambria;
       font-weight: 700;
       font-style: normal;
       font-size: 40px;
       line-height: 100%;
       letter-spacing: 0%;
       text-transform: uppercase;
       color: #D40301;
       margin: 0 0 30px 0;
       text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
       position: relative;
       padding-left: 20px;
     }
     
     .media-title::before {
       content: '';
       position: absolute;
       left: -100px;
       top: 50%;
       transform: translateY(-50%);
       width: 80px;
       height: 4px;
       background-color: #D40301;
     }
   }
   
   /* WebP support */
  html.webp .contacts {
    background: #0a0a0a url('../assets/images/contactsBg.webp') !important;
  }
  
  html.no-webp .contacts {
    background: #0a0a0a url('../assets/images/contactsBg.png') !important;
  }
  
  /* Tablet adjustments */
  @media (max-width: 1024px) {
    .contacts-content {
      width: 100%;
      max-width: 100%;
      height: auto;
      padding-left: 60px;
      gap: 60px;
    }
    
    .contacts-header {
      padding-left: 60px;
    }
  }
  
  /* Mobile adjustments */
  @media (max-width: 900px) {
    .contacts {
      padding: 40px 0;
      height: auto;
      min-height: auto;
      width: 100%;
      max-width: 100vw;
      overflow-x: hidden;
    }
    
    .contacts-inner {
      max-width: 100%;
      padding: 0 15px;
    }
    
    .contacts-main {
      display: flex;
      flex-direction: column;
      width: 100%;
    }
    
    .contacts-content-wrapper {
      display: flex;
      flex-direction: column;
      min-height: auto;
      width: 100%;
    }
    
    .contacts-header {
      text-align: center;
      margin-bottom: 30px;
      padding-left: 0;
    }
    
    .contacts-title {
      font-size: 24px;
      color: #D40301;
      margin-bottom: 15px;
      text-align: center;
    }
    
    .contacts-title::before {
      display: none;
    }
    
    .contacts-content {
      display: flex;
      flex-direction: column;
      gap: 30px;
      padding-left: 0;
      max-width: 100%;
      width: 100%;
      height: auto;
    }
    
    .contacts-left, .contacts-right {
      max-width: 100%;
      align-items: center !important;
      text-align: center;
      width: 100%;
    }
    
    .welcome-title, .support-title {
      font-size: 20px;
      margin-bottom: 15px;
    }
    
    .welcome-description {
      font-size: 14px;
      line-height: 1.5;
      max-width: 100%;
    }
    
    .social-icons {
      flex-wrap: wrap;
      gap: 10px;
      margin: 15px 0;
      justify-content: center;
    }
    
    .social-icon {
      width: 48px;
      height: 48px;
    }
    
    .social-icon img {
      width: 28px;
      height: 28px;
    }
    
    .payment-info p {
      font-size: 13px;
    }
    
    .email {
      font-size: 13px;
      margin-top: 15px;
    }
    
    .contacts-bottom-section {
      margin-top: 40px;
      text-align: center;
    }
    
    .contacts-logo {
      display: none; /* Скрываем логотип на мобильных */
    }
    
    .copyright p {
      font-size: 10px;
      padding: 0 10px;
      max-width: 100%;
    }
  }
  
  @media (max-width: 768px) {
    .contacts {
      padding: 30px 0;
    }
    
    .contacts-inner {
      padding: 0 10px;
    }
    
    .contacts-header {
      margin-bottom: 20px;
    }
    
    .contacts-title {
      font-size: 22px;
      margin-bottom: 10px;
    }
    
    .contacts-content {
      gap: 25px;
    }
    
    .welcome-title, .support-title {
      font-size: 18px;
      margin-bottom: 12px;
    }
    
    .welcome-description {
      font-size: 13px;
    }
    
    .social-icon {
      width: 44px;
      height: 44px;
    }
    
    .social-icon img {
      width: 26px;
      height: 26px;
    }
    
    .payment-info p {
      font-size: 12px;
    }
    
    .email {
      font-size: 12px;
    }
    
    .contacts-bottom-section {
      margin-top: 30px;
    }
    
    .copyright p {
      font-size: 9px;
      padding: 0 5px;
    }
  }
  
  @media (max-width: 480px) {
    .contacts {
      padding: 20px 0;
    }
    
    .contacts-inner {
      padding: 0 8px;
    }
    
    .contacts-header {
      margin-bottom: 15px;
    }
    
    .contacts-title {
      font-size: 20px;
      margin-bottom: 8px;
    }
    
    .contacts-content {
      gap: 20px;
    }
    
    .welcome-title, .support-title {
      font-size: 16px;
      margin-bottom: 10px;
    }
    
    .welcome-description {
      font-size: 12px;
    }
    
    .social-icon {
      width: 40px;
      height: 40px;
    }
    
    .social-icon img {
      width: 24px;
      height: 24px;
    }
    
    .payment-info p {
      font-size: 11px;
    }
    
    .email {
      font-size: 11px;
    }
    
    .contacts-bottom-section {
      margin-top: 25px;
    }
    
    .copyright p {
      font-size: 8px;
      padding: 0 3px;
    }
  }

  