:root {
  --yellow: #ffd429;
  --yellow-dark: #d6aa00;
  --black: #080808;
  --ink: #151515;
  --muted: #666a70;
  --line: #e7e5df;
  --surface: #ffffff;
  --surface-soft: #f6f4ef;
  --green: #147a3c;
  --red: #a72828;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

@media (pointer: fine) {
  body:not(.admin-body):not(.login-body) {
    cursor: url("../img/cursor-wheel.png") 16 16, auto;
  }

  body:not(.admin-body):not(.login-body) a,
  body:not(.admin-body):not(.login-body) button,
  body:not(.admin-body):not(.login-body) select,
  body:not(.admin-body):not(.login-body) summary,
  body:not(.admin-body):not(.login-body) input[type="checkbox"],
  body:not(.admin-body):not(.login-body) input[type="radio"],
  body:not(.admin-body):not(.login-body) input[type="file"] {
    cursor: url("../img/cursor-flag.png") 5 5, pointer;
  }

  body:not(.admin-body):not(.login-body) input,
  body:not(.admin-body):not(.login-body) textarea {
    cursor: text;
  }
}

.icon {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0 0 0.55em;
  font-family: "Changa One", Impact, sans-serif;
  font-weight: 400;
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  font-size: 4.5rem;
}

h2 {
  font-size: 2.45rem;
}

h3 {
  font-size: 1.55rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 40px));
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--black);
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  color: var(--black);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(8, 8, 8, 0.08);
  box-shadow: 0 10px 30px rgba(8, 8, 8, 0.08);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 34%, rgba(255, 212, 41, 0.22) 42%, var(--yellow) 50%, rgba(255, 212, 41, 0.22) 58%, transparent 66% 100%),
    linear-gradient(90deg, rgba(8, 8, 8, 0.1), rgba(8, 8, 8, 0.2), rgba(8, 8, 8, 0.1));
  background-size: 32% 100%, 100% 100%;
  background-position: -16% 0, 0 0;
  background-repeat: no-repeat;
  box-shadow: 0 0 12px rgba(255, 212, 41, 0.38);
  animation: headerRaceLine 2.4s ease-in-out infinite alternate;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  padding: 6px 9px;
  background: #fff;
  border: 1px solid rgba(8, 8, 8, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(8, 8, 8, 0.08);
}

.brand img {
  width: 190px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
  margin-left: auto;
}

.site-nav a,
.site-nav-social a {
  color: var(--black);
  padding: 9px 10px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow-wrap: normal;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.is-active {
  background: var(--yellow);
  color: var(--black);
}

.site-nav-social {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding-left: 9px;
  border-left: 1px solid rgba(8, 8, 8, 0.12);
  flex: 0 0 auto;
}

.site-nav-social a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(8, 8, 8, 0.1);
  background: #fff;
}

.site-nav-social a:hover,
.site-nav-social a:focus {
  color: var(--black);
  border-color: var(--yellow);
  background: var(--yellow);
}

.social-icon {
  width: 19px;
  height: 19px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(8, 8, 8, 0.18);
  background: transparent;
  border-radius: var(--radius);
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--black);
}
