/* ============================================
   ГЛАВНАЯ СТРАНИЦА - ИСПРАВЛЕНИЕ ФУТЕРА
   ============================================ */

/* ----- БАЗОВЫЕ НАСТРОЙКИ ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Comfortaa', cursive;
  background: #F5F7FA;
  min-height: 100vh;
}

/* ----- ОБЕРТКА ДЛЯ КОНТЕНТА ----- */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* ----- ОСНОВНОЙ КОНТЕНТ ----- */
.main-content {
  flex: 1 0 auto;
  width: 100%;
  padding: 20px 0 40px;
}

/* ----- ФУТЕР ----- */
footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  background: #0F2B6E;
}

/* ----- КОНТЕЙНЕРЫ ----- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.main-page {
  width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

[class*="col-"] {
  padding: 0 15px;
}

/* ===== ЗАГОЛОВОК ===== */
.hero-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 0 10px;
}

.main-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.welcome-text {
  font-size: 16px;
  font-weight: 500;
  color: #6B7280;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.company-name {
  font-size: 28px;
  font-weight: 700;
  color: #1E3A8A;
  text-transform: uppercase;
  letter-spacing: 2px;
  word-break: break-word;
}

.company-name::before,
.company-name::after {
  display: none;
}

.header-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.decoration-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #F59E0B, transparent);
}

.decoration-icon {
  color: #F59E0B;
  font-size: 16px;
  animation: fly 3s ease-in-out infinite;
}

@keyframes fly {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

/* ===== КОЛОНКИ ===== */
.content-row {
  margin-top: 20px;
}

/* Левая колонка */
.col-lg-7 {
  margin-bottom: 30px;
}

.d-flex {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.image-wrapper {
  width: 100%;
  background: none;
  border-radius: 16px;
}

.image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.image-container:hover {
  transform: translateY(-5px);
}

.featured-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.image-container:hover .featured-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(30,58,138,0.9), transparent);
  padding: 20px 15px 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
  opacity: 1;
}

.overlay-text {
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Правая колонка */
.content-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid #E5E7EB;
  height: 100%;
}

.content-section {
  margin-bottom: 25px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1E3A8A;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid rgba(245,158,11,0.3);
  padding-bottom: 8px;
}

.title-icon {
  font-size: 22px;
}

.lead-text {
  font-size: 15px;
  font-weight: 500;
  color: #1E3A8A;
  background: rgba(30,58,138,0.05);
  padding: 18px;
  border-radius: 12px;
  border-left: 4px solid #F59E0B;
  line-height: 1.6;
}

.text-accent {
  color: #F59E0B;
}

/* Теги флота */
.fleet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.fleet-tag {
  background: rgba(30,58,138,0.05);
  color: #1E3A8A;
  padding: 6px 14px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(30,58,138,0.2);
  transition: all 0.3s ease;
}

.fleet-tag:hover {
  background: #1E3A8A;
  color: white;
  transform: translateY(-2px);
}

/* Список направлений */
.destinations-list {
  list-style: none;
  margin: 12px 0 0;
}

