/* Глобальные исправления для карусели и шапки */
html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  height: 100%;
}

.carousel {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.carousel-inner {
  width: 100%;
  border-radius: 0 !important;
}

.carousel-item img {
  width: 100%;
  object-fit: cover;
}

.navbar {
  padding-left: 15px !important;
  padding-right: 15px !important;
}



/* ==================== */
/* ГЛОБАЛЬНЫЕ СТИЛИ */
/* ==================== */
:root {
  /* Основные цвета */
  --primary-color: #2563eb;       /* Яркий синий (основной) */
  --primary-light: #3b82f6;       /* Светлый синий */
  --primary-dark: #1d4ed8;        /* Тёмный синий */
  --secondary-color: #7c3aed;     /* Фиолетовый */
  --secondary-light: #8b5cf6;     /* Светлый фиолетовый */
  --dark-color: #0f172a;         /* Тёмно-синий (почти чёрный) */
  --dark-medium: #1e293b;        /* Тёмный серо-синий */
  
  /* Акцентные цвета */
  --accent-blue: #38bdf8;        /* Голубой */
  --accent-teal: #2dd4bf;        /* Бирюзовый */
  --accent-pink: #ec4899;        /* Розовый */
  --accent-yellow: #f59e0b;      /* Жёлтый */
  
  /* Светлая палитра */
  --light-color: #f8fafc;        /* Светлый фон */
  --light-gray: #e2e8f0;         /* Серая подложка */
  --text-dark: #1e293b;          /* Тёмный текст */
  --text-light: #ffffff;         /* Светлый текст */
  
  /* Градиенты */
  --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-blue: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-blue) 100%);
  --gradient-dark: linear-gradient(to right, var(--dark-color), #312e81);
  --gradient-accent: linear-gradient(45deg, var(--accent-pink), var(--accent-yellow));
  
  /* Тени */
  --shadow-sm: 0 2px 8px rgba(37, 99, 235, 0.1);
  --shadow-md: 0 4px 16px rgba(124, 58, 237, 0.2);
  --shadow-lg: 0 15px 30px rgba(15, 23, 42, 0.15);
  
  /* Эффекты */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  --vh: 1vh;
}

/* Базовые стили (без изменений в структуре) */
body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  background-color: var(--light-color);
  line-height: 1.7;
  font-size: 1.1rem;
  overflow-x: hidden;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;

}

    

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

a {
  text-decoration: none;
  transition: var(--transition);
  color: var(--primary-color);
}

a:hover {
  color: var(--secondary-color);
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Секции */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient);
}

.bg-light {
  background-color: var(--light-color) !important;
}

/* Кнопки */
.btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px 30px;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-blue);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
}

/* Общие стили шапки */
.navbar {
  min-height: 80px; /* Большая высота */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding-left: 30px; /* Отступ слева */
  padding-right: 30px; /* Отступ справа */
}

.navbar-brand {
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 50px; /* Отступ от лого до меню */
}

.navbar-nav {
  align-items: center; /* Выравнивание по вертикали */
}

.nav-link {
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem !important;
  height: 100%; /* Высота как у шапки */
}

.nav-link i {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.nav-link span {
  white-space: nowrap; /* Запрет переноса текста */
  position: relative;
}

.nav-link:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.nav-link:hover i {
  transform: translateY(-5px);
}

/* Анимация подчеркивания */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 10px; /* Позиция подчеркивания - ближе к тексту */
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.dropdown-menu {
  background-color: #343a40;
}

.dropdown-item {
  color: rgba(255,255,255,.75);
}

.dropdown-item:hover {
  background-color: #495057;
  color: #fff;
}

.phone-dropdown {
  margin-left: auto; /* Выравнивание телефонов вправо */
}




/* Карточки */
.card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(18, 10, 143, 0.15);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: var(--gradient-blue);
  color: white;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Формы */
.form-control, .form-select {
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  transition: var(--transition);
  background-color: white;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
  outline: none;
}

/* Анимации (без изменений) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeInUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }



/* Списки */
ul.feature-list {
  list-style: none;
  padding-left: 0;
}

ul.feature-list li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
}

ul.feature-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Footer Styles */
#main-footer {
  background: var(--dark-color);
  color: var(--text-light);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 0 !important;
}

#main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAyKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
  opacity: 0.03;
  z-index: 0;
}

#main-footer .container {
  position: relative;
  z-index: 1;
}

#main-footer h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  display: inline-block;
}

#main-footer h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

#main-footer a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  opacity: 0.8;
}

#main-footer a:hover {
  color: var(--accent-blue);
  opacity: 1;
  text-decoration: none;
}

#main-footer .d-flex {
  margin-bottom: 1.25rem;
}

#main-footer .d-flex i {
  color: var(--primary-color);
  font-size: 1.1rem;
  width: 20px;
}

#main-footer p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

#main-footer ul li {
  margin-bottom: 0.75rem;
}
#main-footer > .container:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Decorative Elements */
#main-footer::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 70%);
  z-index: 0;
}



/* Responsive Adjustments */
@media (max-width: 992px) {
  #main-footer {
    padding: 3rem 0 0;
  }
  
  #main-footer .col-lg-4 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  #main-footer h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  #main-footer .d-flex {
    margin-bottom: 1rem;
  }
  
  #main-footer p {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  #main-footer {
    padding: 2.5rem 0 0;
  }
  
  .footer-bottom {
    padding-top: 1.5rem !important;
  }
}


