/*! Place your custom styles here */

/* ========================================
   MODERN DESIGN IMPROVEMENTS
   ======================================== */

/* Typography Enhancements - мягкое улучшение */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   HERO SECTION - SOPHISTICATED GRADIENT
   ======================================== */

.imagebg.parallax.height-70 {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fbfd 0%, #ffffff 30%, #f5f9fc 70%, #f0f7fb 100%);
}

/* Анимированный mesh слой */
.imagebg.parallax.height-70::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(186, 230, 253, 0.35) 0%, transparent 40%),
    radial-gradient(circle at 80% 25%, rgba(224, 242, 254, 0.4) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 35%),
    radial-gradient(circle at 15% 75%, rgba(191, 219, 254, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(147, 197, 253, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 40% 15%, rgba(219, 234, 254, 0.25) 0%, transparent 35%),
    radial-gradient(circle at 65% 85%, rgba(186, 230, 253, 0.28) 0%, transparent 38%);
  animation: meshMove 25s ease-in-out infinite;
  z-index: 1;
}

/* Анимация mesh */
@keyframes meshMove {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(2%, -2%) rotate(1deg);
  }
  50% {
    transform: translate(-1%, 1%) rotate(-1deg);
  }
  75% {
    transform: translate(1%, -1%) rotate(0.5deg);
  }
}

/* Скрываем фоновое изображение на всех устройствах */
.imagebg.parallax.height-70 .background-image-holder {
  display: none !important;
}

/* Контент поверх фона */
.imagebg.parallax.height-70 .container {
  position: relative;
  z-index: 10;
}

/* Modern Button Styles */
.btn--primary {
  background: linear-gradient(135deg, #2374ab 0%, #1a5a8a 100%);
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(35, 116, 171, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(35, 116, 171, 0.35);
  background: linear-gradient(135deg, #1a5a8a 0%, #2374ab 100%);
}

.btn--primary:hover::before {
  left: 100%;
}

/* Feature Cards Enhancement */
.feature-6 {
  padding: 32px 24px;
  border-radius: 12px;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e8f0;
  height: 100%;
}

.feature-6:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e0;
}

.feature-6 .icon--sm {
  font-size: 2.8em;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.feature-6:hover .icon--sm {
  transform: scale(1.08);
}

.feature-6 h5 {
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

/* Projects Section */
#projects {
  background: linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%);
  padding-bottom: 80px !important;
}

#projects .row.mt-5:last-child {
  margin-bottom: -40px;
}

/* Contact Section Enhancement */
#contacts .lead a {
  color: #2374ab;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

#contacts .lead a:hover {
  color: #1a5a8a;
  border-bottom-color: #2374ab;
}

/* Form Enhancements */
.form-email input[type="text"],
.form-email input[type="email"],
.form-email textarea {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.2s ease;
  background: #ffffff;
}

.form-email input[type="text"]:focus,
.form-email input[type="email"]:focus,
.form-email textarea:focus {
  border-color: #2374ab;
  box-shadow: 0 0 0 3px rgba(35, 116, 171, 0.1);
  outline: none;
}

.form-email label {
  font-weight: 600;
  margin-bottom: 8px;
}

.form-email textarea {
  resize: vertical;
  min-height: 120px;
}

/* Checkbox Enhancement */
.form-check {
  padding: 16px !important;
  background: #f7fafc !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
}

.form-check.d-flex.align-items-center {
  align-items: center !important;
  gap: 12px !important;
}