.destinations-list li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(30,58,138,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.destinations-list li:last-child {
  border-bottom: none;
}

.destinations-list i {
  color: #F59E0B;
  font-size: 14px;
  flex-shrink: 0;
}

/* Слоган */
.slogan-section {
  margin-top: 25px;
}

.slogan-box {
  background: linear-gradient(135deg, #1E3A8A 0%, #0F2B6E 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 5px 15px rgba(30,58,138,0.2);
}

.slogan-icon {
  color: #F59E0B;
  font-size: 18px;
  animation: sparkle 2s infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.slogan-text {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

/* ===== РЕАКТ КОМПОНЕНТЫ ===== */
#react-fleet-block,
#react-hubs-block,
#react-liveboard {
  width: 100%;
  margin-top: 25px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 991px) {
  .company-name {
    font-size: 24px;
  }
  
  .welcome-text {
    font-size: 14px;
  }
  
  .lead-text {
    font-size: 14px;
    padding: 15px;
  }
  
  .section-title {
    font-size: 18px;
  }
  
  .slogan-text {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 15px 0 30px;
  }
  
  .hero-header {
    margin-bottom: 20px;
  }
  
  .welcome-text {
    font-size: 12px;
  }
  
  .company-name {
    font-size: 20px;
  }
  
  .header-decoration {
    gap: 8px;
  }
  
  .decoration-line {
    width: 30px;
  }
  
  .content-card {
    padding: 20px 15px;
  }
  
  .lead-text {
    font-size: 13px;
    padding: 12px;
  }
  
  .fleet-tag {
    font-size: 12px;
    padding: 5px 10px;
  }
  
  .destinations-list li {
    font-size: 13px;
    padding: 6px 0;
  }
  
  .slogan-box {
    padding: 15px;
  }
  
  .slogan-text {
    font-size: 13px;
  }
  
  .image-overlay {
    opacity: 1;
    padding: 12px 10px;
  }
  
  .overlay-text {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 12px;
  }
  
  .welcome-text {
    font-size: 11px;
  }
  
  .company-name {
    font-size: 18px;
  }
  
  .lead-text {
    font-size: 12px;
    padding: 10px;
  }
  
  .section-title {
    font-size: 16px;
  }
  
  .fleet-tag {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .slogan-text {
    font-size: 12px;
  }
  
  .overlay-text {
    font-size: 10px;
  }
}

/* ===== ССЫЛКИ НА ИЗОБРАЖЕНИЯ ПОДРАЗДЕЛЕНИЙ ===== */
.image-wrapper-link {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
}

.image-wrapper-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.image-wrapper {
  margin: 0;
  height: 100%;
}

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.image-container img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.image-wrapper-link:hover .image-container img {
  transform: scale(1.05);
}

/* Оверлей при наведении */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30,58,138,0.85) 0%, rgba(15,43,110,0.9) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  gap: 12px;
}

.image-wrapper-link:hover .image-overlay {
  opacity: 1;
}

.overlay-text {
  color: white;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.image-wrapper-link:hover .overlay-text {
  transform: translateY(0);
}

.overlay-link-icon {
  width: 50px;
  height: 50px;
  background: #F59E0B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.image-wrapper-link:hover .overlay-link-icon {
  transform: translateY(0);
}

.overlay-link-icon i {
  font-size: 24px;
  color: #1E3A8A;
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
  .overlay-text {
    font-size: 18px;
  }
  
  .overlay-link-icon {
    width: 40px;
    height: 40px;
  }
  
  .overlay-link-icon i {
    font-size: 18px;
  }
}

/* Адаптивность для телефонов */
@media (max-width: 480px) {
  .overlay-text {
    font-size: 14px;
  }
  
  .overlay-link-icon {
    width: 35px;
    height: 35px;
  }
  
  .overlay-link-icon i {
    font-size: 16px;
  }
}
/* ===== СЕКЦИЯ СЛОГАНА С КНОПКОЙ ===== */
.slogan-section {
  margin: 30px 0 20px;
}

.slogan-box-link {
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.slogan-box-link:hover {
  transform: translateY(-5px);
}

.slogan-box-link:hover .slogan-box {
  background: linear-gradient(135deg, #1E3A8A 0%, #0F2B6E 100%);
  border-color: #F59E0B;
}

.slogan-box-link:hover .slogan-text {
  color: #F59E0B;
}

.slogan-box-link:hover .btn-apply {
  background: #F59E0B;
  color: #1E3A8A;
  gap: 12px;
}

.slogan-box {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border-radius: 24px;
  padding: 25px 30px;
  text-align: center;
  border: 2px solid #E5E7EB;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.slogan-icon {
  color: #F59E0B;
  font-size: 20px;
  margin: 0 8px;
}

.slogan-text {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: #1E3A8A;
  margin: 0;
  transition: color 0.3s ease;
}

.slogan-button {
  text-align: center;
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1E3A8A;
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-apply i {
  font-size: 16px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .slogan-box {
    padding: 20px;
  }
  
  .slogan-text {
    font-size: 16px;
  }
  
  .btn-apply {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .slogan-icon {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .slogan-box {
    padding: 15px;
  }
  
  .slogan-text {
    font-size: 14px;
    display: block;
    margin: 10px 0;
  }
  
  .slogan-icon {
    display: none;
  }
  
  .btn-apply {
    padding: 10px 16px;
    font-size: 12px;
    width: 100%;
  }
}