  body {
    font-family: 'Gilroy', sans-serif !important;
  }
  
* {
    font-family: 'Gilroy', sans-serif !important;
  }
  
  strong, b, h1, h2, h3, h4 {
    font-family: 'Gilroy', sans-serif;
  }
  



.floating-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;

  width: calc(100% - 48px);
  background: #70CAC6;
  border-radius: 24px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(-50%) translateZ(100px) !important;
   z-index: 2147483647 !important; /* Максимально возможный z-index */
  will-change: transform; /* Форсирует GPU-рендеринг */
  isolation: isolate;
}


/* Показываем при скролле */
.floating-nav.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-logo {
  width: auto;
  height: 36px;width: max-content !important;
}

/* Ссылки */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: #fff !important;
  text-decoration: none;
  padding: 14px 16px;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

/* Эффект при наведении на ссылку */
.nav-link:hover {
  color: #fff !important;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link:hover::before {
  opacity: 1;
}



.horega-fill-on-scroll {
  font-size: 20vw !important; 
  font-weight: 800;
  -webkit-text-stroke: 2px #70CAC6;
  color: transparent !important;
  position: relative;
  display: inline-block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
  margin: 0;
}

.service-img {
    position: relative;
    z-index: 99
}


/* Меняем цвет заголовка и кнопки при наведении на группу */
.hover-card  {
  cursor: pointer;
}

.hover-card-text {
  color: #8033E0 !important;
}


.hover-card:hover .hover-card-text {
  color: #8033E0 !important;
}



/* Ограничиваем макс. размер на десктопах */
@media (min-width: 1200px) {
  .horega-fill-on-scroll {
     font-size: 15vw !important;  /* Фиксированный размер на широких экранах */
  }
}

/* Ограничиваем макс. размер на десктопах */
@media (max-width: 768px) {
  .horega-fill-on-scroll {
     font-size: 15vw !important;  /* Фиксированный размер на широких экранах */
  }
}


/* Минимальный размер на очень узких экранах */
@media (max-width: 480px) {
  .horega-fill-on-scroll {
    font-size:15vw !important; /* Чтобы текст не стал слишком мелким */
  }
}

/* Анимация заливки (оставляем как было) */
.horega-fill-on-scroll::before {
  content: "HoReCa";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #70CAC6;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path 1.5s ease;
}

.horega-fill-active::before {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
}

  
  .text-border {
  color: transparent !important; 
  -webkit-text-stroke: 2px #70CAC6; 
  text-stroke: 2px #70CAC6; 
  paint-order: stroke;
}

.Webinar-text{
    color: #000;
    transition: color 0.3s ease; 
}

.Webinars-text:hover  {
    color: #8033E0 !important;
}


.header-links {
  display: flex;
  gap: 12px;
}

.header-links.right {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}


.header-link {
  color: #fff !important; 
  font-size: 16px !important;
  font-weight: 500; 
  text-decoration: none;
  padding: 21px 24px;
  transition: all 0.3s ease;
  border-radius: 16px;
}

.header-link:hover {
  background: rgba(0, 0, 0, 0.1); 
}




.icons-container {
  display: flex;
  gap: 18px; /* Расстояние между иконками */
  padding: 20px;
}

.icon-wrapper {
  width: 46px;
  height: 46px;
  background-color: #8033E0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.icon-wrapper svg {
  width: 26px;
}

.icon-wrapper:hover {
  background-color: #70CAC6;
}

.icon {
  color: white; /* Цвет иконки */
  width: 32px; /* Размер SVG */
  height: 32px;
}


/* Базовые стили */
.flip-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 20px;
  align-items: stretch;
}

.flip-card {
  perspective: 1000px;
  height: 100%;
  display: flex;
  position: relative; /* Для мобильных hover-эффектов */
}

.flip-card-inner {
  position: relative;
  width: 100%;
  min-height: 680px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  flex-grow: 1;
  will-change: transform; /* Оптимизация анимации */
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden; /* Защита от выпадающего контента */
}

.flip-card-front {
  background: white;
  color: #000;
}

