/* Копибара — общее для всех страниц сайта: цвета, шрифт, шапка, подвал, кнопки.
   Цвета — тёмная тема приложения (swiftui/Kopibara/UI/Tokens.generated.swift): «живая» бирюза,
   латунь, нейтрали. Шрифт Manrope лежит на сайте: разбору выписок внешние запросы запрещены.
   Кегль не меньше 13px — это проверяет тест web/test/pageText.test.ts. */

@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; }

@font-face { font-family: Comfortaa; font-weight: 300 700; font-display: swap; src: url(fonts/comfortaa.ttf) format('truetype'); }

:root {
  color-scheme: dark;
  --bg: #0b1112;
  --surface: #131a1b;
  --surface2: #1b2526;
  --border: #263234;
  --text: #f3f5f4;
  --sec: #cbd1d0;
  --muted: #9aa6a4;
  --dim: #6f7b79;
  --accent: #d6b77d;
  --accent-ink: #1d1608;
  --live: #5eead4;
  --deep: #0e6b60;
  --living-base: #031416;
  --plus: #5fd38d;
  --minus: #ff7a7a;
  --warn: #efb281;
  --grid: #223032;
  --radius: 24px;
  --max: 1240px;
  --f: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--f); -webkit-font-smoothing: antialiased; }
::selection { background: var(--deep); color: #fff; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--live); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* Шапка */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.6px; text-decoration: none; }
.logo img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.logo-word { font-family: Comfortaa, var(--f); font-weight: 700; font-size: 25px; letter-spacing: -.3px; text-transform: lowercase; color: var(--text); }
.logo .kopi { color: var(--accent); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--sec); font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 12px; }
.site-nav a:hover { background: var(--surface); color: var(--text); }
.site-nav a[aria-current=page] { color: var(--text); background: var(--surface); }
.site-nav .ext { color: var(--accent); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 14px 22px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; position: relative; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px #ffffff33; }
.btn.ghost:hover { background: #ffffff0d; }
.btn input[type=file], label input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--live); text-decoration: underline; text-underline-offset: 3px; }

.eyebrow { margin: 0; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0.3px; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Подвал */
.site-foot { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 64px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-foot a { color: var(--sec); }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .site-head { min-height: 0; padding: 16px 0 8px; flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .site-nav a { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 440px) {
  .site-head { flex-wrap: nowrap; }
  .site-nav { width: auto; flex-wrap: nowrap; }
  .site-nav .ext, .site-nav .wide { display: none; }
  .logo-word { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
