@font-face {
  font-family: Orbitron;
  src: url("../fonts/orbitron.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b141b;

  --text: #f3f4f8;
  --muted: #9a9eaf;
  --line: rgba(255,255,255,.09);
  --gold: #edc45b;
  --green: #6bb17c;
  --font: Orbitron, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body { margin: 0; background: var(--bg); background-image: linear-gradient(rgba(0,0,0,.14),rgba(0,0,0,.14)),radial-gradient(ellipse at 4% 24%,rgba(29,131,124,.22),transparent 55%),radial-gradient(ellipse at 100% 70%,rgba(171,125,54,.15),transparent 55%),linear-gradient(155deg,#0b131b,#101e25 52%,#0b1118); background-attachment: fixed; color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }

a { color: inherit; text-decoration: none; }

button { font: inherit; }

code { font-family: var(--font); }

.wrap { width: min(940px, calc(100% - 40px)); margin-inline: auto; }

.topbar { position: sticky; z-index: 5; top: 0; border-bottom: 1px solid var(--line); background: rgba(11,20,27,.88); backdrop-filter: blur(18px); }

.nav { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; letter-spacing: -.035em; }

.brand-logo { width: 62px; height: 62px; object-fit: contain; }

.brand-name { color: #f5f4ef; }

.brand-domain { color: #f0c65b; }

main { padding-block: 74px 96px; }

.eyebrow { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

h1 { margin: 14px 0 15px; font-size: clamp(38px, 7vw, 62px); line-height: 1; letter-spacing: -.065em; }

.intro { max-width: 700px; margin: 0 0 44px; color: var(--muted); font-size: 15px; line-height: 1.8; }

.rule-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 46px 0 16px; }

.rule-controls { display: flex; align-items: start; gap: 9px; }

.rule-search { width: min(100%, 340px); margin: 0; }

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

.search-control { display: flex; gap: 9px; }

.search-control input { flex: 1; min-width: 0; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #0c0f17; color: var(--text); font: inherit; font-size: 13px; }

.search-control input:focus { border-color: var(--green); }

.search-control button { display: inline-flex; width: 44px; min-height: 44px; flex: 0 0 44px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 9px; background: var(--gold); color: #14150f; cursor: pointer; }

.search-control button:hover { filter: brightness(1.08); }

.search-control button svg { width: 16px; height: 16px; }

.language-toggle { display: inline-flex; min-height: 36px; flex: 0 0 auto; align-items: center; gap: 7px; padding: 4px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }

.language-toggle:hover .language-flag { transform: scale(1.08); }

.language-toggle:hover .language-code { color: var(--green); }

.language-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.language-current-flag { display: inline-flex; align-items: center; }

.language-flag { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.16); transition: transform .18s ease; }

.language-flag[hidden] { display: none; }

.language-code { min-width: 18px; color: var(--text); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-align: center; }

.search-status { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

.search-status:empty { display: none; }

.section-title { margin: 0; font-size: 22px; letter-spacing: -.04em; }

.rule-list { display: grid; gap: 11px; }

.rule { padding: 20px 22px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012)); }

.rule[hidden], .section-title[hidden] { display: none; }

.rule h3 { margin: 0 0 9px; font-size: 15px; letter-spacing: -.02em; }

.rule p, .rule li { color: #c1c3ce; font-size: 13px; line-height: 1.75; }

.rule p { margin: 7px 0 0; }

.rule ul { display: grid; gap: 5px; margin: 8px 0 0; padding-left: 20px; }

.rule li::marker { color: var(--green); }

.sanction { margin-top: 12px !important; color: #ff6b6b !important; font-weight: 700; }

.last-updated { margin-top: 34px; color: var(--muted); font-size: 12px; }

footer { border-top: 1px solid var(--line); }

.footer-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }

@media (max-width: 680px) {
  .nav { min-height: 68px; }

  .brand-logo { width: 54px; height: 54px; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 32px, 940px); }

  main { padding-block: 54px 70px; }

  .intro { margin-bottom: 34px; }

  .rule-toolbar { flex-direction: column; align-items: stretch; gap: 14px; }

  .rule-controls { width: 100%; }

  .rule-search { width: auto; flex: 1; }

  .rule { padding: 17px; }

  .footer-inner { min-height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .language-flag { transition: none; }
}
