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

.contacts {
  padding: 0;
  background: #0a0a0a url('../assets/images/contactsBg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh; /* Изменил height на min-height */
  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;
  min-height: 100vh; /* Добавил min-height вместо height */
}

.contacts-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh; /* Изменил height на min-height */
  padding: 80px 0 0 0;
}

/* Основной контент занимает доступное пространство */
.contacts-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 200px); /* Добавил минимальную высоту */
}

.contacts-header {
  text-align: left;
  margin-bottom: 40px; /* Уменьшил отступ */
  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: 60px; /* Уменьшил gap */
  align-items: start;
  width: 100%; /* Изменил на 100% */
  max-width: 1200px;
  margin: 0 auto;
  min-height: auto; /* Убрал фиксированную высоту */
}

.contacts-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: flex-start; /* Изменил на flex-start */
}

.contacts-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start; /* Изменил на flex-start */
}

/* Логотип и copyright прижаты к низу */
.contacts-bottom-section {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px; /* Уменьшил gap */
  padding-bottom: 30px; /* Уменьшил отступ */
  min-height: 150px; /* Добавил минимальную высоту */
}

.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 {
  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;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .contacts-content {
    width: 100%;
    max-width: 100%;
    padding-left: 60px;
    gap: 40px;
  }
  
  .contacts-header {
    padding-left: 60px;
    margin-bottom: 30px;
  }
  
  .contacts-title::before {
    left: -60px;
    width: 40px;
  }
}

/* Mobile adjustments - COMPLETELY REWRITTEN */
@media (max-width: 900px) {
  .contacts {
    padding: 60px 0 30px;
    height: auto;
    min-height: auto;
    overflow: visible; /* Разрешаем скролл */
  }
  
  .contacts-inner {
    max-width: 100% !important; /* Сохраняем это свойство */
    padding: 0 15px;
    min-height: auto;
  }
  
  .contacts-main {
    height: auto;
    min-height: auto;
    padding: 0;
  }
  
  .contacts-content-wrapper {
    min-height: auto;
    justify-content: flex-start;
  }
  
  .contacts-header {
    text-align: center;
    margin-bottom: 30px;
    padding-left: 0;
  }
  
  .contacts-title {
    font-size: 28px;
    color: #D40301;
    margin-bottom: 20px;
    text-align: center;
    padding-left: 0;
  }
  
  .contacts-title::before {
    display: none;
  }
  
  .contacts-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-left: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .contacts-left, .contacts-right {
    width: 100%;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  
  .welcome-title, .support-title {
    font-size: 22px;
    margin-bottom: 15px;
    text-align: center;
  }
  
  .welcome-description {
    font-size: 15px;
    line-height: 1.5;
    max-width: 100%;
    text-align: center;
  }
  
  .social-icons {
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
    justify-content: center;
  }
  
  .social-icon {
    width: 44px;
    height: 44px;
  }
  
  .social-icon img {
    width: 24px;
    height: 24px;
  }
  
  .email {
    font-size: 14px;
    margin-top: 10px;
  }
  
  .contacts-bottom-section {
    margin-top: 40px;
    gap: 20px;
    padding-bottom: 20px;
    min-height: auto;
  }
  
  .contacts-logo {
    display: block; /* Показываем логотип */
  }
  
  .studio-logo {
    width: 150px;
    height: auto;
    max-height: 175px;
  }
  
  .copyright p {
    font-size: 11px;
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .contacts {
    padding: 50px 0 20px;
  }
  
  .contacts-title {
    font-size: 24px;
  }
  
  .contacts-content {
    gap: 35px;
  }
  
  .welcome-title, .support-title {
    font-size: 20px;
  }
  
  .welcome-description {
    font-size: 14px;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
  }
  
  .social-icon img {
    width: 22px;
    height: 22px;
  }
  
  .studio-logo {
    width: 130px;
    max-height: 150px;
  }
}

@media (max-width: 480px) {
  .contacts {
    padding: 40px 0 15px;
  }
  
  .contacts-inner {
    padding: 0 10px;
  }
  
  .contacts-title {
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  .contacts-content {
    gap: 30px;
  }
  
  .welcome-title, .support-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .welcome-description {
    font-size: 13px;
  }
  
  .social-icons {
    gap: 10px;
  }
  
  .social-icon {
    width: 36px;
    height: 36px;
  }
  
  .social-icon img {
    width: 20px;
    height: 20px;
  }
  
  .email {
    font-size: 13px;
  }
  
  .contacts-bottom-section {
    margin-top: 30px;
    gap: 15px;
  }
  
  .studio-logo {
    width: 110px;
    max-height: 130px;
  }
  
  .copyright p {
    font-size: 10px;
    padding: 0 10px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
  .contacts {
    padding: 30px 0 10px;
  }
  
  .contacts-title {
    font-size: 20px;
  }
  
  .welcome-title, .support-title {
    font-size: 16px;
  }
  
  .welcome-description {
    font-size: 12px;
  }
  
  .social-icon {
    width: 32px;
    height: 32px;
  }
  
  .social-icon img {
    width: 18px;
    height: 18px;
  }
  
  .studio-logo {
    width: 100px;
    max-height: 120px;
  }
  
  .copyright p {
    font-size: 9px;
  }
}

/* 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;
}
   /* 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;
    }
  }

  