.flip-card-back {
  background: #8033E0;
  color: white;
  transform: rotateY(180deg);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  padding: 40px;
}

/* Типографика */
.card-title {
  font-size: clamp(20px, 2vw, 24px); /* Адаптивный размер */
  font-weight: bold;
  margin: 0;
  line-height: 1.3;
}

.card-title-back {
  font-size: clamp(18px, 1.8vw, 20px);
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
}

.card-text {
  font-size: clamp(14px, 1.6vw, 16px);
  color: #3B3B3D;
  font-weight: 300;
  margin: 0;
  line-height: 1.5;
}

/* Изображения */
.card-image {
  margin: 26px 0;
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%; /* Защита от переполнения */
}

/* Списки */
.card-list {
  list-style: none;
  padding: 0 !important;
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100px
}

.card-list li {
  position: relative;
  color: inherit;
  font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 300;
  padding-left: 17px;
  line-height: 1.5;
}

.card-list.front li {
  color: black;
}

.card-list.front li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: #8033E0;
  border-radius: 50%;
}

.card-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

/* Кнопки */
.card-button {
  margin-left: auto;
  border: none;
  display: flex;
  align-items: center;
  background: none;
  gap: 10px;
  cursor: pointer;
  padding: 0;
      margin-top: auto;
  font-size: clamp(14px, 1.6vw, 16px);
}

.card-button-back {
  padding: clamp(12px, 2vw, 18px);
  border-radius: 12px;
  background-color: #fff;
  border: none;
  cursor: pointer;
  margin-top: auto;
 
  transition: transform 0.2s;
}


.card-button-back > button {
    outline: none;
    background-color: #fff;
    border: none;
    color: #000 !important;
    font-size: clamp(14px, 1.8vw, 16px);
    cursor: pointer;
    width: -webkit-fill-available;
    padding: 0;
}

/* Анимация */
.flip-card.active .flip-card-inner {
  transform: rotateY(180deg);
}


@media (max-width: 1440px) {

.floating-nav {

  width: 80vw;
  }
}

.menu-sticky {
    display: none !important;
    width: 39px !important;
}

@media (max-width: 1280px) {
.nav-links {
    display: none;
  }
  
  .menu-sticky {
    display: flex !important;
}
  
  .nav-logo {
  width: auto;
  height: 30px;width: max-content !important;
}
}

/* Адаптив: Планшеты (1024px и меньше) */
@media (max-width: 1024px) {
  .flip-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  
  .card-content {
    padding: 30px;
  }
  
  .flip-card-inner {
    min-height: 580px; /* Чуть меньше высота */
  }
}

/* Адаптив: Большие мобильные (768px и меньше) */
@media (max-width: 768px) {
  .flip-container {
    padding: 15px;
  }
  
  .card-content {
    padding: 25px;
    gap: 18px;
  }
  
   .flip-card-inner {
        min-height: 590px;
    }
  
  .card-image {
    margin: 18px 0;
  }
}

@media (max-width: 920px) {
.header-links {
    display: flex
;
    gap: 12px;
    flex-direction: column;
    align-items: center;
}


}


@media (max-width: 990px) {
.floating-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    width: 85vw;
    border-radius: 14px;
}

.service-img {
    position: relative;
    z-index: 930 !important;
}
}


/* Адаптив: Мобильные (600px и меньше) */
@media (max-width: 600px) {
  .flip-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  
  .card-content {
    padding: 20px;
  }
  
    .flip-card-inner {
        min-height: 610px;
    }
}

/* Адаптив: Маленькие мобильные (400px и меньше) */
@media (max-width: 400px) {
  .card-content {
    padding: 16px;
    gap: 14px;
  }
  
    .flip-card-inner {
        min-height: 540px;
    }
  
  .card-button-back {
    padding: 12px;
  }
}



/* Защита от переполнения контента */
@media (min-width: 1600px) {
  .flip-container {
    max-width: 1600px;
    margin: 0 auto;
  }
}

/* Поддержка touch-устройств */
@media (pointer: coarse) {
  .flip-card {
    min-height: 0; /* Для более естественного поведения */
  }
}