.form-check-input[type="checkbox"] {
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.form-check-label.ms-2 {
  margin-left: 0 !important;
}

.form-check-label a {
  color: #2374ab;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.form-check-label a:hover {
  border-bottom-color: #2374ab;
}

/* Success Message */
.contact-msg-success {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 8px;
  padding: 16px;
  color: #166534 !important;
}

/* Coming Soon Banner */
.coming-soon-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 200px;
  background: linear-gradient(135deg, #5a9bc7 0%, #4a8db8 50%, #6aadce 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(237, 242, 247, 0) 0%, rgba(237, 242, 247, 0.7) 50%, rgba(237, 242, 247, 1) 80%);
  z-index: 1;
}

.coming-soon-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.coming-soon-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.coming-soon-content h3 {
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

@media (max-width: 767px) {
  .coming-soon-banner {
    height: 150px;
  }
  
  .coming-soon-content h3 {
    font-size: 1.5rem;
  }
}

/* Mobile Section Improvements */
@media (max-width: 767px) {
  /* Компактная секция "Powering the Future" */
  section.text-center {
    padding: 50px 0 40px !important;
  }
  
  section.text-center h2 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
    padding: 0 20px !important;
  }
  
  section.text-center .lead {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    padding: 0 24px !important;
    margin-bottom: 0 !important;
  }
  
  section.text-center .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Contact Section Mobile Alignment */
@media (max-width: 767px) {
  #contacts .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  #contacts .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  #contacts .col-md-5 {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }
  
  #contacts .col-md-6 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Контейнер кнопки */
  #contacts .form-email .col-md-5,
  #contacts .form-email .col-lg-4,
  #contacts .form-email .col-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Кнопка Send Enquiry на мобильных - аккуратная */
  #contacts .form-email .btn--primary,
  #contacts button[type="submit"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 16px 24px !important;
    font-size: 1rem !important;
    margin-top: 8px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }
}

/* Responsive Styles */
@media (max-width: 767px) {
  .feature-row {
    flex-wrap: wrap !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .feature-6-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-bottom: 24px;
    box-sizing: border-box;
  }
  .feature-6 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .feature-section-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  /* Улучшенная мобильная шапка */
  .height-70 {
    height: 65vh !important;
    min-height: 550px !important;
    display: flex;
    align-items: center;
    padding: 40px 0 !important;
  }
  
  .height-70 .container.pos-vertical-center {
    top: 0 !important;
    transform: none !important;
    position: static !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0 24px !important;
  }
  
  /* Увеличиваем логотип на мобильных */
  .height-70 img[alt="Image"] {
    max-width: 85% !important;
    width: 85% !important;
    margin: 0 auto 16px !important;
  }
  
  /* Текст подзаголовка - тонкий черный */
  .height-70 .lead,
  .height-70 p.lead,
  section.height-70 .lead,
  section.height-70 p.lead {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
    margin-top: 24px !important;
    margin-bottom: 0 !important;
    font-weight: 300 !important;
    letter-spacing: -0.01em !important;
    max-width: 85% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    color: #1a1a1a !important;
  }
  
  /* Убираем границу фона */
  .height-70 .background-image-holder {
    display: none !important;
  }
  
  /* Увеличиваем кнопку */
  .height-70 .btn--primary {
    font-size: 1.05rem !important;
    padding: 16px 40px !important;
    min-width: 180px !important;
    max-width: 220px !important;
    border-radius: 12px !important;
    margin-top: 32px !important;
    box-shadow: 0 6px 20px rgba(35, 116, 171, 0.3) !important;
  }
}

/* Disabled Button Styles */
.btn-disabled-custom,
.btn[disabled],
button[disabled] {
  background: #b3b3b3 !important;
  border-color: #b3b3b3 !important;
  color: #fff !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transition: none !important;
  filter: none !important;
  transform: none !important;
  pointer-events: auto !important;
}

.btn-disabled-custom:hover,
.btn[disabled]:hover,
button[disabled]:hover,
.btn-disabled-custom:focus,
.btn[disabled]:focus,
button[disabled]:focus,
.btn-disabled-custom:active,
.btn[disabled]:active,
button[disabled]:active {
  background: #b3b3b3 !important;
  border-color: #b3b3b3 !important;
  color: #fff !important;
  box-shadow: none !important;
  transition: none !important;
  filter: none !important;
  transform: none !important;
  outline: none !important;
}

/* Era of Valor Banner Styles */
.eov-banner-link {
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease;
}

.eov-banner-link:hover {
  transform: translateY(-5px);
  text-decoration: none;
}

.eov-banner-link:focus,
.eov-banner-link:active {
  text-decoration: none;
}

.eov-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 400px;
}

.eov-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.eov-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eov-overlay-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
  pointer-events: none;
  opacity: 0.7;
}

.eov-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 400px;
  gap: 40px;
}

.eov-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 0;
  margin-left: -80px;
}

.eov-right {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  align-self: stretch;
  margin-bottom: -40px;
  margin-right: -30px;
  margin-left: -50px;
}

.eov-logo-container {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.eov-logo {
  max-width: 336px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
  display: block;
}

.eov-characters {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.eov-chars {
  max-width: 1100px;
  width: 120%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
}

.eov-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 250px;
}

.eov-text p {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 28px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
  font-weight: 500;
  max-width: 336px;
  text-align: center;
}

.eov-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 17px 36px;
  border-radius: 14px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.eov-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.eov-banner-link:hover .eov-cta::before {
  left: 100%;
}

.eov-banner-link:hover .eov-cta {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}

.eov-icon {
  transition: transform 0.4s ease;
}

.eov-banner-link:hover .eov-icon {
  transform: rotate(90deg);
}

/* Responsive styles for EOV banner */
@media (max-width: 991px) {
  .eov-content {
    flex-direction: column;
    padding: 40px 30px;
    gap: 30px;
  }
  
  .eov-left {
    align-items: center;
    padding-left: 0;
    width: 100%;
  }
  
  .eov-right {
    align-items: flex-end;
    justify-content: center;
    margin-bottom: -40px;
    margin-right: 0;
    margin-left: 0;
  }
  
  .eov-logo-container {
    display: flex;
    justify-content: center;
  }
  
  .eov-text {
    align-items: center;
    width: 100%;
  }
  
  .eov-text p {
    text-align: center;
    font-size: 17px;
  }
  
  .eov-logo {
    max-width: 250px;
  }
  
  .eov-chars {
    max-width: 550px;
    width: 120%;
  }
}

@media (max-width: 767px) {
  .eov-banner {
    min-height: 350px;
  }
  
  .eov-content {
    min-height: 350px;
    padding: 30px 20px;
    gap: 20px;
  }
  
  .eov-left {
    margin-left: 0;
    align-items: center;
  }
  
  .eov-right {
    margin-bottom: -30px;
    margin-right: 0;
    margin-left: 0;
  }
  
  .eov-logo {
    max-width: 200px;
  }
  
  .eov-chars {
    max-width: 400px;
    width: 110%;
  }
  
  .eov-text p {
    font-size: 15px;
    margin-bottom: 20px;
  }
  
  .eov-cta {
    padding: 12px 28px;
    font-size: 14px;
  }
}
