/* Argo Digital — сайт-визитка. Направление «A · Момент», гамма «Коралл».
   Одна страница, без сценариев. Размеры — в rem: на больших мониторах страница
   плавно укрупняется целиком (см. html), на телефонах остаётся как есть.

   ШРИФТ. Сейчас Instrument Sans подключён в index.html с серверов Google.
   Перед выкладкой: положить файл в site/fonts/, снять комментарий с блока ниже
   и убрать из index.html три строки <link> на fonts.googleapis.com / gstatic.com.

@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/InstrumentSans-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
*/

:root {
  color-scheme: light;

  /* Гамма «Коралл» */
  --page: #FFFFFF;
  --card: #FFFFFF;
  --band: #F6F2EB;
  --tile: #F6F3EE;
  --ink: #141F3A;
  --ink-hover: #24325C;
  --on-ink: #FFFFFF;
  --nav: #3B4560;
  --text-2: #4F5970;
  --text-3: #5F687D;
  --on-tint: #4A4A5E;
  --line-top: #ECE7DF;
  --line-card: #E5DFD5;
  --line-strong: #DDD6CB;
  --line-list: #EBE6DE;
  --foot-text: #C9D0DE;
  --accent: #FF6A4D;
  --accent-on: #141F3A;
  --accent-text: #C8452E;
  --halo: #FFEAE6;
  --offer: #FFEFEB;

  /* Сетка */
  --header-h: 4.75rem;
  --wrap: 77.5rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --sec-pad: clamp(4rem, 8vw, 7rem);
  --svh: 1vh;

  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Высота окна без панелей браузера: на телефоне она не прыгает при прокрутке. */
@supports (height: 1svh) {
  :root { --svh: 1svh; }
}

/* Шапка ниже там, где высота на счету: на телефонах и в низких окнах. */
@media (max-width: 39.99rem), (max-height: 40rem) {
  :root { --header-h: 4rem; }
}
@media (max-height: 30rem) {
  :root { --header-h: 3.5rem; }
}

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

/* До 1600 px ширины — обычный размер; дальше страница растёт вместе с окном
   (2560 → в 1,27 раза, 3840 → в 1,625 раза), чтобы не теряться на большом мониторе.
   Рост ограничен высотой окна: в широком, но низком окне страница не укрупняется. */
html {
  font-size: clamp(100%, min(0.4464vw + 0.5536rem, calc(2.6 * var(--svh))), 162.5%);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
strong { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* ---------- Значки ---------- */

.ico {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-arrow { width: 1.125rem; height: 1.125rem; stroke-width: 1.8; }
.ico-row { width: 1.375rem; height: 1.375rem; stroke-width: 1.7; }
.ico-chip { width: 1.25rem; height: 1.25rem; stroke-width: 1.7; }
.ico-check { width: 1.125rem; height: 1.125rem; stroke-width: 2; }

/* ---------- Шапка ---------- */

.top {
  height: var(--header-h);
  border-bottom: 1px solid var(--line-top);
  background: var(--page);
}
.top-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: max(2.75rem, 44px);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-mark { flex: none; width: 1.5rem; height: 1.625rem; }
.mark-sail { fill: var(--accent); }
.mark-keel { fill: var(--ink); }

.top-nav {
  display: none;
  align-items: center;
  gap: 1.875rem;
  font-size: 0.96875rem;
  font-weight: 500;
  color: var(--nav);
  white-space: nowrap;
}
.top-nav a:hover { color: var(--ink); }
@media (min-width: 64rem) {
  .top-nav { display: flex; }
}

/* ---------- Кнопки и ссылки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  white-space: nowrap;
}
.btn-outline {
  min-height: max(2.75rem, 44px);
  padding: 0 1.125rem;
  border: 1px solid var(--ink);
  border-radius: 0.625rem;
  font-size: 0.96875rem;
}
.btn-outline:hover { background: var(--ink); color: var(--on-ink); }
.btn-solid {
  min-height: max(clamp(2.75rem, calc(7.4 * var(--svh)), 3.375rem), 44px);
  padding: 0 1.75rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 1.0625rem;
}
.btn-solid:hover { background: var(--ink-hover); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: max(2.75rem, 44px);
  font-weight: 600;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .link-arrow .ico-arrow { transition: transform 0.18s ease; }
  .btn-outline, .btn-solid { transition: background-color 0.15s ease, color 0.15s ease; }
}
.link-arrow:hover .ico-arrow { transform: translateX(0.1875rem); }

/* ---------- Первый экран ----------
   Правило: шапка и первый экран вместе занимают ровно высоту окна, середина
   содержимого стоит в середине окна. Под содержимым лежит пустая полоса (::after)
   высотой с шапку: она уравновешивает шапку и забирает свободное место первой,
   а остаток делится поровну сверху и снизу. Когда места мало, полоса сжимается
   до нуля — экран не становится выше окна без нужды. Три раскладки:
   1) узкое или низкое окно — в первом экране только текст, карточка идёт следом;
   2) узкое и высокое (планшет стоя) — текст и карточка друг под другом в одном экране;
   3) широкое (от 1024 px) — текст слева, карточка справа. */

.hero {
  --pad-y: clamp(1rem, calc(5 * var(--svh)), 4.5rem);
  --feed-size: 1rem;
  --halo-up: min(3.25em, var(--pad-y));
  overflow-x: hidden;
  overflow-x: clip;
}

.hero-text {
  min-height: calc(100 * var(--svh) - var(--header-h));
  display: flex;
  flex-direction: column;
  padding-block: var(--pad-y);
}
.hero-copy { margin-block: auto; }
.hero-text::after,
.hero-grid::after {
  flex: 9999 1 0px;
  max-height: var(--header-h);
}
.hero-text::after { content: ""; }

.hero-visual {
  display: flex;
  justify-content: center;
  padding-block: 4.5rem var(--sec-pad);
}

.hero h1 {
  font-size: clamp(min(2.5rem, 9.6vw, calc(10 * var(--svh))), min(4.7vw, calc(9 * var(--svh))), 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.lead {
  margin-top: clamp(1rem, calc(3.2 * var(--svh)), 1.75rem);
  max-width: 33.75rem;
  font-size: clamp(1rem, calc(3 * var(--svh)), 1.25rem);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
.hero-actions {
  margin-top: clamp(1.25rem, calc(4.6 * var(--svh)), 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.75rem;
}
@media (max-width: 23.4375rem) {
  .hero-actions { column-gap: 1rem; }
  .hero-actions .btn-solid { padding: 0 1.125rem; font-size: 1rem; }
  .hero-actions .link-arrow { font-size: 1rem; }
}
/* Телефон боком и другие широкие низкие окна: абзац шире, чтобы уложиться в две строки. */
@media (min-width: 48rem) and (max-height: 33.99rem) {
  .lead { max-width: 48rem; }
}

@media (min-width: 37.5rem) and (max-width: 63.99rem) and (min-height: 63rem) {
  .hero { --halo-up: 2.25em; }
  .hero-grid {
    min-height: calc(100 * var(--svh) - var(--header-h));
    display: flex;
    flex-direction: column;
    padding-block: var(--pad-y);
  }
  .hero-grid::after { content: ""; }
  .hero-cols { margin-block: auto; }
  .hero-text { min-height: 0; display: block; padding-block: 0; }
  .hero-text::after { content: none; }
  .hero-copy { margin-block: 0; }
  .hero-visual { padding-block: 3.5rem 0; }
}

@media (min-width: 64rem) and (min-height: 34rem) {
  /* В низком окне карточка уменьшается целиком, чтобы поместиться рядом с текстом. */
  .hero { --feed-size: clamp(0.8125rem, calc(2.6 * var(--svh)), 1rem); }
  .hero-grid {
    min-height: calc(100 * var(--svh) - var(--header-h));
    display: flex;
    flex-direction: column;
    padding-block: var(--pad-y);
  }
  .hero-grid::after { content: ""; }
  .hero-cols {
    margin-block: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, calc(29.375 * var(--feed-size)));
    column-gap: clamp(2rem, 4.5vw, 4rem);
    align-items: center;
  }
  .hero-text { min-height: 0; display: block; padding-block: 0; }
  .hero-text::after { content: none; }
  .hero-copy { margin-block: 0; }
  .hero-visual { padding-block: 0; }
}

/* Карточка с лентой операций — рисунок в цветах страницы, не кадр продукта.
   Все размеры в em от .feed-wrap: меняется его кегль — меняется вся карточка. */

.feed-wrap {
  position: relative;
  width: 100%;
  max-width: 29.375em;
  font-size: var(--feed-size);
}
.halo {
  position: absolute;
  right: calc(-1 * min(3.5em, var(--gutter)));
  top: calc(-1 * var(--halo-up));
  width: 21.25em;
  height: 21.25em;
  border-radius: 0 100% 0 0;
  background: var(--halo);
}
.feed {
  position: relative;
  font-size: 1.0625em;
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: 1.647em;
  padding: 1.294em 1.176em 1.176em;
  box-shadow: 0 1.882em 3.765em -2.118em rgba(20, 31, 58, 0.35), 0 0.118em 0.353em rgba(20, 31, 58, 0.04);
  cursor: default;
}
.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.941em;
  padding: 0.235em 0.353em 0.706em;
}
.feed-day { font-weight: 600; font-size: 1.059em; letter-spacing: -0.01em; }
.feed-acc { font-size: 0.824em; color: var(--text-3); }
.feed-row {
  display: flex;
  align-items: center;
  gap: 0.824em;
  padding: 0.706em 0.353em;
}
.tile {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8125rem;
  background: var(--tile);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feed .tile { width: 2.588em; height: 2.588em; border-radius: 0.765em; }
.feed .ico-row { width: 1.294em; height: 1.294em; }
.feed-what { flex: 1; min-width: 0; }
.feed-name { display: block; font-weight: 600; }
.feed-note { display: block; font-size: 0.824em; color: var(--text-3); }
.feed-sum { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.offer {
  margin: 0.118em 0 0.588em 3.412em;
  background: var(--offer);
  border-radius: 1.059em;
  padding: 0.824em 0.824em 0.824em 1.059em;
  display: flex;
  align-items: center;
  gap: 0.706em;
}
.offer-note { display: block; font-size: 0.824em; color: var(--on-tint); }
.add {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.125rem;
  border-radius: 0.6875rem;
  background: var(--accent);
  color: var(--accent-on);
  font-weight: 600;
  font-size: 0.9375rem;
}
.feed .add { font-size: 0.882em; min-height: 2.933em; padding: 0 1.2em; border-radius: 0.733em; }
@media (max-width: 27.5rem) {
  .offer { margin-left: 0; }
}

/* ---------- Разделы ---------- */

.band { background: var(--band); }
.sec { padding-block: var(--sec-pad); }

.sec-title {
  text-align: center;
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  text-wrap: balance;
}
.sec-sub {
  margin: 1rem auto 0;
  max-width: 38.75rem;
  text-align: center;
  font-size: 1.1875rem;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Как это работает */

.steps {
  margin-top: clamp(2.25rem, 5vw, 3.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
.step {
  background: var(--card);
  border-radius: 1.375rem;
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.625rem;
}
.step-pic { min-height: 4.75rem; display: flex; align-items: center; }
.step h3 { font-size: 1.4375rem; letter-spacing: -0.015em; font-weight: 600; }
.step p { margin-top: 0.625rem; color: var(--text-2); }
@media (min-width: 40rem) and (max-width: 59.99rem) {
  .step { flex-direction: row; align-items: center; padding: 1.75rem; gap: 2rem; }
  .step-pic { flex: 0 0 min(20rem, 46%); }
  .step > div:last-child { flex: 1; min-width: 0; }
}
@media (min-width: 60rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.chip {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
}
.chip-signal { padding: 0.75rem 0.875rem; border: 1px solid var(--line-card); }
.chip-offer { padding: 0.75rem 0.75rem 0.75rem 1rem; background: var(--offer); }
.chip-done { padding: 0.875rem 1rem; background: var(--ink); color: var(--on-ink); }
.tile-s { width: 2.375rem; height: 2.375rem; border-radius: 0.6875rem; }
.chip-what { flex: 1; min-width: 0; }
.chip-name { display: block; font-weight: 600; font-size: 0.96875rem; }
.chip-note { display: block; font-size: 0.84375rem; color: var(--text-3); }
.chip-offer .chip-note { color: var(--on-tint); }
.chip-done .chip-note { color: var(--foot-text); }
.chip-sum { font-weight: 600; font-size: 0.96875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.add-s { padding: 0 1rem; }
.done-mark {
  flex: none;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: var(--on-ink);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Каталог */

.sec-services { padding-bottom: calc(var(--sec-pad) - 1.5rem); }
.catalogue {
  margin-top: clamp(2.25rem, 5vw, 3.75rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  column-gap: 3.5rem;
}
.catalogue li { border-top: 1px solid var(--line-strong); padding: 1.625rem 0 2.25rem; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.cat-head h3 { font-size: 1.375rem; letter-spacing: -0.015em; font-weight: 600; }
.tag { flex: none; font-size: 0.875rem; font-weight: 600; color: var(--text-3); }
.tag-now { color: var(--accent-text); }
.catalogue p { margin-top: 0.625rem; max-width: 20.625rem; color: var(--text-2); }

/* Финтехам и поставщикам */

.sec-audiences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(26.25rem, 100%), 1fr));
  gap: 1.5rem;
}
.aud {
  background: var(--card);
  border-radius: 1.5rem;
  padding: clamp(1.75rem, 3.4vw, 3rem);
  display: flex;
  flex-direction: column;
}
.aud h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.aud-sub { margin-top: 0.875rem; font-size: 1.1875rem; color: var(--text-2); }
.points { margin: 1.875rem 0 1.25rem; }
.points li { padding: 1.125rem 0; border-top: 1px solid var(--line-list); }
.points li:last-child { border-bottom: 1px solid var(--line-list); }
.aud-link { margin-top: auto; align-self: flex-start; }
.aud-link:hover, .contact-mail:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.0625em;
  text-underline-offset: 0.22em;
}

/* Компания */

.company-text {
  margin: 1.25rem auto 0;
  max-width: 45rem;
  text-align: center;
  font-size: 1.1875rem;
  color: var(--text-2);
  text-wrap: pretty;
}
.contacts {
  margin: 3.5rem auto 0;
  max-width: 57.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(21.25rem, 100%), 1fr));
  gap: 2rem 3rem;
  text-align: center;
}
.contact-label { font-size: 0.96875rem; color: var(--text-3); }
.contact-mail {
  display: inline-flex;
  align-items: center;
  min-height: max(2.75rem, 44px);
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Подвал ---------- */

.foot {
  background: var(--ink);
  color: var(--foot-text);
  font-size: 0.90625rem;
  line-height: 1.6;
}
.foot :focus-visible { outline-color: var(--on-ink); }
.foot-row {
  padding-top: 2.75rem;
  padding-bottom: max(3rem, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 3rem;
}
.foot-main { flex: 1 1 32.5rem; min-width: 0; }
.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--on-ink);
  font-weight: 600;
  font-size: 1.125rem;
}
.foot-brand .brand-mark { width: 1.375rem; height: 1.5rem; }
.foot .mark-keel { fill: var(--on-ink); }
.foot-main p { margin-top: 0.875rem; }
.foot-main .foot-note { margin-top: 0.5rem; max-width: 40rem; }
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0 1.75rem;
  margin-top: -0.5rem;
}
.foot-nav a { display: inline-flex; align-items: center; min-height: max(2.75rem, 44px); }
.foot-nav a:hover { color: var(--on-ink); }
