@font-face { font-family: "Unbounded"; font-weight: 500 700; font-display: swap; src: url("/fonts/unbounded-cyr.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 500 700; font-display: swap; src: url("/fonts/unbounded-lat.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 400 600; font-display: swap; src: url("/fonts/golos-cyr.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400 600; font-display: swap; src: url("/fonts/golos-lat.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 500; font-display: swap; src: url("/fonts/mono-cyr.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 500; font-display: swap; src: url("/fonts/mono-lat.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #eef1f6;
  --node: #ffffff;
  --ink: #0e1526;
  --muted: #556079;
  --line: #c9d0dd;
  --cobalt: #2b45e8;
  --signal: #ff8a1f;

  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.label {
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Шапка */

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.wordmark {
  font: 700 1.25rem/1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark span { color: var(--cobalt); }

.top-mail {
  font: 400 0.875rem/1 var(--mono);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.2rem;
}

.top-mail:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* Первый экран */

.hero { padding-top: clamp(2.5rem, 8vw, 6rem); }

.hero h1 {
  margin: 1rem 0 0;
  max-width: 17ch;
  font: 700 clamp(2.1rem, 5.6vw, 4.4rem)/1.08 var(--display);
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--cobalt);
}

.lede {
  max-width: 38rem;
  margin: 1.75rem 0 0;
  font-size: 1.1875rem;
  color: var(--muted);
}

.cta {
  display: inline-block;
  margin-top: 2.25rem;
  padding: 1rem 1.6rem;
  background: var(--ink);
  color: var(--paper);
  font: 500 1rem/1 var(--body);
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.2s;
}

.cta:hover { background: var(--cobalt); }

/* Схема-конвейер: главный визуальный элемент */

.flow {
  margin: clamp(3.5rem, 9vw, 6rem) 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.flow ol {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2.5rem;
}

.flow li {
  position: relative;
  padding: 1rem 1rem 1.1rem;
  background: var(--node);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.flow li small {
  display: block;
  font: 400 0.6875rem/1.3 var(--mono);
  color: var(--muted);
  text-transform: lowercase;
}

.flow li span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.flow li.human {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.flow li.human small { color: #c9d1ff; }

/* Связь к следующему узлу и бегущий по ней импульс */
.flow li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 2.5rem;
  border-top: 1px dashed var(--muted);
}

.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  left: 100%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0;
  animation: pulse 5s linear infinite;
}

.flow li:nth-child(2)::after { animation-delay: 1s; }
.flow li:nth-child(3)::after { animation-delay: 2s; }
.flow li:nth-child(4)::after { animation-delay: 3s; }

@keyframes pulse {
  0%   { transform: translateX(0); opacity: 0; }
  2%   { opacity: 1; }
  18%  { transform: translateX(calc(2.5rem - 7px)); opacity: 1; }
  20%, 100% { transform: translateX(calc(2.5rem - 7px)); opacity: 0; }
}

/* Разделы */

.section {
  padding-top: clamp(4.5rem, 11vw, 8rem);
}

.section h2 {
  margin: 0.75rem 0 0;
  max-width: 20ch;
  font: 700 clamp(1.6rem, 3.4vw, 2.4rem)/1.15 var(--display);
  letter-spacing: -0.03em;
}

/* Услуги: строки, а не карточки */

.services {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.services li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem 3rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.services h3 {
  margin: 0;
  font: 600 1.25rem/1.3 var(--body);
}

.services p { margin: 0; color: var(--muted); }

.services .label {
  display: block;
  margin-top: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
}

/* Порядок работы: тут нумерация отражает реальную последовательность */

.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.steps li { counter-increment: step; }

.steps li::before {
  content: "шаг " counter(step);
  display: block;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--cobalt);
  font: 500 0.75rem/1 var(--mono);
  color: var(--cobalt);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.steps h3 { margin: 0; font: 600 1.125rem/1.3 var(--body); }

.steps p { margin: 0.5rem 0 0; color: var(--muted); font-size: 1rem; }

/* О разработчике */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem 3rem;
  margin-top: 2.5rem;
}

.about > p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
}

.prod {
  margin: 0;
  padding: 1.5rem 1.75rem;
  background: var(--node);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.prod ul { margin: 1rem 0 0; padding: 0; list-style: none; }

.prod li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.5rem;
  border-top: 1px solid var(--paper);
}

.prod li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #23a45a;
}

/* Контакт */

.contact {
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.mail {
  display: inline-block;
  margin-top: 1.75rem;
  font: 700 clamp(1.6rem, 6vw, 4rem)/1.1 var(--display);
  letter-spacing: -0.035em;
  color: var(--cobalt);
  text-decoration: none;
  border-bottom: 3px solid currentColor;
  overflow-wrap: anywhere;
}

.mail:hover { color: var(--ink); }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
}

/* Страница 404 */

.lost {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lost h1 {
  margin: 1rem 0 0;
  font: 700 clamp(2rem, 6vw, 4rem)/1.1 var(--display);
  letter-spacing: -0.035em;
}

.lost p { color: var(--muted); }

/* Адаптив */

@media (max-width: 60rem) {
  .flow ol { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; max-width: 26rem; }

  .flow li:not(:last-child)::before {
    top: 100%;
    left: 1.5rem;
    width: 0;
    height: 1.75rem;
    border-top: 0;
    border-left: 1px dashed var(--muted);
  }

  .flow li:not(:last-child)::after {
    top: 100%;
    left: calc(1.5rem - 3px);
    animation-name: pulse-down;
  }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services li, .about { grid-template-columns: minmax(0, 1fr); }
}

@keyframes pulse-down {
  0%   { transform: translateY(0); opacity: 0; }
  2%   { opacity: 1; }
  18%  { transform: translateY(calc(1.75rem - 7px)); opacity: 1; }
  20%, 100% { transform: translateY(calc(1.75rem - 7px)); opacity: 0; }
}

@media (max-width: 34rem) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .top-mail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .flow li:not(:last-child)::after { animation: none; }
  .cta { transition: none; }
}
