/* Общие стили */
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 {
  display: flex;
  align-items: center;
  justify-content: center; /* Центрируем все содержимое */
  max-width: 1200px; /* Максимальная ширина */
  margin: 0 auto;
  padding: 0 20px; /* Отступы по краям */
  flex-wrap: wrap; /* Для адаптивности */
}

.logo-container {
  margin-right: 30px; /* Отступ справа от логотипа */
  flex-shrink: 0; /* Предотвращаем сжатие логотипа */
}

.site-logo {
  width: 120px; /* Размер логотипа */
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(243, 156, 18, 0.4)); /* Тень в стиле бренда */
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px; /* Расстояние между элементами */
  padding: 0;
  margin: 5px 0 0 0; /* Небольшой верхний отступ */
  flex-wrap: wrap; /* Для адаптивности */
  justify-content: center; /* Центрируем элементы меню */
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px; /* Расстояние между иконкой и текстом */
  text-decoration: none;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 10px 15px;
  border-radius: 10px;
  transition: all 0.3s ease, background-color 0.3s ease;
  position: relative;
  overflow: hidden; /* Важно для псевдоэлемента */
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(243, 156, 18, 0.3); /* Тень при наведении */
}

.nav-link .icon {
  font-size: 1.2rem; /* Размер иконок */
}

.nav-link .text {
  display: inline-block;
}


.logo-menu img {
  width: 150px;
}

.logo-menu nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
  justify-content: center; /* Горизонтальное центрирование элементов */
  padding: 0;
  margin: 0;
}

.logo-menu nav ul li {
  position: relative;
  margin: 0 8px; /* Отступы между пунктами */
  padding: 8px 12px; /* Внутренние отступы */
  border-radius: 6px; /* Скругление */
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center; /* Центрируем текст внутри каждого пункта */
}

.logo-menu nav ul li:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Лёгкая подсветка при наведении */
  transform: scale(1.05); /* Лёгкое увеличение */
}

.logo-menu nav ul li a {
  display: inline-block;
  padding: 8px 8px; /* Отступы вокруг текста */
  text-decoration: none;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px; /* Лёгкое растягивание букв */
}

.logo-menu nav ul li a:hover {
  text-decoration: underline; /* Подчёркивание при наведении */
  color: #4CAF50;
}

.hero-content {
  text-align: center; /* Выравнивание текста по центру */
  max-width: 900px; /* Максимальная ширина контейнера */
  margin: 0 auto; /* Центрирование контейнера на странице */
  padding: 60px 20px; /* Внутренние отступы сверху/снизу и по бокам */
  position: relative; /* Для возможного позиционирования псевдоэлементов */
  color: white; /* Цвет текста по умолчанию - белый, для контраста с фоном */
  z-index: 1; /* Чтобы контент был над фоном */
}

.hero-content h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem); /* Адаптивный размер шрифта: от 40px до 72px */
  margin-bottom: 15px; /* Отступ снизу */
  font-weight: 700; /* Жирный шрифт */
  letter-spacing: 1px; /* Небольшой интервал между буквами */
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* Тень для придания глубины */
}

.hero-content p {
  font-size: clamp(1.25rem, 3vw, 1.75rem); /* Адаптивный размер шрифта: от 20px до 28px */
  margin-bottom: 40px; /* Отступ снизу */
  font-weight: 500; /* Средняя жирность шрифта */
  line-height: 1.5; /* Межстрочный интервал для лучшей читаемости */
  color: rgba(54, 199, 61, 0.9); /* Слегка приглушенный белый */
  text-shadow: 0 2px 10px rgba(41, 38, 38, 0.3); /* Тень для увеличения читаемости */
}

.hero-content button, #acceptPrivacy {
  background-color: #4CAF50; /* Базовый зелёный цвет */
  color: white;
  padding: 12px 32px; /* Увеличенные отступы для «воздушности» */
  border: none;
  border-radius: 8px; /* Скругление углов */
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тень для объёма */
  transition: all 0.3s ease; /* Плавные переходы */
  display: inline-block;
  text-align: center;
  white-space: nowrap; /* Запрещаем перенос текста */
}

.hero-content button:hover, #acceptPrivacy:hover {
  background-color: #3e8e41; /* Тёмный оттенок при наведении */
  transform: translateY(-2px); /* Лёгкий подъём при наведении */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2); /* Усиленная тень */
}

.hero-content button:active, #acceptPrivacy:active {
  transform: translateY(0); /* Возврат в исходное положение при клике */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* Меньшая тень при нажатии */
}

.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: 50%;
}

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

.promo-video video {
  width: 100%;
  min-height: 260px;
  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: 480px) {
  .promo-video {
    width: 100%;
    padding: 10px;
  }
  .promo-video p {
    font-size: 14px;
  }
  .promo-video button {
    padding: 8px 16px;
    font-size: 14px;
  }

  .logo-menu nav ul {
    flex-direction: column;
    align-items: center;
    gap: 12px; /* Увеличенный зазор между пунктами */
  }

  .logo-menu nav ul li {
    width: 100%; /* Пункты занимают всю ширину */
    padding: 12px 16px; /* Увеличенные отступы */
  }
}

.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); /* Полупрозрачный фон */
  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;
}

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

/* Альтернативные кнопки */
.button-secondary {
background-color: #ccc;
color: #333;
padding: 12px 24px;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
font-weight: 500;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
}

