.main-block__wrapper {
      background-image: url('../images/home/main-block-background.webp');
      background-size: cover;
      background-repeat: no-repeat;
    }
    
    /* Блок Main-block */
.main-block {
    padding: 100px 0;
   
    overflow: hidden;
}


/* Флекс-оболочка */
.main-block__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Текстовая колонка */
.main-block__content {
    flex: 0 1 600px;
}

/* Главный заголовок */
.main-block__title {
    font-size: 44px;
    line-height: 1.22;
    font-weight: 700;
    color: #333;
    margin-bottom: 22px;
}

/* Подзаголовок (Жирный текст) */
.main-block__lead {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    line-height: 1.55;
    margin-bottom: 28px;
}

/* Описание (Обычный текст) */
.main-block__text {
    font-size: 16px;
    color: #222;
    line-height: 1.625;
    margin-bottom: 32px;
    max-width: 520px;
}

/* Кнопка */
.main-block__button {
    display: inline-block;
    background-color: #D32F2F;
    color: #ffffff;
    padding: 18px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
}

.main-block__button:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
}

/* Контейнер для изображения */
.main-block__visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Изображение */
.main-block__img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Если нужно, чтобы картинка была чуть крупнее, можно задать min-width */
}





/* Блок about-us теперь не заботится о ширине страницы, только о своих внутренних отступах */
.about-us__wrapper {
  background: #FBFBFA;
}
.about-us {
    padding: 80px 0;
}

/* Элемент для управления сеткой */
.about-us__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px; /* Расстояние между текстом и картинкой */
}

/* Текстовая часть */
.about-us__content {
    flex: 0 1 550px;
}

/* Заголовок (уже h2, так как это второй блок) */
.about-us__title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.22;
    color: #333;
    margin-bottom: 40px;
}

/* Группа текстов */
.about-us__body {
    margin-bottom: 32px;
}
.about-us__text {
    font-size: 16px;
    line-height: 1.625;
    color: #222;
    margin-bottom: 15px;
}

.about-us__text--lead {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.55;
    color: #222;
}
.about-us__button {
    display: inline-block;
    background-color: #D32F2F;
    color: #fff;
    padding: 18px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    transition: all 0.3s ease;
}

.about-us__button:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
}

/* Изображение */
.about-us__visual {
    flex: 1;
}

.about-us__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 15px; /* Мягкое скругление как на макете */
}

/* Блок преимуществ */
.advantages-block {
    padding: 80px 0;
}

.advantages-block__title {
    font-size: 38px;
    color: #333;
    font-weight: 700;
    max-width: 490px;
    margin: 0px 0px 40px 0px;
}


.advantages-block__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 12px;
}

/* Базовый стиль карточки */
.advantages-block__item {
    background: #ffffff;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    
    /* Первые три карточки занимают по 2 колонки (1/3 ширины) */
    grid-column: span 2; 
}

/* Нижние две карточки занимают по 3 колонки (1/2 ширины) */
/* Это заставит их растянуться на всю оставшуюся ширину ряда */
.advantages-block__item:nth-child(4),
.advantages-block__item:nth-child(5) {
    grid-column: span 3;
}

/* Стили иконок и текста (без изменений) */
.advantages-block__icon {
    width: 56px;
    height: 56px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #fff;
}

.advantages-block__icon svg {
    width: 64px;
    height: 64px;
}

.advantages-block__text {
    font-size: 16px;
    line-height: 1.625;
    color: #222;
    font-weight: 400;
    margin: 0;
}

.advantages-block__footer {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.advantages-block__button {
    display: inline-block;
    background-color: #d32f2f;
    color: #fff;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}




.citizenship-steps__wrapper {
    background: #FBFBFA;
}
/* --- ОСНОВНОЙ БЛОК СЕКЦИИ --- */
.citizenship-steps {
  padding: 80px 0;
}

.citizenship-steps__container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.citizenship-steps__title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 60px;
  color: #333;
}

.citizenship-steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 колонки по умолчанию */
  gap: 40px 28px;
}

/* --- БЛОК КАРТОЧКА ШАГА--- */
.step-card {
  display: flex;
  flex-direction: column;
  max-width: 260px;
}

.step-card__header {
  display: flex;
  align-items: center; 
  margin-bottom: 24px;
}

/* Элемент для вставленной картинки номера */
.step-card__number-img {
  display: block;
  flex-shrink: 0; /* Номер не сжимается */
  /* Размеры картинки номера (из макета ~70px) */
  width: 123px;
  height: 103px;
  object-fit: contain; /* Картинка вписывается целиком */
}

