/* Manrope (SIL OFL 1.1) — self-hosted, zero third-party requests */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  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;
}

/* Shared Liquid Glass base for Atruma legal pages (privacy.html, consent.html) */
:root {
  color-scheme: dark;
  --lime: #a6ff00;
  --fill: #246b00;
  --bg: #0b0e0b;
  --fg: #f5f7f2;
  --sub: rgba(232, 240, 226, 0.80);
  --glass-bg: rgba(26, 34, 26, 0.72);
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 44px rgba(0, 0, 0, 0.36);
  --code-bg: rgba(166, 255, 0, 0.12);
  --pad: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #eef2e6;
    --fg: #131813;
    --sub: #2e392e;
    --glass-bg: rgba(255, 255, 255, 0.74);
    --glass-border: rgba(19, 24, 19, 0.10);
    --glass-shine: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 16px 40px rgba(18, 28, 18, 0.08);
    --code-bg: rgba(36, 107, 0, 0.10);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.56;
  color: var(--fg);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 78% 12%, rgba(166, 255, 0, 0.16), transparent 46%),
    radial-gradient(circle at 14% 82%, rgba(36, 107, 0, 0.18), transparent 48%);
  background-attachment: fixed;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 2.5px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
@media (prefers-color-scheme: light) {
  :focus-visible { outline-color: #1e5c00; }
}

.skip {
  position: fixed;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--fill);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.sr {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.fill {
  background: #ad1457;
  color: #fff;
  font-weight: 700;
  padding: 0 0.32em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Frosted Liquid Glass Header */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(14, 18, 14, 0.72);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
@media (prefers-color-scheme: light) {
  .hdr {
    background: rgba(238, 242, 230, 0.78);
    border-bottom-color: rgba(19, 24, 19, 0.08);
  }
  .hdr__logo img { filter: brightness(0.08); }
}
.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 64px;
}
.hdr__logo img { height: 22px; width: auto; }
.hdr__right { display: flex; align-items: center; gap: 10px; }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 13px;
  font-weight: 700;
}
.lang a, .lang span {
  padding: 5px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--sub);
}
.lang [aria-current] {
  background: var(--fill);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.btn--lime {
  background: var(--fill);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
@media (max-width: 379px) {
  .hdr__right .btn--sm { display: none; }
}

/* Footer */
.ftr {
  background: #080a08;
  color: #f5f7f2;
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ftr__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: rgba(245, 247, 242, 0.76);
}
.ftr__bottom a { color: rgba(245, 247, 242, 0.86); }

/* Frosted Cookie Consent Banner on Legal Pages */
.cc {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  max-width: 520px;
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shine);
  color: var(--fg);
  border-radius: 24px;
  padding: 20px;
  display: none;
}
@media (min-width: 640px) {
  .cc { left: 24px; right: auto; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
}
.cc.is-open { display: block; }
.cc__title { font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.cc__text { font-size: 14px; line-height: 1.5; color: var(--sub); margin: 0; }
.cc__text a { color: var(--fg); font-weight: 700; }
.cc__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.cc .btn { padding: 11px 14px; font-size: 14px; width: 100%; }
.cc__all { background: var(--fill); color: #fff; }
.cc__min {
  background: rgba(128, 138, 128, 0.18);
  border-color: var(--glass-border);
  color: var(--fg);
}
