/* ============ Токены из UI-kit (Figma) ============ */
:root {
  --blue: #1f90ec;
  --blue-hover: #0c75c0;
  --blue-deep: #1f45ec;
  --blue-secondary: #d0e5fd;
  --blue-secondary-hover: #add9fc;
  --blue-tertiary: #e7f4fe;
  --blue-tertiary-hover: #d0ecfd;
  --text: #333;
  --text-muted: rgba(51, 51, 51, .6);
  --bg: #f5f5f5;
  --white: #fff;
  --pos-bg: #ebffee;
  --pos-border: #aff4c6;
  --pos-text: #14ae5c;
  --neg-bg: #fee9e7;
  --neg-border: #fdd3d0;
  --neg-text: #ec221f;
  --grad: linear-gradient(90deg, var(--blue-deep), var(--blue));
  --shadow-200: 0 1px 4px rgba(12, 12, 13, .05), 0 1px 4px rgba(12, 12, 13, .1);
  --shadow-400: 0 4px 4px -4px rgba(12, 12, 13, .05), 0 16px 32px -4px rgba(12, 12, 13, .1);
  --r: 16px;
  --container: 1280px;
  --gutter: 80px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
p, h1, h2, h3, h4, ul { margin: 0; }
ul { padding-left: 21px; }
::selection { background: var(--blue); color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 64px 0 0; position: relative; }

/* ============ Типографика ============ */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h-xl { font-size: 64px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.h-lg { font-size: 40px; font-weight: 700; line-height: 1.2; }
.t-20 { font-size: 20px; }
.t-16 { font-size: 16px; }
.t-14 { font-size: 14px; }
.muted { color: var(--text-muted); }
.accent { color: var(--blue-hover); font-weight: 700; }

/* «Составной» заголовок: крупное слово + подпись со смещением, как в макете */
.title-combo { display: inline-grid; white-space: nowrap; }
.title-combo > * { grid-area: 1 / 1; }
.title-combo .h-lg { line-height: 1.2; }

/* ============ Кнопки ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; font-size: 20px; font-weight: 700; line-height: 1.2;
  background: var(--blue); color: #fff;
  border-radius: 0;
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after { /* блик при наведении */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:active { transform: translateY(0); }
.btn .ico { width: 32px; height: 32px; transition: transform .3s var(--ease); }
.btn--white { background: #fff; color: var(--text); }
.btn--outline { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }

.card {
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow-200);
}
.tile {
  background: var(--blue-tertiary); border: 1px solid var(--blue-tertiary-hover);
  border-radius: 15px; padding: 16px;
}

@media (hover: hover) {
  .btn:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: var(--shadow-400); }
  .btn:hover::after { transform: translateX(120%); }
  .btn:hover .ico { transform: translate(3px, -3px); }
  .btn--white:hover { background: var(--blue-tertiary); }
  .btn--outline:hover { background: var(--blue); color: #fff; }
  .btn--outline:hover .ico { filter: brightness(0) invert(1); }
}

/* ============ Анимации появления ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.from-left { transform: translateX(-60px); }
.reveal.from-right { transform: translateX(60px); }
.reveal.zoom { transform: scale(.92); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
