/* Пульт · основа: токены, сброс, типографика, утилиты.
   Палитра и характер — от админки сайта WCD: крем и бумага, чернила, жёсткие тени, Rubik. */
:root {
  --ink: #1d1c1c;
  --ink-2: #3a3838;
  --ink-3: #5b5857;
  --mut: rgba(29, 28, 28, .6);
  --mut-2: rgba(29, 28, 28, .42);
  --line: rgba(29, 28, 28, .13);
  --line-2: rgba(29, 28, 28, .22);
  --cream: #fdf6e3;
  --cream-2: #f8efd6;
  --paper: #fffdf7;
  --white: #ffffff;
  --hl: #fff48d;
  --hl-soft: #fffbd2;

  --red: #F04A3F;    --red-l: #F8C3BB;    --red-xl: #fde9e5;
  --yellow: #F5C244; --yellow-l: #FAE29B; --yellow-xl: #fdf3d2;
  --blue: #3E8CD1;   --blue-l: #BBD9F2;   --blue-xl: #e6f1fb;
  --green: #35B27A;  --green-l: #B8E3CD;  --green-xl: #e5f5ec;
  --grey-l: #e8e3d6; --grey-xl: #f2eee3;
  --magenta: #D21F73; --magenta-l: #F6C3DA; --magenta-xl: #fde8f1;

  /* контур: WCD по умолчанию */
  --frame: #1d1c1c;
  --accent: #F5C244;
  --accent-l: #FAE29B;
  --accent-xl: #fdf3d2;
  --accent-fg: #1d1c1c;
  --nav-on: #fff48d;

  --sh-1: 0 1px 0 var(--ink);
  --sh: 0 2px 0 var(--ink);
  --sh-2: 0 3px 0 var(--ink);
  --sh-3: 0 4px 0 var(--ink);
  --sh-pop: 0 6px 0 var(--ink), 0 18px 40px -18px rgba(29, 28, 28, .45);

  --r-xs: 6px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;

  --font: Rubik, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --frame-w: 10px;
  --side-w: 248px;
  --top-h: 66px;
  --drawer-w: 540px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html[data-contour="fe"] {
  --frame: #D21F73;
  --accent: #D21F73;
  --accent-l: #F6C3DA;
  --accent-xl: #fde8f1;
  --accent-fg: #ffffff;
  --nav-on: #F9D3E4;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font: 400 14.5px/1.5 var(--font);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
  overflow-x: hidden;
}
img, svg { display: block; }
svg { overflow: visible; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.012em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: separate; border-spacing: 0; }
[hidden] { display: none !important; }
::selection { background: var(--hl); color: var(--ink); }

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

/* типографика */
.display { font-size: 36px; font-weight: 800; letter-spacing: -.028em; line-height: 1.04; }
.h1 { font-size: 28px; font-weight: 800; letter-spacing: -.022em; line-height: 1.1; }
.h2 { font-size: 20px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.h3 { font-size: 16px; font-weight: 700; letter-spacing: -.008em; line-height: 1.3; }
.h4 { font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--mut); }
.lead { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.small { font-size: 12.5px; line-height: 1.45; }
.xs { font-size: 11.5px; line-height: 1.4; }
.mut { color: var(--mut); }
.mut-2 { color: var(--mut-2); }
.b { font-weight: 700; }
.bb { font-weight: 800; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.nowrap { white-space: nowrap; }
.clip { overflow: hidden; text-overflow: clip; white-space: nowrap; }
.wrap-any { overflow-wrap: anywhere; }
.up { text-transform: uppercase; letter-spacing: .06em; }
.c-red { color: #c4321f; }
.c-green { color: #1f8a5b; }
.c-blue { color: #2a6fae; }
.c-yellow { color: #a97a00; }
.c-magenta { color: var(--magenta); }
.strike { text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* раскладка */
.row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row.top { align-items: flex-start; }
.row.base { align-items: baseline; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.g4 { gap: 4px; } .row.g6 { gap: 6px; } .row.g12 { gap: 12px; } .row.g16 { gap: 16px; } .row.g20 { gap: 20px; } .row.g24 { gap: 24px; }
.col { display: flex; flex-direction: column; min-width: 0; }
.stack { display: grid; gap: 12px; min-width: 0; }
.stack.g4 { gap: 4px; } .stack.g6 { gap: 6px; } .stack.g8 { gap: 8px; } .stack.g16 { gap: 16px; } .stack.g20 { gap: 20px; } .stack.g24 { gap: 24px; } .stack.g32 { gap: 32px; }
.grow { flex: 1 1 auto; min-width: 0; }
.none { flex: none; }
.ml-auto { margin-left: auto; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }
.mb4 { margin-bottom: 4px; } .mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; } .mb24 { margin-bottom: 24px; }
.w100 { width: 100%; }
.center { text-align: center; }
.right { text-align: right; }
.rel { position: relative; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.divider { height: 0; border-top: 1.5px solid var(--line); margin: 0; }
.divider.dash { border-top-style: dashed; border-top-color: var(--line-2); }
.vr { width: 1.5px; align-self: stretch; background: var(--line); flex: none; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* иконки */
.i { display: inline-block; vertical-align: -.22em; width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i.s12 { width: 12px; height: 12px; } .i.s14 { width: 14px; height: 14px; } .i.s16 { width: 16px; height: 16px; }
.i.s20 { width: 20px; height: 20px; } .i.s22 { width: 22px; height: 22px; } .i.s24 { width: 24px; height: 24px; } .i.s28 { width: 28px; height: 28px; }
.i.fill { fill: currentColor; stroke: none; }

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

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(240, 74, 63, .45); } 70% { box-shadow: 0 0 0 9px rgba(240, 74, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 74, 63, 0); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes shimmer { from { background-position: -200px 0; } to { background-position: 200px 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shrink-x { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
