/**
 * Основные стили промо-страницы SEO-fadmin
 * Минималистичный tech-стиль
 * Версия 2.0 - контрастный текст, Arial, крупный шрифт
 */

body {
  font-family: Arial, sans-serif;
  font-size: 18px;
  color: #000000;
  line-height: 1.7;
}

.hero {
  background: #f5f7fb;
}

.section-title {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 2.25rem;
  color: #000000;
}

.section-subtitle {
  color: #000000;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #e9f1ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.btn-main {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  font-size: 1.1rem;
}

.cta-note {
  font-size: 1.05rem;
  color: #000000;
  font-weight: 500;
}

.bg-light-alt {
  background: #f8f9fb;
}

footer {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  color: #000000;
  font-size: 1rem;
}

/* Логотип в навигации */
.navbar-brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  .navbar-brand {
    flex-direction: row;
  }
  
  .navbar-brand img {
    height: 28px;
  }
}

/* Стили для планшетов (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Скрываем описание в navbar-brand на планшетах */
  .navbar-brand span.text-muted {
    display: none;
  }
  
  /* Уменьшаем размер шрифта навигации */
  .navbar-nav.small {
    font-size: 0.9rem;
  }
  
  .navbar-nav {
    white-space: nowrap;
  }
  
  .nav-item {
    white-space: nowrap;
  }
  
  .nav-link {
    font-size: 0.9rem !important;
    white-space: nowrap;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  /* Компактная кнопка Telegram */
  .navbar .btn-primary {
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
    white-space: nowrap;
  }
  
  .navbar .btn-primary i {
    font-size: 0.9rem;
  }
  
  /* Уменьшаем отступы между элементами навигации */
  .navbar-nav .nav-item + .nav-item {
    margin-left: 0.25rem;
  }
}

/* Стили для нешироких экранов (992px - 1400px) */
@media (min-width: 992px) and (max-width: 1400px) {
  /* Компактный navbar-brand */
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-brand span.text-muted {
    font-size: 0.75rem;
  }
  
  /* Компактная навигация */
  .navbar-nav.small {
    font-size: 0.95rem;
  }
  
  .nav-link {
    font-size: 0.95rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    white-space: nowrap;
  }
  
  /* Компактная кнопка Telegram */
  .navbar .btn-primary {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
  }
  
  .navbar .btn-primary i {
    font-size: 0.95rem;
  }
  
  /* Уменьшаем отступы между элементами */
  .navbar-nav .nav-item + .nav-item {
    margin-left: 0.25rem;
  }
  
  /* Уменьшаем отступ между навигацией и кнопкой */
  .navbar .btn-primary.ms-lg-3 {
    margin-left: 0.75rem !important;
  }
  
  /* Скрываем название бота на нешироких экранах */
  .navbar .btn-primary .btn-bot-username {
    display: none;
  }
}

/* Улучшения для доступности */
a:focus,
button:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* Оптимизация изображений */
img {
  max-width: 100%;
  height: auto;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Контрастный текст - черный цвет */
p, li, span, div {
  color: #000000;
}

.text-muted {
  color: #000000 !important;
  opacity: 0.8;
}

.lead {
  color: #000000;
  font-size: 1.35rem;
  font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
  color: #000000;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

.navbar-brand {
  color: #000000 !important;
  font-size: 1.1rem;
}

.nav-link {
  color: #000000 !important;
  font-size: 1rem;
}

.nav-link:hover {
  color: #0d6efd !important;
}

/* Крупный шрифт для лучшей читаемости */
small {
  font-size: 1rem;
}

.small {
  font-size: 1rem;
}

/* Accordion стили */
.accordion-button {
  color: #000000;
  font-weight: 600;
  font-size: 1.15rem;
}

.accordion-body {
  color: #000000;
  font-size: 1.05rem;
  line-height: 1.8;
}

.accordion-body p {
  margin-bottom: 1rem;
  color: #000000;
}

.accordion-body ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.accordion-body li {
  margin-bottom: 0.5rem;
  color: #000000;
}

/* Карточки и блоки */
.card {
  color: #000000;
}

.card-title {
  color: #000000;
  font-weight: 700;
}

.card-text {
  color: #000000;
}

/* Списки */
ul, ol {
  color: #000000;
}

li {
  color: #000000;
  font-size: 1rem;
}

/* Кнопки */
.btn {
  font-size: 1.05rem;
}

/* Display классы Bootstrap - увеличенный размер */
.display-1 {
  font-size: 4rem;
}

.display-2 {
  font-size: 3.5rem;
}

.display-3 {
  font-size: 3rem;
}

.display-4 {
  font-size: 2.5rem;
}

.display-5 {
  font-size: 2.25rem;
}

.display-6 {
  font-size: 2rem;
}

/* Плавающая кнопка Telegram */
.telegram-float-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0088cc;
  font-size: 72px;
  text-decoration: none;
  z-index: 1000;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.3s ease, color 0.2s ease;
  cursor: pointer;
}

.telegram-float-button:hover {
  color: #0077b3;
  transform: translateY(-2px);
}

.telegram-float-button:active {
  transform: translateY(0);
}

.telegram-float-button i {
  display: block;
  color: inherit;
  font-size: inherit;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Мобильная адаптация для плавающей кнопки */
@media (max-width: 768px) {
  .telegram-float-button {
    bottom: 20px;
    right: 20px;
    font-size: 58px;
  }
}