

.header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1vw 2vw;
  background-color: rgb(45, 5, 5, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 1, 0.5);
  position: fixed;
  width: 100%;
  box-sizing: border-box;
  opacity: 1;
  top: 0;
  right: 0;
  left: 0;
  height: clamp(40px, 10vw, 105px);
  z-index: 100;
}

.header a {
  text-decoration: none;
}

.header button {
  background: linear-gradient(145deg,rgba(175, 81, 65, 0.979), rgb(104, 22, 45));
  border-radius: 20px;
  border: none;
  color: rgb(0, 0, 0);
  cursor: pointer;
  padding: 0.65em 1.6em;
  margin-left: clamp(3px ,1vw, 30px);
  opacity: 1;
  font-size: clamp(10px, 2vw, 20px);
  transition: all 0.7s ease;
}

.header button:hover {
  background: linear-gradient(135deg, rgb(85, 16, 20), rgb(200, 40, 67), rgb(255, 110, 110));
  background-size: 200% 200%;
  animation: pulse 1.2s ease-in-out infinite alternate;
  color: white;
  transform: scale(1.05);
  transition: all 0.7s ease; 
}

@keyframes pulse {
  from { background-position: left; }
  to { background-position: right; }
}

.header .left-section img {
  width: clamp(12px, 2.5vw ,35px);
  height: clamp(12px, 2.5vw ,35px);
  vertical-align: middle;
  margin-right: 1vw;
  transition: all 0.7s ease; 

}

.right-section {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.contacts img{
  width: clamp(12px, 2.5vw ,35px);
  height: clamp(12px, 2.5vw ,35px);
  vertical-align: middle;
  margin-right: 1vw;
  transition: all 0.7s ease; 
 
}

.header button:hover img {
  filter: invert(100%);
  transform: scale(1.2);
  transition: all 0.7s ease;
}

@media (max-width: 600px) {
  .header button {
    font-size: clamp(10px, 4vw, 10px);
    padding: 7px 15px;
  }
  .header {
    height: clamp(50px, 10vw, 120px);
  }
}
