/* Shared by the public pages and the admin panel. Brand tokens follow ansp.kg. */

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --navy: #2957a4;
  --navy-700: #1f4a94;
  --navy-800: #163d80;
  --navy-900: #0e2a5c;
  --cyan: #00afef;

  --text: #1a2b4a;
  --heading: var(--navy-900);
  --muted: #55657f;
  --link: var(--navy);
  --focus: #0079b0;
  --border: #dce7f3;
  --border-strong: #bfd0e6;
  --bg: #ffffff;
  --bg-alt: #f3f8fd;
  --surface-muted: #eef5fc;
  --primary-soft: #eaf1fb;
  --accent-soft: #e3f6fd;
  --danger: #b42318;
  --danger-soft: #fef3f2;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px -2px rgb(14 42 92 / 10%);
  --shadow-md: 0 10px 28px -10px rgb(14 42 92 / 18%), 0 2px 6px rgb(14 42 92 / 5%);

  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Unbounded", var(--font-body);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  line-height: 1.2;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--navy-800);
}

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

code,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--surface-muted);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

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

.container {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}

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

.table-wrap {
  overflow-x: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.125rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--navy-700);
  color: #fff;
}

.button:active {
  background: var(--navy-800);
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.button--secondary {
  background: var(--primary-soft);
  border-color: var(--border-strong);
  color: var(--navy-800);
}

.button--secondary:hover {
  background: var(--border);
  color: var(--navy-900);
}

.button--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--navy);
}

.button--ghost:hover {
  background: var(--primary-soft);
  color: var(--navy-800);
}

.button--danger {
  background: var(--danger);
}

.button--danger:hover {
  background: #912018;
}

.button--block {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
