/* Mess — лендинг (этап H.2). Палитра и типографика от темы приложения:
   чернила #0E1621, акцент #3390EC → #8B6CE7, дисплей Unbounded, тело Manrope.
   Фирменный приём — «клин с прорезью»: один раз в герое, дальше тихо. */

/* --- Шрифты (self-host, variable, кириллица + латиница) ------------------- */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('assets/unbounded-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: 500 900;
  font-display: swap;
  src: url('assets/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Токены ---------------------------------------------------------------- */
:root {
  --ink: #0E1621;        /* фон героя и «как поставить» — тёмная тема приложения */
  --ink-2: #14202A;      /* приподнятая поверхность */
  --blue: #3390EC;       /* акцент приложения */
  --violet: #8B6CE7;     /* второй акцент */
  --paper: #F4F7FA;      /* светлый фон секции «что внутри» */
  --text-d: #E6EBEE;     /* текст на тёмном */
  --text-l: #1C2733;     /* текст на светлом */
  --muted-d: rgba(230, 235, 238, .64);
  --muted-l: #6B7885;
  --grad: linear-gradient(135deg, var(--blue), var(--violet));
  --radius: 16px;
  --font-display: 'Unbounded', 'Manrope', sans-serif;
  --font-body: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-l);
  background: var(--ink);
}
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
code {
  font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace;
  font-size: .88em;
  background: rgba(51, 144, 236, .10);
  padding: 1px 6px;
  border-radius: 6px;
}

/* --- Шапка ----------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 22, 33, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 235, 238, .08);
}
.top__in {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: var(--text-d); letter-spacing: .02em;
}
.chip {
  font-size: 12px; font-weight: 800; letter-spacing: .06em;
  color: var(--blue); background: rgba(51, 144, 236, .14);
  border-radius: 999px; padding: 3px 12px; margin-left: 4px;
}
.top__cta {
  text-decoration: none; font-weight: 800; font-size: 15px;
  color: #fff; background: var(--blue);
  padding: 9px 20px; border-radius: 11px;
  transition: background .15s;
}
.top__cta:hover { background: #2481D8; }

/* --- Герой ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .16; pointer-events: none;
}
.hero__wedge { transform-origin: 60% 50%; }
.hero__slash { opacity: .85; }

.hero__in {
  position: relative;
  max-width: 1120px; margin: 0 auto; padding: 88px 24px 96px;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 56px; align-items: center;
}
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-d); margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.08; letter-spacing: .01em;
  color: var(--text-d); margin-bottom: 24px;
}
.hero__lead {
  font-size: 19px; line-height: 1.65; color: var(--muted-d);
  max-width: 460px; margin-bottom: 26px;
}
.marks {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.marks li {
  font-size: 14px; font-weight: 700; color: var(--text-d);
  border: 1px solid rgba(230, 235, 238, .18);
  border-radius: 999px; padding: 7px 16px;
  position: relative; padding-left: 28px;
}
/* метка-клин перед словом — тот же мотив */
.marks li::before {
  content: ''; position: absolute; left: 12px; top: 50%;
  width: 8px; height: 10px; transform: translateY(-50%) skewX(-18deg);
  background: var(--grad);
}

/* Карточка установки */
.get {
  background: var(--ink-2);
  border: 1px solid rgba(230, 235, 238, .10);
  border-radius: 20px;
  padding: 28px;
  display: grid; grid-template-columns: auto 1fr;
  gap: 24px; align-items: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
}
.qrbox {
  width: 172px; height: 172px; padding: 12px;
  background: #fff; border-radius: 14px;
}
.qrbox svg { display: block; width: 100%; height: 100%; }
.get__qrnote { font-size: 13px; color: var(--muted-d); margin-top: 10px; text-align: center; }
.get__btns { display: flex; flex-direction: column; gap: 10px; }
.dl {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 800; font-size: 15.5px;
  color: var(--text-d);
  background: rgba(230, 235, 238, .07);
  border: 1px solid rgba(230, 235, 238, .14);
  padding: 12px 18px; border-radius: 12px;
  transition: background .15s, border-color .15s;
}
.dl svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.dl:hover { background: rgba(230, 235, 238, .12); border-color: rgba(230, 235, 238, .24); }
.dl--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.dl--primary:hover { background: #2481D8; border-color: #2481D8; }
.get__note { font-size: 12.5px; color: var(--muted-d); margin-top: 4px; }

/* --- Что внутри -------------------------------------------------------------- */
.inside { background: var(--paper); }
.inside__in { max-width: 1120px; margin: 0 auto; padding: 88px 24px 92px; }
.h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15;
  color: var(--text-l); margin-bottom: 12px;
}
.how .h2 { color: var(--text-d); }
.sub { color: var(--muted-l); margin-bottom: 44px; }
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: #fff; border-radius: var(--radius);
  padding: 26px 26px 28px;
  box-shadow: 0 2px 10px rgba(28, 39, 51, .06);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(28, 39, 51, .10); }
.card__ic {
  width: 34px; height: 34px; margin-bottom: 16px;
  fill: none; stroke: var(--blue);
  stroke-width: 2.2; stroke-linejoin: miter;
}
.card h3 {
  font-family: var(--font-body); font-weight: 800; font-size: 17.5px;
  color: var(--text-l); margin-bottom: 8px;
}
.card p { font-size: 15px; color: var(--muted-l); }

/* --- Как поставить ------------------------------------------------------------ */
.how { background: var(--ink); }
.how__in { max-width: 1120px; margin: 0 auto; padding: 88px 24px 96px; }
.steps {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  counter-reset: step;
}
.step { position: relative; padding: 26px 26px 28px; background: var(--ink-2); border-radius: var(--radius); }
.step__n {
  font-family: var(--font-display); font-weight: 900; font-size: 40px;
  line-height: 1; display: inline-block; margin-bottom: 16px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 17px; font-weight: 800; color: var(--text-d); margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted-d); }
.step p a { color: var(--text-d); font-weight: 700; }

/* --- Футер --------------------------------------------------------------------- */
.foot { background: var(--ink); border-top: 1px solid rgba(230, 235, 238, .08); }
.foot__in {
  max-width: 1120px; margin: 0 auto; padding: 30px 24px 36px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--muted-d); font-size: 14px;
}
.foot__mark { width: 24px; height: 24px; }
.foot a { color: var(--text-d); }
.foot__c { margin-left: auto; }

/* --- Адаптив --------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; padding-top: 64px; gap: 44px; }
  .get { max-width: 520px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top__in { padding: 12px 18px; }
  .hero__in { padding: 52px 18px 64px; }
  .get { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .get__btns { width: 100%; }
  .inside__in, .how__in { padding: 64px 18px 72px; }
  .grid { grid-template-columns: 1fr; }
  .foot__in { padding: 26px 18px; }
  .foot__c { margin-left: 0; }
}

/* --- Один момент анимации: прорезь в герое ------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .hero__wedge { animation: wedge-in .9s cubic-bezier(.22, .8, .24, 1) both; }
  .hero__slash { animation: slash-in .9s cubic-bezier(.22, .8, .24, 1) .15s both; }
  @keyframes wedge-in {
    from { transform: translateX(-26px) rotate(-1.5deg); opacity: 0; }
    to   { transform: none; opacity: 1; }
  }
  @keyframes slash-in {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: none; opacity: .85; }
  }
}