/* Элемент для вставленной пунктирной линии */
.step-card__divider-img {
  display: block;
  flex-grow: 1; /* Линия забирает все свободное место */
  margin-left: 20px; /* Отступ от номера */
  height: 2px; /* Фиксированная высота линии */
  object-fit: fill; /* Картинка растягивается по ширине */
}

.step-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 12px;
  color: #222222;
}

.step-card__text {
  font-size: 14px;
  line-height: 1.42;
  color: #222;
  font-weight: 400;
  margin: 0;
}

/* --- БЛОК ПРОМО-БОКС (БЕЗ ИЗМЕНЕНИЙ) --- */
.promo-box {
  border: 1px solid #f2d0ce;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: url('../images/home/step-promo-background.webp');
  background-repeat: no-repeat;
  background-size: cover;
  min-width: 270px;
    
}

.promo-box__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  color: #222222;
  max-width: 240px;
}

.promo-box__button {
  background-color: #D32F2F;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 18px 64px;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  width: 100%;
}

.promo-box__button:hover {
  background-color: #b03a35;
  transform: translateY(-2px);
}

.promo-box__button svg {
    min-width: 23px;
    width: 23px;
    height: 26px;
}

.promo-box__button-icon {
  flex-shrink: 0;
}


 /* Общий контейнер */
    .swiper2-wrap {
        max-width: 1140px;
        margin: 60px auto 0;
        position: relative;
        padding: 0 10px;
    }
    body:not(.home) .swiper2-wrap {
        margin-bottom: 80px;
    }
    .swiper2-wrap .swiper {
        padding-left: 0;
        padding-right: 0;
    }
    .swiper-wrapper {
        /* margin-bottom: 100px; */
    }
    /* ШАПКА: Заголовок слева, Стрелки справа */
    .swiper2-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
    }

    .swiper2-title {
        font-size: 38px;
        font-weight: 700;
        color: #333;
        margin: 0;
    }
    
    /* Контейнер для двух стрелок */
    .swiper2-nav-buttons {
        display: flex;
        gap: 15px; /* Расстояние между стрелками */
    }

    .swiper2 {
        overflow: hidden!important;
    }

    /* Настройка КВАДРАТНОГО слайда */
    .swiper-slide2,
    .swiper-slide3 {
        display: flex;
        flex-direction: column;
        /*padding: 25px;*/
        border-radius: 8px;
        background: #FFF;
        border: 1px #E5E5E5 solid;
        box-sizing: border-box;
        width: 100%; 
    }

    /* ОБЩИЕ СТИЛИ СТРЕЛОК */
    .swiper-button-prev2, 
    .swiper-button-next2,
    .swiper-button-prev3,
    .swiper-button-next3 {
        cursor: pointer;
        background-image: url('../images/home/slider-expert-arrow.svg');
        background-repeat: no-repeat;
        background-size: contain;
        width: 32px;
        height: 32px;
        transition: transform 0.2s ease;
    }

    /* Разворачиваем стрелку "Назад" */
    .swiper-button-prev2,
    .swiper-button-prev3 {
        transform: scaleX(-1);
    }

    .swiper-button-prev2:hover, .swiper-button-prev3:hover { transform: scaleX(-1) scale(1.1); }
    .swiper-button-next2:hover, .swiper-button-next3:hover { transform: scale(1.1); }
    
    /* Состояние, когда листать некуда (если loop: false) */
    .swiper-button-disabled { opacity: 0.3; cursor: auto; }

    /* Точки снизу */
    .swiper2-nav-wrapper {
        display: flex;
        align-items: center;
        gap: 20px; /* Расстояние между точками и блоком стрелок */
    }
    .swiper-pagination2 { 
        /*margin-top: 25px;*/ 
        display: flex; 
        justify-content: center; 
        gap: 8px; 
    }
    .swiper-pagination2.swiper-pagination-bullets {
        position: static; 
        width: auto;      
        margin: 0;        
        display: flex;
        gap: 8px;
    }
    .swiper-pagination-bullets .swiper-pagination-bullet {
        margin: 0!important;
    }
    .swiper-pagination2 .swiper-pagination-bullet { 
        width: 8px;
        height: 8px; 
        background: #D9D9D9; 
        opacity: 1; 
        border-radius: 50%; 
    }
    .swiper-pagination2 .swiper-pagination-bullet-active { 
        background: #D32F2F!important;
         }
    .expert-block__item {
        overflow: hidden;
    }
    .expert-block__photo {
        width: 100%;
        height: 317px;
        overflow: hidden;
    }

    .expert-block__photo picture {
        display: block;
        width: 100%;
        height: 100%;
    }
     .expert-block__photo picture img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .expert-block__info {
        text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 24px 35px;
    }
    .expert-block__name {
      color: #222;
      font-size: 18px;
      font-weight: 600;
      line-height: 1.55;
    }
    .expert-block__position {
      color: #222;
      font-size: 14px;
      font-weight: 400;
      line-height: 1.55;
      min-height: 43px;
    }

    .expert-block__button {
      padding: 16px 0 0 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 50px; /* Размер зоны клика */
      height: 20px;
      text-decoration: none;
      position: relative;
      transition: transform 0.2s ease; /* Анимация при наведении */
    }

    .expert-block__button:hover {
      transform: translateX(5px); /* Кнопка сдвигается вправо при наведении */
    }

    /* Сама длинная линия стрелки */
    .expert-block__arrow {
      display: block;
      width: 40px; /* Длина стрелки */
      height: 2px; /* Толщина линии */
      background-color: #c6443e; /* Красный цвет из макета */
      position: relative;
    }

    
    .expert-block__arrow::after {
      content: '';
      position: absolute;
      right: 0; 
      top: 50%; 
      width: 10px; 
      height: 10px;
      border-top: 2px solid #c6443e; /* Верхняя грань уголка */
      border-right: 2px solid #c6443e; /* Правая грань уголка */
      
      
      transform: translateY(-50%) rotate(45deg);
      transform-origin: center;
    }



