/* ============================================
   ГЛОБАЛЬНЫЕ СТИЛИ И БАЗОВЫЕ НАСТРОЙКИ
   ============================================ */

/* Общие классы */
section.grey {
  background: rgb(226, 226, 226);
}



/* ============================================
   ТИПОГРАФИКА
   ============================================ */

/* Заголовки */
h2.exclusive {
  font-size: calc(25px + 15 * ((100vw - 320px) / (1920 - 320)));
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: left;
}

/* Длиный заголовок загоняем в 2 строки */
.personal-exclusive-support h2.exclusive {
  font-size: calc(20px + 15 * ((100vw - 320px) / (1920 - 320)));
}

.forms-caption {
  font-size: calc(25px + 15 * ((100vw - 320px) / (1920 - 320)));
  line-height: 1.2;
  font-weight: 700;
}

.presents-title-glv {
  font-weight: 700;
  font-size: calc(18px + 2 * ((100vw - 320px) / (1920 - 320)));
  line-height: 1.5;
  color: #292929;
  margin-top: 17px;
  margin-bottom: 30px;
}

/* Текстовые блоки */
.text-intro {
  font-weight: 400;
  font-size: calc(18px + 6 * ((100vw - 320px) / (1920 - 320)));
  color: #292929;
  cursor: pointer;
/*  padding-bottom: 30px; */
  line-height: 30px;
  text-align: left;
}

@media (min-width: 1001px) {
  .text-intro {
    line-height: 40px;
  }
}

@media (max-width: 450px) {
  section p {
  padding-bottom: 0.7em;
  }

  .text-intro {
    font-size: calc(16px + 6 * ((100vw - 320px) / (1920 - 320)));
    padding-bottom: 15px;
  }

  #presents-h2 {
    margin-bottom: 0px !important;
  }

  #presents-list {
    padding-top: 30px;
  }
}

/* Списки */
#intro-ul {
  margin-bottom: 10px;
  margin-top: 20px;
}

#intro-ul li {
  padding-bottom: 12px;
}

/* Зеленые галочки */
.checkgreen {
  float: left;
  margin-right: 5px;
  bottom: 5px;
  position: relative;
}

@media (max-width: 450px) {
  #intro-ul {
  margin-bottom: 10px;
  margin-top: 10px;
}

#intro-ul li {
  padding-bottom: 8px;
}
}

/* ============================================
   КОМПОНЕНТЫ (Кнопки, формы, карточки)
   ============================================ */

/* Кнопки */
.button {
  /* базовые стили кнопок */
}

.see-catalog-button {
  min-width: 270px;
  height: 60px;
  font-size: 20px;
}

@media (max-width: 450px) {
  .button {
    max-width: none;
  }
  
  .button.large_button.zakaz_button {
    font-size: 18px !important;
    font-weight: 500;
    padding: 0 25px;
  }
}


/* ============================================
   КНОПКИ TELEGRAM И MAX
   ============================================ */

.button-group {
  display: flex;
  gap: 20px;
  width: 100%;
}

.button-group__item {
  flex: 1;
  text-align: center;
  min-width: 0;
  width: auto;
  max-width: none !important;
  transition: all 0.3s ease;
  background-color: transparent !important; /* убираем золотистый фон */
  border: none !important; /* убираем границу */
  padding: 12px 16px !important; /* добавляем внутренние отступы */
  white-space: normal !important; /* разрешаем перенос текста */
  word-break: keep-all !important; /* предотвращаем разрыв слов */
}

/* Кнопка Telegram */
.button-group__item:first-child {
  background-color: #113AA2 !important;
  border: none !important;
}

/* Кнопка Max */
.button-group__item:last-child {
  background-color: #561FAB !important;
  border: none !important;
}

/* Эффект при наведении - увеличение и тень */
.button-group__item:hover {
  /* transform: scale(1.03); /* увеличение на 5% */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45); /* более заметная тень */
  filter: brightness(1.6);
}

/* Мобильные устройства - кнопки друг под другом */
@media (max-width: 768px) {
  .button-group {
    flex-direction: column;
    gap: 15px;
  }
  
  .button-group__item {
    flex: none;
    width: 100%;
  }
}

/* Для очень маленьких экранов дополнительные отступы */
@media (max-width: 480px) {
  .button-group__item {
    padding: 10px 12px !important;
    font-size: 14px !important;
  }
}



/* Изображения в секции presents */
.presents-part img {
  margin-left: 20px !important;
}