.button-secondary:hover {
background-color: #aaa;
transform: translateY(-1px);
}

/* Градиентные кнопки */
.button-gradient {
background: linear-gradient(45deg, #4CAF50, #2E7D32); /* Градиент от светлого к тёмному */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Усиленная тень */
}

/* Круглые кнопки */
.button-circle {
width: 48px;
height: 48px;
border-radius: 50%; /* Делает кнопку круглой */
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
transition: background-color 0.3s ease;
}

.button-circle:hover {
background-color: #3e8e41;
}

/* Анимация появления кнопок */
.button-animate {
opacity: 0;
transform: translateY(20px);
animation: appear 0.5s ease-in-out forwards;
}

@keyframes appear {
to {
opacity: 1;
transform: translateY(0);
}
}

/* Адаптивность */
@media (max-width: 768px) {
.modal-content {
margin: 10% auto;
padding: 25px;
border-radius: 10px;
width: 95%;
max-width: 500px;
}

.modal-body {
max-height: 50vh;
font-size: 16px; /* Увеличенный размер шрифта */
}

.hero-content h1 {
font-size: 36px;
}

.hero-content p {
font-size: 20px;
}

.left-content h2 {
font-size: 28px;
}

.left-content p {
font-size: 16px;
}

.button-modern, #acceptPrivacy {
padding: 10px 20px; /* Меньшие отступы */
font-size: 16px;
margin: 5px 0; /* Отступы между кнопками */
}

.logo-menu {
flex-direction: column;
align-items: center;
text-align: center;
}

.logo-menu nav ul {
margin-top: 25px;
justify-content: center;
}

.hero-section {
  background-color: #2c3e50; /* Темный фон для контраста */
  padding: 20px 0;
  position: relative;
  border-bottom: 5px solid #f39c12; /* Яркая оранжевая полоса */
}

}

@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;
}

.button-modern, #acceptPrivacy {
width: 100%; /* Кнопки на всю ширину экрана */
padding: 14px; /* Увеличенный внутренний отступ */
margin: 8px 0; /* Большие отступы между кнопками */
}

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

.content-section,
.hero-content,
.promo-video {
padding-right: 5px;
margin-right: 0;
}

.social-links {
text-align: right; /* Выравниваем все ссылки по правому краю */
padding-right: 10px;
}

.social-links a {
display: block;
margin-bottom: 8px;
text-align: right; /* Текст ссылки по правому краю */
white-space: nowrap;
}
}

:focus {
outline: 2px solid #4CAF50;
outline-offset: 2px;
}

/* Отступ снизу для виджета (чтобы не закрывал контент) */
.userway-widget {
bottom: 20px !important;
z-index: 9999 !important;
}

/* Для мобильных: уменьшить размер кнопки */
@media (max-width: 768px) {
.userway-widget .uw-button {
width: 40px !important;
height: 40px !important;
}
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



.promo-banner {
  max-width: 360px; /* Стандартная ширина сторис */
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #f0f8ff 100%);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 150, 255, 0.15);
  overflow: hidden;
  position: relative;
  border: 4px solid #e1f5fe;
}

/* Верхняя часть с заголовком и роботом */
.banner-header {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #2196f3 0%, #00bcd4 100%);
  overflow: hidden;
}

.header-title {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  color: white;
  text-align: center;
  z-index: 3;
}

.header-title h1 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-title .subtitle {
  font-size: 14px;
  opacity: 0.95;
  font-weight: 500;
}

/* Декоративные элементы */
.gear-left {
  position: absolute;
  top: -10px;
  left: -15px;
  font-size: 50px;
  color: #ffc107;
  animation: rotate 4s linear infinite;
  z-index: 2;
}

.gear-right {
  position: absolute;
  top: -5px;
  right: -10px;
  font-size: 40px;
  color: #ff9800;
  animation: rotate-reverse 4s linear infinite;
  z-index: 2;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Основной логотип */
.logo-section {
  position: absolute;
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 4;
}

.logo-main {
  font-size: 28px;
  font-weight: bold;
  background: linear-gradient(45deg, #fff 0%, #e3f2fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 2px;
  line-height: 1.1;
}

.logo-world {
  font-size: 20px;
  color: white;
  font-weight: 600;
}

/* Контентная часть */
.banner-content {
  padding: 30px 25px 25px;
  text-align: center;
}

.course-description {
  color: #1976d2;
  font-size: 14px;
  margin-bottom: 25px;
  line-height: 1.4;
  font-weight: 500;
}

/* Иконки преимуществ */
.features-grid {
  display: flex;
  justify-content: space-around;
  margin-bottom: 25px;
  gap: 15px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.feature-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #2196f3, #21cbf3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.feature-icon svg {
  font-size: 24px;
  color: white;
}

.feature-text {
  font-size: 11px;
  color: #333;
  font-weight: 600;
  line-height: 1.2;
}

/* Кнопка CTA */
.cta-button {
  display: block;
  background: linear-gradient(45deg, #00ff22, #30aa63);
  color: white;
  text-decoration: none;
  padding: 18px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 152, 0, 0.5);
}

.cta-button:active {
  transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 400px) {
  .promo-banner {
      max-width: 100%;
      margin: 10px;
  }

  .features-grid {
      flex-direction: column;
      gap: 10px;
  }
}

/* Эффект свечения для кнопки */
.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}