/* ==================== */
/* ОБЩИЕ СТИЛИ КАРУСЕЛИ */
/* ==================== */
.carousel {
  overflow: hidden;
  width: 100%;
}


.carousel-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carousel-inner {
  width: 100%;
  overflow: hidden;
  border-radius: 0;
}

.carousel-item {
  height: 650px;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Элементы управления */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-control-prev {
  left: 30px;
}

.carousel-control-next {
  right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 30px;
  height: 30px;
}

/* Индикаторы */
.carousel-indicators {
  bottom: 30px;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 8px;
  background-color: rgba(255,255,255,0.5);
  border: none;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  background-color: white;
  transform: scale(1.2);
}

/* Подписи */
.carousel-caption {
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.carousel-caption h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.carousel-caption p {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.9);
}

.carousel-caption .btn {
  font-size: 1.1rem;
  padding: 12px 30px;
}

/* Эффекты */
.carousel::before,
.carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  z-index: 1;
  pointer-events: none;
}

.carousel::before {
  left: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.carousel::after {
  right: 0;
  background: linear-gradient(270deg, rgba(0,0,0,0.3) 0%, transparent 100%);
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Адаптация для мобильных устройств */
@media (max-width: 991.98px) {
  .navbar {
    padding-left: 15px;
    padding-right: 15px;
    min-height: 60px;
  }
  
  .navbar-brand {
    margin-right: 0;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .phone-dropdown {
    margin-left: auto !important;
    margin-right: 8px;
  }
  
  .phone-dropdown .dropdown-toggle {
    padding: 0.4rem 0.6rem !important;
    min-width: 40px;
  }
  
  .navbar-toggler {
    padding: 0.25rem;
    margin-left: 0;
  }
  
  .navbar-toggler-icon {
    width: 1.2em;
    height: 1.2em;
  }
}

/* Общие улучшения для всех устройств */
.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.1);
}

.phone-dropdown .dropdown-toggle {
  transition: all 0.3s ease;
  border-radius: 4px;
}

.phone-dropdown .dropdown-toggle:hover {
  background-color: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .carousel-caption {
    display: block !important;
    bottom: 20px;
  }
  .carousel-caption h5 {
    font-size: 1rem;
  }
  .carousel-caption p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  .carousel-caption .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 767.98px) {
  #main-footer .col-lg-4, 
  #main-footer .col-lg-2, 
  #main-footer .col-lg-6 {
    margin-bottom: 2rem;
  }
  .footer-bottom {
    text-align: center;
  }
}

/* Базовая адаптация изображений */
img {
  max-width: 100%;
  height: auto;
}

/* Улучшение читаемости текста на малых экранах */
@media (max-width: 575.98px) {
  body {
    font-size: 0.95rem;
  }
  h1, .display-4 {
    font-size: 2rem;
  }
  h2, .display-5 {
    font-size: 1.75rem;
  }
}

/* Фикс для iOS input zoom */
@media (max-width: 767.98px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Адаптация для мобильных */
@media (max-width: 767.98px) {
  .container, .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  .row {
    margin-left: -12px !important;
    margin-right: -12px !important;
  }
  
  [class*="col-"] {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  .carousel-item img {
    min-height: 300px;
  }
  
  .navbar-brand {
    max-width: 70%;
  }
}

/* Обновленные стили для мобильной карусели */
@media (max-width: 767.98px) {
  .carousel {
    width: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .carousel-item {
    height: 350px; /* Уменьшенная высота */
  }

  .carousel-caption {
    bottom: 40px; /* Поднимаем выше (было 20px) */
    transform: translateX(-50%) translateY(0); /* Убираем лишнее смещение */
    left: 50%;
    width: 90%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.7); /* Чуть темнее фон для лучшей читаемости */
    border-radius: 8px;
  }

  .carousel-caption h3 {
    font-size: 1.1rem; /* Уменьшенный размер заголовка */
    margin-bottom: 0.5rem;
  }

  .carousel-caption p {
    font-size: 0.85rem; /* Уменьшенный размер текста */
    margin-bottom: 0.8rem;
    line-height: 1.3;
  }

  .carousel-caption .btn {
    font-size: 0.8rem; /* Уменьшенный размер кнопки */
    padding: 5px 12px;
  }

  /* Стили для стрелок */
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px; /* Уменьшенный размер */
    height: 40px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 20px; /* Уменьшенный размер иконки */
    height: 20px;
  }

  .carousel-indicators {
    bottom: 5px;
  }

  .carousel-indicators [data-bs-target] {
    width: 8px; /* Уменьшенный размер индикаторов */
    height: 8px;
    margin: 0 4px;
  }
}

/* Дополнительные корректировки для очень маленьких экранов */
@media (max-width: 400px) {
  .carousel-item {
    height: 300px;
  }

  carousel-caption {
    bottom: 30px; /* Чуть ниже для очень маленьких экранов */
    width: 95%;
    padding: 8px;
  }

  .carousel-caption h3 {
    font-size: 1rem;
  }

  .carousel-caption p {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .carousel-caption .btn {
    font-size: 0.7rem;
    padding: 4px 12px;
  }
}

/* Скрытие стрелок карусели на мобильных устройствах */
@media (max-width: 767.98px) {
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }
}

.navbar-brand img {
    height: 50px !important; /* Увеличиваем с 30px до 40px */
    width: auto;
    transition: all 0.3s ease;
  }
  
  /* Для очень маленьких экранов можно сделать еще больше */
  @media (max-width: 400px) {
    .navbar-brand img {
      height: 45px !important;
    }
  }
}  