/* ============================================
   ОТСТУПЫ МЕЖДУ СЕКЦИЯМИ
   ============================================ */

/* Группировка одинаковых секций (вертикальные паддинги) */
.our-catalog-exclusive-section,
.exclusive-forms-section,
.military-forms-section,
.projects-forms-section,
.zakaz-exclusive-section,
.steps-exclusive-section,
.personal-exclusive-support,
.review {
  padding: 100px 0;
}

/* Секции с margin-bottom */
.first-exclusive-section,
.intro-exclusive-section,
.zakaz-exclusive-section {
  margin-bottom: 100px;
}

/* Секции с margin-top */
.first-exclusive-section,
.intro-exclusive-section {
  margin-top: 40px;
}

/* Особые случаи */
.steps-exclusive-section {
  /* padding-bottom: 80px; */
}

.personal-exclusive-support, .zakaz-exclusive-section {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

/*
.review {
  padding-top: 60px !important;
  padding-bottom: 0 !important;
}
*/

/* ============================================
   СЕКЦИЯ 1: INTRO (Главный экран)
   ============================================ */

/* Картинка на intro-секциях чтобы не вылезала */
@media (min-width: 1220px) {
  .intro-part-2 img {
    max-width: 480px;
  }
  
  .intro-part-1 {
    padding-right: 8%;
  }
}

@media (max-width: 1125px) {
  #intro-ul {
    order: unset;
  }
  
  .desktop_only {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .intro-part-1 {
    width: 100%;
  }
}

/* ============================================
   СЕКЦИЯ 7: ЭТАПЫ РАБОТ (steps-exclusive-section)
   ============================================ */

/* Сброс позиционирования */
.steps-exclusive-section {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  float: none !important;
  clear: both !important;
  display: block !important;
  width: 100% !important;
  overflow: visible !important;
}

.steps-exclusive-section .container {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  float: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
}

/* Контейнер шагов */
#steps-holder {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: flex !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 50px !important;
  float: none !important;
  clear: both !important;
}

/* Элемент шага */
.step-item {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
}

.step-item a {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-decoration: none !important;
  width: 100% !important;
}

/* Круглые изображения */
.step-item img {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  border-radius: 50% !important;
  display: block !important;
  object-fit: cover !important;
  margin-bottom: 15px !important;
  float: none !important;
}

/* Текст под изображением */
.step-item div {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  font-weight: 400;
  font-size: calc(15px + 2 * ((100vw - 320px) / (1920 - 320)));
  line-height: 1.4;
  color: #292929;
  text-align: center;
}

/* Десктоп (>=769px) - 5 элементов в ряд */
@media (min-width: 769px) {
  #steps-holder {
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 20px !important;
  }
  
  .step-item {
    flex: 1 !important;
    min-width: 0 !important;
  }
  
  .step-item img {
    width: 100% !important;
    max-width: 160px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }
}

/* Планшет (401px-768px) - 2-3 элемента в ряд */
@media (min-width: 401px) and (max-width: 768px) {
  #steps-holder {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px !important;
  }
  
  .step-item {
    flex: 0 1 calc(33.33% - 60px) !important;
    min-width: 160px !important;
  }
  
  .step-item img {
    width: 100% !important;
    max-width: 140px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }
}

/* Мобильные (<=400px) - вертикально, по центру */
@media (max-width: 450px) {
  #steps-holder {
    flex-direction: column !important;
    align-items: center !important;
    gap: 40px !important;
  }
  
  .step-item {
    width: 100% !important;
    max-width: 260px !important;
    flex: none !important;
  }
  
  .step-item img {
    width: 100% !important;
    max-width: 220px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }
  
  .step-item div {
    font-size: 20px !important;
  }
}
/* ============================================
   СЕКЦИЯ PRESENTS (Каталог проектов)
   ============================================ */

@media (max-width: 768px) {
  .presents-part-1 {
    width: 100%;
  }
  
  .presents-desc {
    padding: 0;
    text-align: center;
  }
  
  .presents-part img {
    margin: 0 auto !important;
    padding-bottom: 20px;
    width: 80% !important; /* увеличиваем ширину */
    max-width: 320px !important; /* максимальная ширина */
    display: block !important;
  }
  
  .presents-title-glv {
    text-align: center;
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .text-intro {
    text-align: left;
  }
  
  /* Кнопка тоже станет шире */
  .see-catalog-button {
    min-width: auto;
    width: 80%;
    max-width: 280px;
    font-size: 16px;
  }
}

/* Для совсем маленьких экранов (до 480px) - картинки еще больше */
@media (max-width: 480px) {
  .presents-part img {
    width: 90% !important;
    max-width: 280px !important;
  }
  
  .see-catalog-button {
    width: 90%;
    font-size: 15px;
  }
}

/* ============================================
   СЛАЙДЕРЫ (Swiper)
   ============================================ */

/* Общие стили для текста в слайдерах */
.two-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gray-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
  color: #7b7f89;
  line-height: 1.5;
  height: max-content;
  margin: 15px 0px;
}

