nav{
  background-color: white;
  margin-bottom: 0px !important;
 }

.header__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; 
  border-radius: 2rem;
}


.header__image img {
  position: absolute;
  top: 0;
  width: 100%;  /* добавим, чтобы всегда заполняло */
  height: 100%;
  opacity: 0;
  animation: fadeSlide 12s infinite;
  border-radius: inherit;
}

.header__image img:nth-child(1) {
  animation-delay: 0s;
}
.header__image img:nth-child(2) {
  animation-delay: 3s;
}
.header__image img:nth-child(3) {
  animation-delay: 6s;
}
.header__image img:nth-child(4) {
  animation-delay: 9s;
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateX(200px);
  }
  8% {
    opacity: 1;
    transform: translateX(0);
  }
  25% {
    opacity: 1;
    transform: translateX(0);
  }
  33% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 0;
  }
}


header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

header::before {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url("../assets/soft-pastel-blue-background-minimalist-design_1170794-139960.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
}

.header__container {
  display: grid;
}

.header__content {
  margin-top: 30px;
  padding: 4rem 1rem;
}

.header__content p {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 2rem;
}

.header__content h1 {  
  margin-bottom: 5px;
  font-size: 4.5rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 5.5rem;
  text-align: center;
}

.header__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.header__btns .btn {
  padding: 1rem 2rem;
}

.header__btns a {
  padding: 9px 13px;
  font-size: 1.5rem;
  color: var(--primary-color);
  background-color: var(--white);
  border-radius: 100%;
}

.header__btns a:hover {
  color: var(--white);
  background-color: var(--primary-color);
}




.soc_icons{
  padding: 20px;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 30px;
  padding-top: 20px;
}

.soc_icons img{
  height: 40px;
  width: auto;
  transition: filter 0.3s ease;
  filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg);
}

.soc_icons img:hover{
  filter: invert(31%) sepia(99%) saturate(1473%) hue-rotate(181deg) brightness(90%) contrast(90%);
}

@media (width <= 768px) {  
.soc_icons{
  display: flex;
  justify-content: center;
  filter: invert(100%);
}
}


@media (width: 768px) {
  .soc_icons{
    justify-content: center !important;
  }
}