.cbp-af-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  z-index: 9999;
  height: 130px; 
	
}

.cbp-af-header .cbp-af-inner {
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
}

.cbp-af-header nav {
  display: flex; /* Используем Flexbox для навигации */
  align-items: center; 
}

.cbp-af-header nav a {
  color: #000000;  
  font-size: 1.2em;
  transition: font-size 0.3s ease, transform 0.8s ease !important; /* Добавляем плавность к изменению размера шрифта */
}

/* Уменьшение логотипа и элементов меню при прокрутке */
.cbp-af-header.shrink {
  height: 90px;
}

.cbp-af-header.shrink nav a { 
  font-size: 1.1em; /* Уменьшаем размер шрифта */
}

/* Остальные стили остаются без изменений */

.menufixed {
  margin-top: 20px;
  margin-left: 70px;
}

.menufixed li {
  font-size: 14px;
	margin: 18px 15px;
}

.menufixed ul ul li a {
  color: #FFFFFF !important;
}

.cbp-af-header.shrink .menufixed
{margin-top:10px;}

/* Логотип */
.logo_fixed img {
  transition: transform 0.5s ease; 
  transform: scale(2); 
  margin-top:30px;
}

.cbp-af-header.shrink .logo_fixed img {
  transform: scale(1.5); 
  margin-top:25px;
}

.cbp-af-header .lang {
  margin-top:33px;
  font-size: 1.2em;
}

.cbp-af-header.shrink .lang {
  margin-top:25px;
  font-size: 1.0em;
}

.request_fixed {
  margin-top:35px;
  transition: transform 0.5s ease; 
  transform: scale(1.1);
}

.cbp-af-header.shrink .request_fixed {
  margin-top:20px;
  transition: transform 0.5s ease; 
  transform: scale(1.0);
}

/* Пример медиа-запросов */
@media screen and (max-width: 55em) {
  
  .cbp-af-header .cbp-af-inner {
    width: 100%;
    flex-direction: column; /* Вертикальное расположение для мобильной версии */
    align-items: center; /* Центрируем элементы по горизонтали */
  }

  .cbp-af-header h1,
  .cbp-af-header nav {
    display: block;
    text-align: center;
    float: none;
    margin-bottom: 10px; /* Отступ между заголовком и навигацией */
    line-height: normal; /* Убираем line-height для мобильной версии */
  }

}

@media screen and (max-width: 32.25em) {
  .cbp-af-header nav a {
    font-size: 1em; /* Уменьшаем размер шрифта для мобильной версии */
    transition: font-size 0.3s ease, transform 0.8s ease !important; /* Плавный переход для мобильной версии */
  }
}

@media screen and (max-width: 24em) {
  .cbp-af-header nav a,
  .cbp-af-header.shrink nav a {
    line-height: 1;
    transition: font-size 0.3s ease, transform 0.8s ease !important; /* Плавный переход для мобильной версии */
  }
}