@font-face { font-family: 'Ploni'; font-weight: 300; font-display: swap; src: url(/fonts/ploni-300.woff2) format('woff2'); }
@font-face { font-family: 'Ploni'; font-weight: 400; font-display: swap; src: url(/fonts/ploni-400.woff2) format('woff2'); }
@font-face { font-family: 'Ploni'; font-weight: 500; font-display: swap; src: url(/fonts/ploni-500.woff2) format('woff2'); }
@font-face { font-family: 'Ploni'; font-weight: 600; font-display: swap; src: url(/fonts/ploni-600.woff2) format('woff2'); }
@font-face { font-family: 'Ploni'; font-weight: 700; font-display: swap; src: url(/fonts/ploni-700.woff2) format('woff2'); }

:root {
  --font: 'Ploni', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --bg: #ffffff;
  --card: #ffffff;
  --soft: #f7f7f9;
  --hover: #f1f1f4;
  --active: #e8e8ed;
  --text: #0f1014;
  --muted: #8b8f99;
  --line: #ececf0;
  --accent: #0f1014;
  --accent-soft: #f1f1f4;
  --link: #2f5bea;
  --ok: #1a9a68;
  --ok-soft: #e9f6f0;
  --warn: #b97f00;
  --warn-soft: #fbf3dd;
  --error: #d8453f;
  --error-soft: #fcebea;
  --info: #8b8f99;
  --info-soft: #f1f1f4;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* иконки набора двухцветные: цвета заданы в самих файлах. .ico без плитки, .ico-tile на цветной плитке */
.ico { display: inline-block; flex: none; width: 1.25em; height: 1.25em; object-fit: contain; vertical-align: middle; }
.ico-tile { display: inline-block; flex: none; width: 36px; height: 36px; object-fit: contain; }
/* на чёрных и синих кнопках иконка белая */
.btn:not(.secondary) .ico { filter: brightness(0) invert(1); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ярлык на экране телефона (режим приложения): страница не «тянется» резинкой и не плавает при прокрутке */
@media (display-mode: standalone) {
  html, body { overscroll-behavior-y: none; }
}

/* окно проверки «вы не робот» (Turnstile) показывается только когда нужно, по центру над нижней панелью */
.ts-box { position: fixed; inset-inline: 0; bottom: 96px; display: flex; justify-content: center; z-index: 60; pointer-events: none; }
.ts-box > * { pointer-events: auto; }

/* iPhone приближает страницу, когда вводишь в поле со шрифтом меньше 16px: на сенсорных экранах поля всегда 16px; двойное касание не приближает */
@media (pointer: coarse) {
  input, textarea, select { font-size: 16px !important; }
}
html { touch-action: manipulation; }
