/* ==========================================================================
   Друзья! · Клуб настольных игр — colors & type
   Источник: friendsclub/app/web/style.css (единственный источник стилей)
   Шрифты: Unbounded (display) + Onest (body), Google Fonts, файлы в fonts/
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face{font-family:'Onest';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/Onest-400-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'Onest';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/Onest-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212;}
@font-face{font-family:'Onest';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/Onest-500-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'Onest';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/Onest-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212;}
@font-face{font-family:'Onest';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/Onest-600-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'Onest';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/Onest-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212;}
@font-face{font-family:'Onest';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/Onest-700-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'Onest';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/Onest-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/Unbounded-600-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/Unbounded-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/Unbounded-700-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/Unbounded-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212;}

:root {
  color-scheme: light;

  /* ---- Base: header / dark ---- */
  --header-bg: #14100B;
  --header-ink: #FDF8EE;
  --dark: #1A1209;
  --dark-2: #221B14;
  --dark-3: #3A2E21;

  /* ---- Base: warm paper grounds ---- */
  --ground: #FAF3E6;
  --ground-2: #F4E8D2;
  --card: #FFFDF9;
  --card-2: #F5E7CE;
  --card-hover: #FFF9EC;

  /* ---- Base: ink + hairlines ---- */
  --ink: #1F160E;
  --muted: #69543D;
  --line: #E5D2B2;
  --line-2: #D4B98E;

  /* ---- Base: gold (brand accent) ---- */
  --gold: #DF9B35;
  --gold-bright: #EAAC4B;
  --gold-deep: #9A6212;
  --gold-soft: #FDF0D5;
  --gold-line: #E2B467;

  /* ---- Base: semantic ---- */
  --hot: #B54426;
  --hot-bg: #FDECE6;
  --hot-line: #E8B4A4;
  --ok: #1E6A41;
  --ok-bg: #E4F5EC;
  --ok-line: #9ED4B5;

  /* ---- Gradients (used verbatim from product css) ---- */
  --grad-primary: linear-gradient(135deg, #EAAC4B 0%, #DF9B35 100%);
  --grad-primary-hover: linear-gradient(135deg, #F0B659 0%, #E39F38 100%);
  --grad-choice: linear-gradient(135deg, #FFFDF7 0%, #FDF1D6 100%);
  --grad-ticket: linear-gradient(155deg, #FFFDF9 0%, #FDF2DA 100%);
  --grad-solo: linear-gradient(135deg, #FFF7E2 0%, #F9E5BA 100%);
  --grad-rule: linear-gradient(90deg, #DF9B35 0%, #F4CA7E 50%, #DF9B35 100%);
  --grad-page: radial-gradient(120% 70% at 50% 0%, #FFFDF8 0%, #FAF3E6 55%, #F4E8D2 100%);
  --grad-fade: linear-gradient(180deg, rgba(250,243,230,0) 0%, rgba(250,243,230,0.94) 28%, #FAF3E6 100%);

  /* ---- Type families ---- */
  --display: "Unbounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- Type scale (mobile-first; h1 clamps in the app shell) ---- */
  --fs-h1: clamp(1.42rem, 5.2vw, 1.82rem); /* 22.7–29.1px */
  --fs-h2: 1.18rem;   /* 18.9px */
  --fs-h3: 1rem;      /* 16px */
  --fs-body: 1rem;    /* 16px */
  --fs-sm: 0.875rem;  /* 14px */
  --fs-xs: 0.844rem;  /* 13.5px — small, meta, nav */
  --fs-micro: 0.781rem; /* 12.5px — badges, pills */
  --fs-tag: 0.719rem; /* 11.5px — admin KPI labels */

  --lh-tight: 1.18;
  --lh-body: 1.55;
  --track-display: -0.025em;
  --track-caps: 0.04em;

  /* ---- Radii ---- */
  --r-1: 8px;
  --r-2: 10px;
  --r-3: 12px;
  --r-4: 14px;
  --r-5: 16px;
  --r-6: 18px;
  --r-7: 20px;
  --r-pill: 999px;

  /* ---- Elevation (warm brown shadows, never grey) ---- */
  --shadow: 0 10px 28px rgba(58, 36, 10, 0.07), 0 2px 6px rgba(58, 36, 10, 0.04);
  --shadow-sm: 0 4px 14px rgba(58, 36, 10, 0.04);
  --shadow-lg: 0 16px 38px rgba(58, 36, 10, 0.12), 0 4px 10px rgba(58, 36, 10, 0.06);
  --shadow-gold: 0 6px 18px rgba(217, 150, 44, 0.28);
  --shadow-gold-lg: 0 8px 22px rgba(217, 150, 44, 0.36);
  --ring-gold: inset 0 0 0 1px var(--gold);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.15s;
  --t-base: 0.18s;
  --t-slow: 0.2s;

  /* ---- Spacing scale (4px base) ---- */
  --s-1: 4px;
  --s-2: 6px;
  --s-3: 8px;
  --s-4: 10px;
  --s-5: 12px;
  --s-6: 14px;
  --s-7: 16px;
  --s-8: 18px;
  --s-9: 20px;
  --s-10: 24px;
  --s-11: 28px;
  --s-12: 38px;

  /* ---- Layout ---- */
  --shell-mobile: 520px;
  --shell-admin: 1080px;
  --shell-scan: 560px;
  --tap-min: 44px;
  --header-h-pad: 10px 16px 12px;

  /* ---- Semantic roles ---- */
  --page-bg: var(--grad-page);
  --page-ink: var(--ink);
  --surface: var(--card);
  --surface-sunken: var(--ground);
  --hairline: var(--line);
  --hairline-strong: var(--line-2);
  --link: var(--gold-deep);

  --h1-color: var(--ink);
  --h1-font: var(--display);
  --h2-color: var(--ink);
  --h2-font: var(--display);
  --h3-color: var(--ink);
  --body-font: var(--body);
  --muted-color: var(--muted);

  --accent: var(--gold);
  --accent-ink: var(--dark);
  --accent-text: var(--gold-deep);
  --accent-wash: var(--gold-soft);

  --success: var(--ok);
  --success-wash: var(--ok-bg);
  --danger: var(--hot);
  --danger-wash: var(--hot-bg);
}

/* ---- Global element defaults ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page-bg);
  background-attachment: fixed;
  color: var(--page-ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

input, select, textarea, button { box-sizing: border-box; }

/* ---- Semantic elements ---- */
h1, .h1 {
  font-family: var(--h1-font);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--track-display);
  color: var(--h1-color);
  margin: var(--s-8) 0 var(--s-3);
}
h2, .h2 {
  font-family: var(--h2-font);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--track-display);
  color: var(--h2-color);
  margin: 0 0 var(--s-2);
}
h3, .h3 {
  font-family: var(--body);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.4;
  color: var(--h3-color);
  margin: 0 0 var(--s-1);
}
p { margin: 0 0 var(--s-4); }
small, .small { color: var(--muted); font-size: var(--fs-xs); }
.muted { color: var(--muted); }
a { color: var(--link); text-decoration: none; font-weight: 600; }

.eyebrow {
  font-family: var(--body);
  font-size: var(--fs-tag);
  font-weight: 600;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--muted);
}
.price {
  color: var(--accent-text);
  font-family: var(--body);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mono { font-family: var(--mono); font-size: var(--fs-xs); }

/* ==========================================================================
   Дополнения продукта: значения, которые нужны экранам мини-аппа, бота
   и админки. Здесь же единственные hex вне базовой таблицы.
   ========================================================================== */
:root {
  /* тёмная карточка ближайшего вечера */
  --dark-panel: #1A1209;
  --dark-panel-2: #2B1E10;
  --dark-panel-3: #3A2A14;
  --dark-border: #3E2E1C;
  --dark-ink-soft: #A9957B;
  --dark-ink-2: #C9B59A;
  --dark-ink-3: #F0DDBE;

  /* шапка и канты */
  --header-deep: #0B0805;
  --gold-line-strong: #C98520;
  --gold-line-soft: #EBC680;
  --gold-line-solo: #E7C077;
  --gold-hover-bg: #F1DEC0;
  --gold-wash-12: rgba(229, 171, 80, 0.12);
  --gold-wash-14: rgba(229, 171, 80, 0.14);
  --gold-wash-26: rgba(229, 171, 80, 0.26);
  --gold-wash-50: rgba(253, 240, 213, 0.5);
  --gold-shadow-10: rgba(217, 150, 44, 0.24);
  --gold-shadow-18: rgba(223, 155, 53, 0.18);
  --gold-shadow-32: rgba(223, 155, 53, 0.32);

  /* служебные состояния */
  --disabled-bg: #F4ECE0;
  --danger-ink: #8E3419;
  --success-ink: #14522F;
  --scan-ok-1: #16341F;
  --scan-ok-2: #0C1A10;
  --scan-bad-1: #38200F;
  --scan-bad-2: #1A0E07;
  --camera-1: #2A2015;
  --camera-2: #14100B;
}
:root {
  /* шапка мини-аппа: под логотип, без перекраски картинки */
  --header-black: #050403;
}
