/* ==========================================================================
   Лига прогнозов — тёмная «ночь еврокубков»: почти чёрный синий, электрик-циан,
   широкий геометрический дисплейный шрифт и моноширинные цифры для кэфов.
   ========================================================================== */

:root {
  --bg: #080a11;
  --bg-2: #0b0f19;
  --surface: #10141f;
  --surface-2: #161c2b;
  --surface-3: #1d2434;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --ink: #eef2fb;
  --ink-2: #9aa6be;
  --ink-3: #626e88;

  --accent: #4de2ff;
  --accent-deep: #0b6d86;
  --accent-ink: #04121a;

  --win: #35d07f;
  --loss: #ff5c6c;
  --void: #ffb648;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);

  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 78% -12%, rgba(77, 226, 255, 0.13), transparent 62%),
    radial-gradient(820px 520px at 6% 4%, rgba(122, 90, 255, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* мелкое зерно поверх фона — убирает «пластиковость» плоских заливок */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hidden { display: none !important; }
[hidden] { display: none !important; }
.muted { color: var(--ink-2); margin: 0; }
.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.02rem; }
h4 { font-size: 0.82rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; margin: 14px 0 6px; }

a { color: inherit; }

/* ------------------------------------------------------------------ знак */

.mark {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 15px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--accent-ink);
  background: linear-gradient(150deg, var(--accent), #7c9dff);
  box-shadow: 0 12px 30px -14px rgba(77, 226, 255, 0.85);
}
.mark--sm { width: 36px; height: 36px; border-radius: 11px; font-size: 0.7rem; }

/* ------------------------------------------------------------------ вход */

.auth {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  z-index: 1;
}
.auth__glow {
  position: absolute;
  width: min(760px, 92vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 226, 255, 0.16), transparent 62%);
  filter: blur(12px);
}
.auth__card {
  position: relative;
  width: min(420px, 100%);
  padding: 34px 30px 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(22, 28, 43, 0.92), rgba(13, 17, 27, 0.94));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.auth__title {
  font-size: clamp(2.1rem, 8vw, 2.7rem);
  line-height: 0.95;
  margin: 20px 0 10px;
}
.auth__sub { color: var(--ink-2); margin: 0 0 24px; font-size: 0.88rem; }

/* --------------------------------------------------------------- элементы */

.field { display: block; margin-bottom: 13px; }
.field > span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.field--sm > span { font-size: 0.66rem; }

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(77, 226, 255, 0.16);
}
input[type="number"] { font-family: var(--font-mono); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font: 600 0.86rem/1 var(--font-body);
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
}
.btn:hover:not(:disabled) { background: var(--surface-3); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--primary {
  color: var(--accent-ink);
  background: linear-gradient(140deg, var(--accent), #7fb4ff);
  border-color: transparent;
}
.btn--primary:hover:not(:disabled) { filter: brightness(1.07); background: linear-gradient(140deg, var(--accent), #7fb4ff); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn--sm { padding: 7px 12px; font-size: 0.8rem; }
.btn--block { width: 100%; margin-top: 6px; padding: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.error { color: var(--loss); font-size: 0.85rem; min-height: 1.2em; margin: 12px 0 0; }

.toast {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translate(-50%, -160%);
  z-index: 90;
  max-width: min(520px, 92vw);
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(22, 28, 43, 0.96);
  backdrop-filter: blur(10px);
  font-size: 0.86rem;
  box-shadow: var(--shadow);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast.is-shown { transform: translate(-50%, 0); }
.toast.is-error { border-color: rgba(255, 92, 108, 0.5); color: #ffd9dd; }

/* ------------------------------------------------------------------ шапка */

.app { position: relative; z-index: 1; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 17, 0.82);
  backdrop-filter: blur(16px);
}
.topbar__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-display); font-size: 0.9rem; }
.brand__text small { color: var(--ink-3); font-size: 0.72rem; font-family: var(--font-mono); }

.tabs { display: flex; gap: 4px; margin-left: auto; }
.tab {
  padding: 8px 14px;
  font: 600 0.84rem var(--font-body);
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--accent-ink); background: var(--accent); }

.topbar__right { display: flex; align-items: center; gap: 10px; }
.bank-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 26px 18px 70px; }

.panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.panel__head p { font-size: 0.86rem; }
.section-title { margin: 22px 0 10px; font-size: 0.95rem; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.seg__btn {
  padding: 7px 14px;
  font: 600 0.8rem var(--font-body);
  color: var(--ink-2);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}
.seg__btn.is-active { color: var(--ink); background: var(--surface-3); }

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 182, 72, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(255, 182, 72, 0.12), rgba(255, 182, 72, 0.03));
}
.callout strong { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.callout span { color: var(--ink-2); font-size: 0.85rem; }
.callout__form { display: flex; gap: 8px; }
.callout__form input { width: 150px; }

.empty { color: var(--ink-3); text-align: center; padding: 50px 0; }

/* ------------------------------------------------------------ карта матча */

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.day-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 -2px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.day-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow);
}
.card--pad { padding: 18px; }

