/* Шрифты размещены на нашем сервере (SIL OFL 1.1, файлы лицензий лежат в frontend/fonts/): IP посетителей не передаётся Google. */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-text-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;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 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: 200 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;
}
:root {
  --bg: #fffffc;
  --ink: #000000;
  --muted: #6b7164;
  --line: #e7e8de;
  --green: #3b5127;
  /* Filled buttons and badges: softer than the text green. */
  --fill: #50643a;
  --sidebar: #f4f5ec;
}
* {
  box-sizing: border-box;
}
html {
  scrollbar-gutter: stable;
  /* iOS must not enlarge text on rotation; layout sizes are set explicitly. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.fonts-loading .sidebar > * {
  visibility: hidden;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 15.68px;
  /* Symbols such as ↗ and ✳ are interface glyphs, never colour emoji. */
  font-variant-emoji: text;
}
button,
a,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #425a23;
  outline-offset: 4px;
}
/* boot.js: a visitor who is probably signed in sees the app shell at once; the public page waits behind it. */
.app-shell #landing {
  display: none;
}
/* !important: responsive.css switches every [hidden] off with !important, and the shell is built on that attribute. */
.app-shell #workspace[hidden] {
  display: block !important;
}

/* Skeletons: wherever content is still on its way, a shimmering block of its size stands in.
   The real text may sit inside (it keeps the size) and is hidden until the content arrives. */
@keyframes skeleton-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
/* The doubled class lets the placeholder win over a component's own background and colour. */
:where(.skeleton) {
  border-radius: 6px;
}
.skeleton.skeleton {
  color: transparent;
  background: linear-gradient(90deg, #dce3ce 25%, #f1f5e7 50%, #dce3ce 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}
.skeleton::placeholder {
  color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .skeleton.skeleton {
    animation: none;
  }
}

/* "Мы в Telegram": the one filled button in the footers, kept apart from the policy links. */
a.tg-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1b7fb4;
  color: #fff !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .15s;
}
a.tg-button:hover { background: #166a98; }
a.tg-button:focus-visible { outline: 2px solid #1b7fb4; outline-offset: 3px; }
a.tg-button svg { flex: none; }
/* In the app the footer is one thin line: a smaller button, same colour. */
.main-footer a.tg-button { padding: 6px 12px; gap: 6px; font-size: 11px; }
.main-footer a.tg-button svg { width: 14px; height: 14px; }
