/* ============================================
   NEW GLAS 2026 - Components CSS
   Styles for shortcodes and page components
   ============================================ */

/* Prevent horizontal scroll */
body {
  overflow-x: hidden !important;
}

#allwrapper {
  overflow-x: hidden !important;
}

/* Ограничение ширины контента для экранов 1920px и адаптив под мобильные */
.ng-main-container {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Стилизация заголовков страниц */
.ng-page-heading {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1a252f !important;
  margin: 30px 0 20px 0 !important;
  padding: 10px 18px !important;
  background: #f0f5f9 !important;
  border: 1px solid #d0dce5 !important;
  border-left: 6px solid #0088cc !important;
  border-radius: 2px !important;
  display: block !important;
  line-height: 1.3 !important;
  clear: both !important;
}

/* Оболочка карусели */
.ng-slider-box {
  position: relative !important;
  background: #ffffff !important;
  border: 2px solid #c8d6e2 !important;
  border-radius: 2px !important;
  overflow: hidden !important;
  margin-bottom: 35px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
  min-height: 80vh !important;
}

.ng-slide-card {
  display: none !important;
  flex-wrap: wrap !important;
  animation: ngFadeAnimation 0.3s ease-in-out;
  min-height: 80vh !important;
}

.ng-slide-card.active {
  display: flex !important;
}

@keyframes ngFadeAnimation {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ng-slide-info {
  flex: 1 1 400px !important;
  padding: 40px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.ng-slide-info h3 {
  font-size: 24px !important;
  color: #1a252f !important;
  margin: 0 0 18px 0 !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #0088cc !important;
  padding-bottom: 10px !important;
  display: inline-block !important;
}

.ng-slide-info p {
  font-size: 16px !important;
  color: #4a5c6e !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}

.ng-slide-photos {
  flex: 1 1 500px !important;
  display: flex !important;
  gap: 15px !important;
  padding: 20px !important;
  background: #f4f7f9 !important;
  border-left: 1px solid #dce5ec !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}

.ng-photo-main {
  flex: 2 !important;
  min-height: calc(80vh - 120px) !important;
  background-size: cover !important;
  background-position: center !important;
  border-radius: 2px !important;
  border: 1px solid #c8d6e2 !important;
}

.ng-photo-col {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
}

.ng-photo-sub {
  flex: 1 !important;
  min-height: calc((80vh - 135px) / 2) !important;
  background-size: cover !important;
  background-position: center !important;
  border-radius: 2px !important;
  border: 1px solid #c8d6e2 !important;
}

/* Навигация слайдера */
.ng-slider-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #f8fafc !important;
  border-top: 1px solid #dce5ec !important;
  padding: 12px 20px !important;
}

.ng-slider-nav-btn {
  background: #2c3e50 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 18px !important;
  border-radius: 2px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

.ng-slider-nav-btn:hover {
  background: #0088cc !important;
}

.ng-dots-list {
  display: flex !important;
  gap: 6px !important;
}

.ng-dot-item {
  width: 10px !important;
  height: 10px !important;
  background: #c8d6e2 !important;
  border-radius: 2px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.ng-dot-item.active {
  background: #0088cc !important;
  width: 22px !important;
}

/* Карточка «О компании» */
.ng-company-block {
  display: flex !important;
  flex-wrap: wrap !important;
  background: #ffffff !important;
  border: 2px solid #c8d6e2 !important;
  border-radius: 2px !important;
  margin-bottom: 35px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
}

.ng-company-img {
  flex: 1 1 300px !important;
  min-height: 220px !important;
  background-size: cover !important;
  background-position: center !important;
  background-image: url('/img/temp/sec/dveri_45.png') !important;
  border-right: 1px solid #dce5ec !important;
}

.ng-company-desc {
  flex: 1 1 400px !important;
  padding: 30px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.ng-company-desc h3 {
  font-size: 20px !important;
  color: #1a252f !important;
  margin: 0 0 12px 0 !important;
  font-weight: 700 !important;
}

.ng-company-desc p {
  font-size: 14px !important;
  color: #4a5c6e !important;
  line-height: 1.65 !important;
  margin: 0 0 18px 0 !important;
}

.ng-company-btn {
  display: inline-block !important;
  align-self: flex-start !important;
  background: #0088cc !important;
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: 2px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  letter-spacing: 0.5px !important;
  transition: background 0.2s ease !important;
}

.ng-company-btn:hover {
  background: #2c3e50 !important;
}

/* Адаптивы под мобильные и планшеты */
@media (max-width: 768px) {
  .ng-slide-photos {
    border-left: none !important;
    border-top: 1px solid #dce5ec !important;
    flex-direction: column !important;
  }
  .ng-photo-main {
    height: 180px !important;
  }
  .ng-photo-col {
    flex-direction: row !important;
  }
  .ng-photo-sub {
    flex: 1 !important;
    height: 90px !important;
  }
  .ng-company-img {
    border-right: none !important;
    border-bottom: 1px solid #dce5ec !important;
    height: 200px !important;
  }

  /* Адаптив для карусели партнеров */
  .centercarosel.slider {
    padding: 20px 10px !important;
  }

  .centercarosel.slider img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

/* Базовые стили для карусели партнеров */
.centercarosel.slider {
  width: 100% !important;
  padding: 30px 20px !important;
  box-sizing: border-box !important;
}

.centercarosel.slider img {
  max-width: 150px !important;
  max-height: 80px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  display: block !important;
}

.centercarosel.slider .swiper-slide {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
}