.match { display: flex; flex-direction: column; overflow: hidden; }
.match.is-picked { border-color: rgba(77, 226, 255, 0.42); }
.match.is-win { border-color: rgba(53, 208, 127, 0.42); }
.match.is-loss { border-color: rgba(255, 92, 108, 0.32); }

.match__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.chip {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
}
.chip--live { color: var(--void); border-color: rgba(255, 182, 72, 0.4); }
.chip--soon { color: var(--accent); border-color: rgba(77, 226, 255, 0.4); }
.chip--done { color: var(--ink-3); }
.chip--wait { color: var(--ink-2); border-style: dashed; }

.await {
  margin: 0 0 12px;
  padding: 12px 13px;
  font-size: 0.82rem;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
}

.match__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 16px 15px 12px;
}
.team { font-family: var(--font-display); font-size: 0.98rem; line-height: 1.2; }
.team--away { text-align: right; }
.score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--surface-3);
  white-space: nowrap;
}
.score--pending { color: var(--ink-3); background: transparent; font-size: 0.8rem; letter-spacing: 0.08em; }

.markets { padding: 0 15px 6px; }
/* Пять рынков в узкую карточку одной строкой не влезают — переносим:
   две строки читаются лучше, чем обрезанная подпись или скрытый скролл. */
.market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.market-tab {
  flex: 1 1 auto;
  min-width: 64px;
  padding: 7px 9px;
  white-space: nowrap;
  font: 600 0.78rem var(--font-body);
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.market-tab:hover:not(:disabled) { color: var(--ink); }
.market-tab.is-active { color: var(--ink); background: var(--surface-3); border-color: var(--line-strong); }
.market-tab:disabled { opacity: 0.35; cursor: not-allowed; }

.lines {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.line-chip {
  flex: 0 0 auto;
  padding: 5px 11px;
  font: 600 0.78rem var(--font-mono);
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.line-chip.is-active { color: var(--accent); border-color: var(--accent-deep); background: rgba(77, 226, 255, 0.09); }

.picks { display: grid; gap: 6px; grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; }
.picks--two { grid-template-columns: repeat(2, 1fr); }
.pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.12s, border-color 0.15s, background 0.15s;
}
.pick span { font-size: 0.7rem; color: var(--ink-3); letter-spacing: 0.05em; }
.pick strong { font-family: var(--font-mono); font-size: 0.98rem; font-weight: 700; }
.pick:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface-3); }
.pick:disabled { opacity: 0.4; cursor: not-allowed; }
.pick.is-selected {
  background: linear-gradient(150deg, rgba(77, 226, 255, 0.2), rgba(77, 226, 255, 0.05));
  border-color: var(--accent);
}
.pick.is-selected span { color: var(--accent); }

.match__bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-2);
  background: rgba(0, 0, 0, 0.18);
}
.mine { display: flex; align-items: center; gap: 7px; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--ink);
}
.res-win { color: var(--win); font-weight: 600; }
.res-loss { color: var(--loss); font-weight: 600; }
.res-void { color: var(--void); font-weight: 600; }
.link-btn {
  background: none;
  border: none;
  color: var(--ink-3);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline dotted;
  padding: 0;
}
.link-btn:hover { color: var(--loss); }

/* --------------------------------------------------------------- таблицы */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.87rem; min-width: 520px; }
.table th {
  text-align: left;
  padding: 11px 12px;
  font: 600 0.7rem var(--font-body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.table--tight { min-width: 340px; }
.table--tight th, .table--tight td { padding: 8px 10px; font-size: 0.82rem; }
.table .is-me { background: rgba(77, 226, 255, 0.07); }
.rank { font-family: var(--font-mono); color: var(--ink-3); }
.positive { color: var(--win); }
.negative { color: var(--loss); }
.bank-cell { font-weight: 700; }

/* --------------------------------------------------------------- подиум */

.podium { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 20px; }
.podium__item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.podium__item:first-child { border-color: rgba(255, 182, 72, 0.45); background: linear-gradient(160deg, rgba(255, 182, 72, 0.13), var(--bg-2)); }
.podium__place { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-3); }
.podium__name { font-family: var(--font-display); font-size: 1.05rem; margin: 4px 0 6px; }
.podium__bank { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 700; }
.podium__delta { font-family: var(--font-mono); font-size: 0.82rem; }

/* --------------------------------------------------------------- плитки */

.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 20px; }
.tile {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.tile__label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); }
.tile__value { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; margin-top: 6px; line-height: 1.1; }
.tile__hint { font-size: 0.76rem; color: var(--ink-3); margin-top: 3px; }

