@font-face {
  font-family: "RF Dewi Extended";
  src: url("/static/rfdewi-extended-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RF Dewi Extended";
  src: url("/static/rfdewi-extended-bold.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("/static/unbounded-v7-cyrillic_latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("/static/unbounded-v7-cyrillic_latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

html,
body {
  height: 100%;
  min-height: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

h2 {
  font-family: "Unbounded";
  font-weight: 500;
  font-size: 20px;
}

p {
  font-family: "RF Dewi Extended";
  font-weight: 400;
  font-size: 18px;
}

button {
  font-family: 'RF Dewi Extended';
  border: none;
  display: inline-block;
  padding: 14px 28px;
  background-color: #0a2a66;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.6s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

button:hover {
  color: #0a2a66;
  background: linear-gradient(90deg, #ffd700, #ffb700, #ffd700);
  background-size: 300% 100%;
  animation: shine 0.6s ease;
  box-shadow: 0 0 25px #ffd700, 0 0 40px #ffb700;
  transform: translateY(-1px);
  cursor: pointer;
}

/* Полоса меню */
.menu-bar {
  background-image: url("/static/menu-back.avif");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 2560px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Список меню */
.menu {
  list-style: none;
  margin: 0;
  padding: 0 24px;
  display: flex;
  gap: 82px;
  flex-wrap: nowrap;
}

.menu a {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 18px;
  text-decoration: none;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
  /* тонкая тень для читаемости на светлых участках фона */
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.menu a:hover,
.menu a:focus {
  background-color: rgba(255, 255, 255, .12);
  transform: translateY(-1px);
  outline: none;
}

/* Небольшая адаптация: уменьшаем зазоры на узких экранах */
@media (max-width: 480px) {
  .menu {
    gap: 16px;
  }

  .menu a {
    font-size: 16px;
    padding: 8px 10px;
  }
}