:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --header: #173a52;
  --header-2: #0f2736;
  --text: #14202b;
  --muted: #5e6b78;
  --line: #d7dee5;
  --link: #ffffff;
  --link-dark: #173a52;
  --accent: #ffcc66;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 10000;
  background: linear-gradient(180deg, var(--header), var(--header-2));
  color: var(--link);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1002;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--link);
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
}

.brand-text {
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.lang-switcher a {
  text-decoration: none;
  color: var(--link);
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.lang-switcher a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.menu-toggle {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--link);
  width: 48px;
  height: 44px;
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
  position: relative;
  z-index: 1003;
}

.menu-toggle span {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  display: block;
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--link);
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  font-size: 0.98rem;
}

.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.24);
}

main {
  max-width: 1200px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

h1, h2, h3, p {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 18px 16px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.footer-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

.footer-menu a {
  color: var(--link-dark);
  text-decoration: none;
  font-weight: 600;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.95rem;
}

.drawer-backdrop {
  display: none;
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: min(320px, 86vw);
    height: 100vh;
    padding: 88px 16px 16px;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: linear-gradient(180deg, #143247, #102838);
    box-shadow: -18px 0 30px rgba(0, 0, 0, 0.26);
    transition: right 0.25s ease;
    z-index: 1004;
    pointer-events: auto;
  }

  .site-nav.open {
    right: 0;
  }

  .site-nav a {
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1005;
  }

  .drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    z-index: 1001;
    display: none;
    pointer-events: auto;
  }

  .drawer-backdrop.show {
    display: block;
  }
  
}