/* Общие стили */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: #fff;
}


/* Стили для hero-section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 0;
    background: url('/static/img/background.jpg') no-repeat center center/cover;
}



.logo-menu {
    position: relative;
    left: -80px; /* сдвигает влево на 20 пикселей */
        position: relative;
        top: -100px; 
}
.logo-menu img {
    width: 150px;
}

.logo-menu nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
}

.logo-menu nav ul li a {
    position: relative;
}



.hero-content {
    text-align: center;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 30px;
}

.hero-content button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.hero-robot {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 30%;
}

/* Стили для content-section */
.content-section {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: 50px auto;
}

.left-content {
    width: 60%;
}

.left-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.left-content p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.right-content {
    width: 35%;
}

.promo-video {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background-color: #333;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.promo-video video {
    width: 100%;
    min-height: 225px;
    object-fit: cover;
    border-radius: 5px;
}

.promo-video p {
    margin: 15px 0;
    font-size: 18px;
    color: white;
}

.promo-video button {
    padding: 12px 24px;
    font-size: 16px;
    margin-top: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .promo-video {
        width: 90%;
        padding: 15px;
    }
    .promo-video p {
        font-size: 14px;
    }
    .promo-video button {
        padding: 8px 16px;
        font-size: 14px;
    }
}



.container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-left: 10px;
    float: right;
}
.robot-image {
    max-width: 50%; /* ограничение размера */
    
}

body {
    font-family: 'Arial', sans-serif;
    color: #fff;
    background-color: #1a1a1a;
    /* Фоновое изображение */
    background-image: url(' /static/img/pot.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

/* Стили модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
  }
  
  .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    position: relative;
  }
  
  .close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #555;
  }
  
  .auth-form {
    margin-top: 20px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
  }
  
  input:focus {
    border-color: #4CAF50;
    outline: none;
  }
  
  
  
  .error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
  }
  
  .switch-link {
    text-align: center;
    margin-top: 20px;
    color: #555;
  }
  
  .switch-link a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
  }
  
  /* Адаптивность */
  @media (max-width: 576px) {
    .modal-content {
      margin: 20% auto;
      padding: 20px;
    }
  }
  
  :focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
  }
  
  /* Адаптивность */
  .logo-menu nav ul {
    flex-wrap: wrap;
    gap: 8px;
    display: flex;
    justify-content: center; /* Горизонтальное центрирование элементов */
    padding: 0;
    margin: 0;
    list-style: none;
  }
  
  .logo-menu nav ul li {
    text-align: center; /* Центрируем текст внутри каждого пункта */
  }
  
  .logo-menu nav ul li a {
    display: inline-block;
    padding: 8px 8px; /* Отступы вокруг текста */
    text-decoration: none;
    color: #fff;
    font-weight: bold;
     /* Предотвращаем перенос слов (можно убрать, если нужен перенос) */
  }
  
  /* Адаптация для маленьких экранов */
  @media (max-width: 768px) {
    .logo-menu nav ul {
      flex-direction: column; /* Пункты выстраиваются вертикально */
      align-items: center; /* Центрируем пункты по горизонтали */
    }
  
    .logo-menu nav ul li a {
      text-align: center;
      padding: 10px 8px;
      font-size: 8px;
    }
  }
  
  @media (max-width: 480px) {
    /* 1. Меню навигации — сдвигаем вправо, сохраняем центрирование текста внутри пунктов */
    .logo-menu nav ul {
      justify-content: flex-end; /* Выравниваем пункты по правому краю контейнера */
      padding-right: 10px; /* Небольшой отступ от правого края */
    }
  
    .logo-menu nav ul li a {
      font-size: 15px;
      padding: 8px 18px;
      text-align: center; /* Текст внутри ссылки по центру */
      display: block;
      white-space: nowrap;
    }
  
    /* 2. Основной контейнер — уменьшаем отступы, сдвигаем контент вправо */
    .container {
      padding: 0 5px;
      margin-left: auto; /* Прижимаем контейнер вправо */
      max-width: 95%; /* Немного сужаем, чтобы оставалось место справа */
    }
  
    /* 3. Секции — уменьшаем внешние отступы, выравниваем вправо */
    .section {
      margin: 40px 0;
      padding-left: 5px; /* Сдвигаем содержимое секции правее */
    }
  
    /* 4. Список языков — позиционируем правее */
    .language-list {
      min-width: 80px;
      top: 28px;
      right: 5px; /* Сдвигаем вправо (вместо top используем right) */
      
    }
  
    /* 5. Социальные ссылки — выстраиваем вертикально, прижимаем вправо */
    .social-links {
      text-align: right; /* Выравниваем все ссылки по правому краю */
      padding-right: 10px;
    }
  
    .social-links a {
      display: block;
      margin-bottom: 8px;
      text-align: right; /* Текст ссылки по правому краю */
      white-space: nowrap;
    }
  
    /* 6. Заголовки и текст — уменьшаем размер, выравниваем вправо */
    h1 {
      font-size: 1.8rem;
      text-align: right;
      margin-right: 16px;
    }
  
    h2 {
      font-size: 1.4rem;
      text-align: right;
      margin-right: 10px;
    }
  
    p {
      font-size: 0.95rem;
      text-align: right;
      margin-right: 10px;
      line-height: 1.5;
    }
  
    /* 7. Дополнительные правки для вложенных элементов */
    .content-section,
    .hero-content,
    .promo-video {
      padding-right: 5px;
      margin-right: 0;
    }
  }
  
    /* Дополнительные стили для улучшения читаемости на мобильном */
    @media (max-width: 600px) {
      .logo-menu {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
    
      .logo-menu nav ul {
        margin-top: 25px;
        justify-content: center;
      }
    
      .hero-section {
        padding: 20px 0;
      }
    }
    
  /* Модальное окно */
.modal {
    display: none; /* Скрыто по умолчанию*/
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
  }
  
  .modal-content {
    background-color: #797272;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
  }
  
  .modal-body {
    max-height: 60vh;
    overflow-y: auto;
    margin-bottom: 20px;
  }
  
  #acceptPrivacy {
    background-color: #4CAF50;
    color: rgb(247, 244, 244);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
  }
  
  #acceptPrivacy:hover {
    background-color: #3e8e41;
  }
  
