/* Одне меню для всього розділу «Англійська для підлітків»:
   /teenagers, /teenagers/games, /teenagers/teen-missions, /teenagers/blog
   і /level-test-teens. Сторінки мають різні таблиці стилів і різні шрифти,
   тому тут усе задано явно і шрифт системний: так меню однакове до пікселя
   і не скаче при переході між сторінками. Розмітка однакова на всіх
   сторінках, різниться лише aria-current у поточного пункту. */

html { scrollbar-gutter: stable; scroll-padding-top: 84px; }

.tnav {
  position: sticky; top: 0; z-index: 1000;
  display: block; margin: 0; padding: 0;
  background: #fbf7f0;
  border-bottom: 1px solid rgba(43, 37, 64, .1);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.tnav *, .tnav *::before, .tnav *::after { box-sizing: border-box; }

.tnav-in {
  position: relative;
  max-width: 1200px; height: 68px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}

.tnav-logo { display: flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.tnav-logo img { display: block; width: auto; height: 44px; max-width: none; }
.tnav-logo span {
  display: block; padding-left: 12px; border-left: 1px solid rgba(43, 37, 64, .18);
  font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .06em;
  text-transform: uppercase; color: #6d6380; white-space: nowrap;
}

.tnav-links {
  display: flex; align-items: center; gap: 22px;
  margin: 0 0 0 auto; padding: 0; list-style: none;
}
.tnav-links li { margin: 0; padding: 0; list-style: none; }
.tnav-links a {
  display: block; padding: 6px 0;
  font-size: 14px; font-weight: 600; line-height: 20px; letter-spacing: 0; text-transform: none;
  color: #2b2540; text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.tnav-links a::after, .tnav-links a::before { content: none; }
.tnav-links a:hover { color: #000; border-bottom-color: rgba(201, 162, 39, .55); }
.tnav-links a[aria-current="page"] { border-bottom-color: #c9a227; }

.tnav-links .tnav-login a { font-size: 13px; font-weight: 500; color: #8a8096; }
.tnav-links .tnav-login a:hover { color: #2b2540; border-bottom-color: transparent; }

.tnav-links .tnav-btn {
  padding: 9px 18px; border: 0; border-radius: 999px;
  background: #e2b93b; color: #2b2010;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 3px 10px -4px rgba(160, 120, 20, .6);
  transition: background .15s, transform .15s;
}
.tnav-links .tnav-btn:hover { background: #d4a92a; color: #2b2010; transform: translateY(-1px); border: 0; }

.tnav-toggle {
  display: none; flex: none; margin-left: auto;
  width: 44px; height: 44px; padding: 12px 10px; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer;
}
.tnav-toggle span { display: block; height: 2px; margin: 0 0 6px; border-radius: 2px; background: #2b2540; }
.tnav-toggle span:last-child { margin: 0; }
.tnav-toggle:hover { background: rgba(43, 37, 64, .06); }

@media (max-width: 1040px) {
  .tnav-toggle { display: block; }
  .tnav-links {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 6px 24px 20px; background: #fbf7f0;
    border-bottom: 1px solid rgba(43, 37, 64, .1);
    box-shadow: 0 18px 30px -24px rgba(43, 37, 64, .5);
  }
  .tnav-links.open { display: flex; }
  .tnav-links li { border-bottom: 1px solid rgba(43, 37, 64, .08); }
  .tnav-links li:last-child { border: 0; padding-top: 14px; }
  .tnav-links a { padding: 13px 0; font-size: 16px; border: 0; }
  .tnav-links a[aria-current="page"] { color: #8a6a00; border: 0; }
  .tnav-links .tnav-login a { font-size: 14px; }
  .tnav-links .tnav-btn { text-align: center; padding: 13px 18px; font-size: 16px; }
}

@media (max-width: 420px) {
  .tnav-in { padding: 0 16px; gap: 12px; }
  .tnav-logo span { display: none; }
  .tnav-links { padding: 6px 16px 18px; }
}