/* --------------------------------------------------------------- графики */

.chart-card {
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.chart-card figcaption { margin-bottom: 14px; }
.chart-card figcaption p { font-size: 0.82rem; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.chart .axis-text { font: 500 10px var(--font-mono); fill: var(--ink-3); }
.chart .series-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .series-dot { stroke: var(--surface); stroke-width: 2; }
.chart .end-label { font: 600 11px var(--font-body); }
.chart .hover-line { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-empty { color: var(--ink-3); font-size: 0.85rem; padding: 26px 0; text-align: center; }

.chart-tip {
  position: absolute;
  z-index: 5;
  min-width: 132px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(13, 17, 27, 0.97);
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  pointer-events: none;
  transform: translate(-50%, -112%);
  transition: opacity 0.12s;
}
.chart-tip__date { color: var(--ink-3); font-size: 0.72rem; margin-bottom: 5px; }
.chart-tip__row { display: flex; align-items: center; gap: 7px; justify-content: space-between; }
.chart-tip__row + .chart-tip__row { margin-top: 3px; }
.chart-tip__name { display: flex; align-items: center; gap: 6px; }
.swatch { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; }
.chart-tip__val { font-family: var(--font-mono); font-weight: 700; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 0.8rem; color: var(--ink-2); }
.legend__item { display: flex; align-items: center; gap: 6px; }

/* -------------------------------------------------------------- история */

.split { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; align-items: start; }
.history { display: flex; flex-direction: column; gap: 8px; max-height: 620px; overflow-y: auto; padding-right: 4px; }
.history--tight { max-height: 220px; font-size: 0.8rem; }
.hist {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-3);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.hist--win { border-left-color: var(--win); }
.hist--loss { border-left-color: var(--loss); }
.hist--void { border-left-color: var(--void); }
.hist__teams { font-size: 0.88rem; }
.hist__meta { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.76rem; color: var(--ink-3); font-family: var(--font-mono); }
.hist__profit { font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; white-space: nowrap; }

/* --------------------------------------------------------------- админка */

.admin-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.form-stack { display: flex; flex-direction: column; gap: 2px; }
.form-stack .btn { align-self: flex-start; margin-top: 8px; }
.manual { margin-top: 8px; }
.manual__row { display: flex; align-items: center; gap: 8px; }
.manual__row input { width: 74px; }
.colon { font-family: var(--font-mono); color: var(--ink-3); }
.manual__grid { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.manual__grid--4 { grid-template-columns: repeat(4, 1fr); }
.log {
  margin: 12px 0 0;
  padding: 11px;
  max-height: 150px;
  overflow: auto;
  font: 500 0.74rem var(--font-mono);
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  white-space: pre-wrap;
  word-break: break-word;
}
.log:empty { display: none; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 12px 0 0; font-size: 0.82rem; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-family: var(--font-mono); word-break: break-all; }

.foot { padding: 26px 18px 40px; text-align: center; font-size: 0.76rem; color: var(--ink-3); }

/* --------------------------------------------------------------- анимация */

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel:not(.hidden) > * { animation: rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.panel:not(.hidden) > *:nth-child(2) { animation-delay: 0.05s; }
.panel:not(.hidden) > *:nth-child(3) { animation-delay: 0.1s; }
.cards > * { animation: rise 0.35s cubic-bezier(0.22, 1, 0.36, 1) backwards; }

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

/* --------------------------------------------------------------- адаптив */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar__inner { padding: 10px 14px; gap: 10px; }
  .tabs { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .tab { flex: 1 0 auto; }
  .topbar__right { margin-left: auto; }
  .wrap { padding: 20px 14px 60px; }
  .cards { grid-template-columns: 1fr; }
  .manual__grid, .manual__grid--4 { grid-template-columns: repeat(2, 1fr); }
  .brand__text { display: none; }
  .callout { flex-direction: column; align-items: stretch; }
  .callout__form input { flex: 1; width: auto; }
}
