/* ===================== eTroniX — Design System (variables, reset, typography) ===================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg:        #f4f7fc;
  --bg-2:      #eef2f9;
  --surface:   #ffffff;
  --surface-2: #f8fafd;

  --ink:   #0b1526;
  --ink-2: #44516a;
  --ink-3: #7c8aa3;
  --ink-4: #aab4c6;

  --line:   #e4e9f2;
  --line-2: #d3dbe8;

  --blue:        #1462ff;
  --blue-bright: #2f80ff;
  --blue-deep:   #0a3bbf;
  --blue-soft:   #eaf1ff;
  --blue-soft-2: #dbe8ff;
  --glow:        rgba(34,108,255,.38);
  --glow-soft:   rgba(34,108,255,.16);

  --green:      #11a36b;
  --green-soft: #e3f7ee;
  --amber:      #d98a00;
  --amber-soft: #fdf0d8;
  --red:        #e23b4e;
  --red-soft:   #fde7ea;

  --spec-zebra: #e9f2f3;   /* фон чётных строк характеристик */

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --sh-1:    0 1px 2px rgba(11,21,38,.05), 0 2px 8px rgba(11,21,38,.04);
  --sh-2:    0 4px 14px rgba(11,21,38,.07), 0 1px 3px rgba(11,21,38,.05);
  --sh-3:    0 14px 40px rgba(11,21,38,.12), 0 3px 10px rgba(11,21,38,.06);
  --sh-blue: 0 10px 30px var(--glow), 0 2px 8px var(--glow-soft);

  --maxw:     1440px;
  --header-h: 132px;

  --ff:      'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.45;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
#app-content { flex: 1; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--blue); color: #fff; }

*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 20px; border: 3px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

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

/* ---------- typography ---------- */
.mono    { font-family: var(--ff-mono); }
.eyebrow {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
}
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 19px; height: 19px; }
.btn-primary {
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  color: #fff; box-shadow: var(--sh-blue);
}
.btn-primary:hover { box-shadow: 0 12px 34px var(--glow), 0 3px 10px var(--glow-soft); filter: brightness(1.04); }
.btn-ghost  { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: var(--sh-1); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-soft   { background: var(--blue-soft); color: var(--blue-deep); }
.btn-soft:hover { background: var(--blue-soft-2); }
.btn-dark   { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #16223a; }
.btn-block  { width: 100%; }
.btn-lg     { height: 54px; padding: 0 28px; font-size: 16px; border-radius: var(--r-md); }
.btn-sm     { height: 38px; padding: 0 15px; font-size: 13px; border-radius: 10px; }

.iconbtn {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--ink-2);
  position: relative; transition: all .15s ease;
}
.iconbtn:hover { border-color: var(--blue); color: var(--blue); }
.iconbtn svg { width: 21px; height: 21px; }
.iconbtn .count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--blue); color: #fff; border-radius: 20px; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface);
}

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
  border-radius: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  font-family: var(--ff-mono);
}
.badge-blue  { background: var(--blue-soft);  color: var(--blue-deep); }
.badge-red   { background: var(--red-soft);   color: var(--red); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-dark  { background: var(--ink); color: #fff; }

/* ---------- card shell ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* ---------- placeholder ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  background: repeating-linear-gradient(135deg, #eef3fb 0 11px, #e7eefa 11px 22px);
  display: flex; align-items: center; justify-content: center;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .06em;
  color: var(--ink-4); text-align: center; padding: 8px 12px; max-width: 85%;
  text-transform: uppercase;
}
.ph-glow {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(34,108,255,.10), transparent 60%),
    repeating-linear-gradient(135deg, #eef3fb 0 11px, #e7eefa 11px 22px);
}

/* ---------- helpers ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fadeup { animation: fadeUp .4s ease both; }

@keyframes shimmer { 100% { background-position: 200% 0; } }

.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

.scroll-x { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.sec-head h2 { font-size: 30px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); font-size: 14px; }
.link-more:hover { gap: 9px; }

.section { margin-top: 56px; }

.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  height: 38px; padding: 0 17px; border-radius: 11px;
  background: var(--surface); border: 1.5px solid var(--line);
  font-weight: 700; font-size: 13.5px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .15s; white-space: nowrap; cursor: pointer;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.on {
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  color: #fff; border-color: transparent; box-shadow: var(--sh-blue);
}

:focus-visible { outline: 3px solid var(--glow-soft); outline-offset: 2px; }
