/* авеон в вебе: общее для лендинга и профиля. Цвета — как в плеере (renderer/styles.css):
   дуб и янтарь; --voice — голоса. Тема меняется из theme.js теми же формулами, что в плеере */

@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url(../fonts/unbounded-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url(../fonts/unbounded-latin-500-normal.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: "Unbounded"; font-weight: 700; font-display: swap; src: url(../fonts/unbounded-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(../fonts/unbounded-latin-700-normal.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: "Unbounded"; font-weight: 800; font-display: swap; src: url(../fonts/unbounded-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url(../fonts/unbounded-latin-800-normal.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: "Onest"; font-weight: 400; font-display: swap; src: url(../fonts/onest-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url(../fonts/onest-latin-400-normal.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: "Onest"; font-weight: 500; font-display: swap; src: url(../fonts/onest-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url(../fonts/onest-latin-500-normal.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: "Onest"; font-weight: 600; font-display: swap; src: url(../fonts/onest-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url(../fonts/onest-latin-600-normal.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 {
  --oak: #1b1411;
  --oak-2: #231a16;
  --rivet: #2a201b;
  --rivet-2: #33271f;
  --hoop: #7c7a78;
  --hoop-dim: #4a4340;
  --text: #f1e6d6;
  --text-2: #bfae99;
  --text-3: #8a7a68;
  --amber: #f0a63a;
  --on-amber: #1b1411;
  --voice: #9aa8ff;
  --danger: #ff7b6b;
  --ok: #7dd3a8;
  --display: "Unbounded", "Segoe UI", sans-serif;
  --ui: "Onest", "Segoe UI", system-ui, sans-serif;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 26px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.55 var(--ui);
  color: var(--text);
  background: var(--oak);
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s ease;
}
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--amber) 40%, transparent); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--rivet-2);
  background: var(--rivet); color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--rivet-2); border-color: var(--hoop-dim); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--amber); color: var(--on-amber); border-color: transparent; }
.btn.primary:hover { background: color-mix(in srgb, var(--amber) 88%, #fff); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* ---------- поля ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; color: var(--text-2); }
.input {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: var(--r-s);
  border: 1px solid var(--rivet-2); background: var(--oak-2); color: var(--text);
  transition: border-color .15s ease;
}
.input:hover { border-color: var(--hoop-dim); }
.input:focus { outline: none; border-color: var(--amber); }
.input::placeholder { color: var(--text-3); }
textarea.input { padding: 12px 14px; resize: vertical; min-height: 90px; }

/* ---------- сообщения ---------- */
.note { font-size: 14px; color: var(--text-3); }
.error { color: var(--danger); font-size: 14px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); opacity: 0;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: var(--rivet-2); color: var(--text);
  box-shadow: 0 12px 40px rgb(0 0 0 / .45); pointer-events: none; transition: opacity .2s ease, transform .25s ease;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--display); letter-spacing: -.02em; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }

/* ---------- окно входа ---------- */
dialog.auth {
  width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--rivet-2); border-radius: var(--r-l);
  background: var(--oak-2); color: var(--text); box-shadow: 0 30px 80px rgb(0 0 0 / .6);
}
dialog.auth::backdrop { background: rgb(0 0 0 / .6); backdrop-filter: blur(4px); }
dialog.auth[open] { animation: pop .22s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.auth form { display: grid; gap: 16px; padding: 28px; }
.auth h2 { margin: 0; font: 700 22px/1.2 var(--display); }
.auth .tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--oak); }
.auth .tabs button { min-height: 38px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font-weight: 600; }
.auth .tabs button[aria-selected="true"] { background: var(--rivet-2); color: var(--text); }
.auth .close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--text-3); display: grid; place-items: center; }
.auth .close:hover { background: var(--rivet); color: var(--text); }
.auth .close svg { width: 18px; height: 18px; }
.auth .submit { width: 100%; }

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