@font-face {
  font-family: "Futara";
  src: url(/Font/FuturaCyrillicBold.ttf);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Futara", sans-serif;
}

header {
  background-color: #405e65;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2rem 3.5rem;
}

header h1 {
  color: #ffffff;
  margin: 0;
  font-size: 2.3rem;
  line-height: 1.15;
}

nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 1.25rem;
}

.link {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.15rem;
}

.link:hover {
  color: #d7f3ff;
  transition: 0.25s;
}

.link:visited,
.link:active {
  color: #ffffff;
}

.btn {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: #21365fd2;
  color: #ffffff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.btn:hover {
  background: #272e30;
  transition: 0.3s;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.dot.active {
  background: #ffffff;
  transform: scale(1.15);
}

.fade {
  animation: fadeIn 0.28s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0.25;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
  }

  header h1 {
    font-size: 1.8rem;
  }

  nav {
    justify-content: flex-start;
    gap: 0.9rem;
  }

  .link {
    font-size: 1rem;
  }

  .btn {
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
  }
}
