/* Salut Temirtau — shared tokens and primitives (site + admin). See PLAN.md "Дизайн-концепция". */

@font-face { font-family: 'Unbounded'; font-weight: 600; font-display: swap; src: url(/fonts/unbounded-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: 'Unbounded'; font-weight: 600; font-display: swap; src: url(/fonts/unbounded-cyrillic-ext-600-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Unbounded'; font-weight: 600; font-display: swap; src: url(/fonts/unbounded-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, U+20B8; }
@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-cyrillic-ext-700-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@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, U+20B8; }
@font-face { font-family: 'Golos Text'; font-weight: 400; font-display: swap; src: url(/fonts/golos-text-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: 'Golos Text'; font-weight: 400; font-display: swap; src: url(/fonts/golos-text-cyrillic-ext-400-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Golos Text'; font-weight: 400; font-display: swap; src: url(/fonts/golos-text-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, U+20B8; }
@font-face { font-family: 'Golos Text'; font-weight: 500; font-display: swap; src: url(/fonts/golos-text-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: 'Golos Text'; font-weight: 500; font-display: swap; src: url(/fonts/golos-text-cyrillic-ext-500-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Golos Text'; font-weight: 500; font-display: swap; src: url(/fonts/golos-text-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, U+20B8; }
@font-face { font-family: 'Golos Text'; font-weight: 600; font-display: swap; src: url(/fonts/golos-text-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: 'Golos Text'; font-weight: 600; font-display: swap; src: url(/fonts/golos-text-cyrillic-ext-600-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Golos Text'; font-weight: 600; font-display: swap; src: url(/fonts/golos-text-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, U+20B8; }

:root {
  --bg: #0D1030;
  --surface: #161A44;
  --surface-2: #20255A;
  --line: #2E3470;
  --text: #F4F2FF;
  --muted: #AEB0D6;
  --accent: #FFB23F;
  --accent-hover: #FFC466;
  --on-accent: #1A1300;
  --sale: #FF5C8A;
  --ok: #4BE3A0;
  --danger: #FF6B6B;

  --f-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --f-text: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --t-xs: 13px; --t-s: 15px; --t-m: 17px; --t-l: 20px; --t-xl: 24px; --t-2xl: 30px; --t-3xl: 38px; --t-4xl: 52px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-field: 10px; --r-card: 18px; --r-pill: 999px;

  --tap: 48px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --shadow-lift: 0 18px 40px -18px rgba(3, 4, 20, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* class display rules must never resurrect an element the code hid */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--t-m)/1.5 var(--f-text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.icon { width: 22px; height: 22px; flex: none; }
.icon-s { width: 18px; height: 18px; flex: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--tap); padding: 0 var(--s5);
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  font-weight: 600; font-size: var(--t-m); text-decoration: none; white-space: nowrap;
  transition: background-color .18s, transform .12s var(--ease-out), opacity .18s;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover:not([disabled]) { background: var(--accent-hover); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover:not([disabled]) { background: var(--line); }
.btn-outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline:hover:not([disabled]) { box-shadow: inset 0 0 0 1.5px var(--muted); }
.btn-danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--danger) 50%, transparent); }
.btn-wa { background: #25D366; color: #06210F; }
.btn-wa:hover:not([disabled]) { background: #3BE07A; }
.btn-block { width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding-top: var(--s2); padding-bottom: var(--s2); }
.btn-lg { min-height: 56px; font-size: var(--t-l); }
.icon-btn {
  display: inline-grid; place-items: center; width: var(--tap); height: var(--tap);
  border: 0; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text); cursor: pointer;
  transition: background-color .18s;
}
.icon-btn:hover { background: var(--line); }

/* Fields */
.field { display: grid; gap: var(--s2); }
.field > label, .field-label { font-weight: 600; font-size: var(--t-s); }
.field .hint { color: var(--muted); font-size: var(--t-xs); }
.input, .textarea, .select {
  width: 100%; min-height: var(--tap); padding: var(--s3) var(--s4);
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--r-field);
  font-size: var(--t-m); transition: border-color .15s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.input::placeholder, .textarea::placeholder { color: #8587B8; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); }
.field.invalid .input, .field.invalid .textarea { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: var(--t-xs); font-weight: 500; display: none; }
.field.invalid .error { display: block; }

.check { display: flex; align-items: flex-start; gap: var(--s3); cursor: pointer; min-height: var(--tap); padding: var(--s2) 0; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--accent); flex: none; }

/* Toast */
.toast-wrap { position: fixed; left: 50%; bottom: calc(var(--s5) + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; display: grid; gap: var(--s2); width: min(92vw, 420px); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4);
  background: #F4F2FF; color: #14173A; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow-lift);
  animation: toast-in .25s var(--ease-out);
}
.toast.err { background: #FFE3E3; color: #5A0F0F; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

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