@media only screen and (min-width: 0) and (max-width: 1140px), only screen and (min-device-width: 0) and (max-device-width: 1140px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 1140px;
      }
      
    }
     @media (max-width: 1050px) {
       
     } 

    

/* Адаптивность под мобильные устройства */
@media (max-width: 992px) {
    .main-block {
        padding: 60px 0;
    }

    .main-block__inner {
        flex-direction: column;
        text-align: center;
    }

    .main-block__text {
        margin-left: auto;
        margin-right: auto;
    }

    .main-block__visual {
        justify-content: center;
        margin-top: 40px;
    }

    .main-block__title {
        font-size: 36px;
    }

     .about-us__inner {
        flex-direction: column;
        text-align: center;
    }
    
    .about-us__content {
        flex: 1 1 auto;
    }
    .advantages-block__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-block__item,
    .advantages-block__item:nth-child(4),
    .advantages-block__item:nth-child(5) {
        grid-column: span 1;
    }

}

/* Телефоны (в одну колонку) */
@media (max-width: 600px) {
    .advantages-block__grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-block__title {
        font-size: 28px;
        text-align: center;
    }

    .advantages-block__footer {
        justify-content: center;
    }
    
    .advantages-block__button {
        width: 100%;
        text-align: center;
    }
}


/* Адаптив */
@media (max-width: 992px) {
    /* На планшетах по 2 в ряд (кроме последней, если она одна) */
    .advantages-block__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .advantages-block__item,
    .advantages-block__item:nth-child(4),
    .advantages-block__item:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    .advantages-block__grid {
        grid-template-columns: 1fr;
    }
}

    
    /* --- Адаптивность --- */
/* Планшетная версия (2 колонки) */
@media (max-width: 1100px) {
  .citizenship-steps__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
  /* Скрываем пунктир, так как он ломает логику в 2 колонки */
  .step-card__divider {
    display: none;
  }
}

/* Мобильная версия (1 колонка) */
@media (max-width: 600px) {
  .citizenship-steps__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .citizenship-steps__title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  .promo-box {
    padding: 24px;
  }
}
   
    
    /* Адаптив */
    @media (max-width: 640px) {
        .swiper-wrapper {
        margin-bottom: 0px;
    }
        .swiper2-wrap {
            padding-left: 20px;
            padding-right: 20px;
            margin-top: 0px;
        }
        .swiper2-title { font-size: 24px; }
        .swiper-button-prev2, .swiper-button-next2 { width: 35px; height: 35px; }

        .swiper2-header {
            gap: 20px;
            flex-direction: column;
            align-items: flex-start;
        }
        .swiper2-nav-wrapper {
            margin: 0px 0px 0px auto;
        }
    }

    
    
    


    @media (max-width: 480px) {
     
     
    }
    @media (max-width: 375px) {
      
    
     
    }
    @media (max-width: 320px) {
    
    }
        