/* Отступ снизу для виджета (чтобы не закрывал контент) */
.userway-widget {
    bottom: 20px !important;
    z-index: 9999 !important;
  }
  
  /* Для мобильных: уменьшить размер кнопки */
  @media (max-width: 768px) {
    .userway-widget .uw-button {
      width: 40px !important;
      height: 40px !important;
    }
  }
  
  #privacyModal {
  /* Стили модального окна политики конфиденциальности */
#privacyModal {
  display: none; /* Скрыто по умолчанию*/
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff; /* Белый фон — лучше читаемость */
  margin: 5% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Улучшенная тень */
  overflow: hidden; /* На случай длинного текста */
}

.modal-body {
  max-height: 60vh;
  overflow-y: auto;
  margin-bottom: 25px;
  color: #333;
  line-height: 1.6;
}

/* Кнопка "Принять" */
#acceptPrivacy {
  background-color: #4CAF50; /* Зелёный акцентный цвет */
  color: #fff;
  padding: 14px 30px; /* Немного больше отступы */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  width: 100%; /* Кнопка на всю ширину */
}

#acceptPrivacy:hover {
  background-color: #3e8e41; /* Темнее при наведении */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    padding: 20px;
    width: 95%;
  }
  
  .modal-body {
    max-height: 50vh; /* Меньше высота на мобильных */
  }
  
  #acceptPrivacy {
    padding: 12px 24px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    margin: 5% auto;
    padding: 15px;
  }
  
  .modal-body h2 {
    font-size: 20px;
  }
  
  .modal-body p,
  .modal-body ul {
    font-size: 14px;
  }
}
}