/* Слайдер "Проекты" на главной странице */
.view-tipovie_modeli-block_3 {
  position: relative;
}

/* Кнопки навигации слайдера */
.view-tipovie_modeli-block_3 .swiper-button-next-type,
.view-tipovie_modeli-block_3 .swiper-button-prev-type {
  position: absolute;
  z-index: 10;
  transform: translateY(-50%);
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.5);
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.view-tipovie_modeli-block_3 .swiper-button-next-type:hover,
.view-tipovie_modeli-block_3 .swiper-button-prev-type:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Левая кнопка */
.view-tipovie_modeli-block_3 .swiper-button-prev-type {
  left: -30px;
}

/* Правая кнопка */
.view-tipovie_modeli-block_3 .swiper-button-next-type {
  right: -30px;
}

/* Привязка к контейнеру */
.view-tipovie_modeli-block_3 .swiper {
  position: static;
}

.view-tipovie_modeli-block_3 .swiper-wrapper {
  position: relative;
}

/* Десктоп: кнопки по центру */
@media (min-width: 769px) {
  .view-tipovie_modeli-block_3 .swiper-button-next-type,
  .view-tipovie_modeli-block_3 .swiper-button-prev-type {
    top: 50%;
  }
}

/* Планшет */
@media (max-width: 768px) and (min-width: 401px) {
  .view-tipovie_modeli-block_3 .swiper-button-next-type,
  .view-tipovie_modeli-block_3 .swiper-button-prev-type {
    top: 50%;
  }
}

/* Мобильные */
@media (max-width: 450px) {
  .view-tipovie_modeli-block_3 .swiper-button-next-type,
  .view-tipovie_modeli-block_3 .swiper-button-prev-type {
    top: 30%;
  }
  
  .view-tipovie_modeli-block_3 .swiper-button-prev-type {
    left: 5px;
  }
  
  .view-tipovie_modeli-block_3 .swiper-button-next-type {
    right: 5px;
  }
}

/* Стрелки на мобильных */
@media (max-width: 450px) {
  [class^='swiper-button-prev']:after,
  [class^='swiper-button-next']:after {
    content: '';
    background-color: #1b2840;
    width: 32px;
    height: 32px;
    background-size: 40%;
    border: 3px solid #fff;
    background-image: url(/themes/nebonew/images/white-arrow.svg);
    border-radius: 50%;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .view-tipovie_modeli-block_3 .swiper-button-next-type,
  .view-tipovie_modeli-block_3 .swiper-button-prev-type {
    width: 38px;
    height: 32px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
  .view-tipovie_modeli-block_3 .swiper-button-next-type,
  .view-tipovie_modeli-block_3 .swiper-button-prev-type {
    top: 42%;
    width: 28px;
    height: 28px;
  }
}

/* ============================================
   МОБИЛЬНЫЕ ОТСТУПЫ (до 400px)
   ============================================ */

@media (max-width: 450px) {
  /* Уменьшаем вертикальные отступы у секций с паддингами */
  .our-catalog-exclusive-section,
  .exclusive-forms-section,
  .military-forms-section,
  .projects-forms-section,
  .zakaz-exclusive-section,
  .steps-exclusive-section,
  .personal-exclusive-support {
    padding: 35px 0;
  }
  
  /* Уменьшаем margin-bottom у секций */
  .first-exclusive-section,
  .intro-exclusive-section,
  .zakaz-exclusive-section {
    margin-bottom: 25px;
  }
  
  /* Уменьшаем margin-top */
  .first-exclusive-section,
  .intro-exclusive-section,
  .steps-exclusive-section {
    margin-top: 10px;
  }
  
  /* Особые случаи на мобильных */
  
  .review {
    padding-top: 25px !important;
    padding-bottom: 0 !important;
  }
}

/* ============================================
   ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ
   ============================================ */

.front-slider-projects {
  border: 1px red solid; /* временный класс для отладки */
}