/* meet.1opd.ru — цифровая визитка для знакомств на мероприятиях.
 *
 * Типографика. Handoff требовал Geist, «как на основном сайте». На 1opd.ru
 * Geist подключён с subsets: ["latin"] — кириллицы в нём нет, и русский текст
 * там набирается системным шрифтом. Страница целиком на русском, поэтому
 * «Geist» здесь означал бы разный шрифт на iOS и Android. Берём Inter из
 * public/fonts самого проекта: это production-файлы, лицензия SIL OFL лежит
 * рядом, сторонние CDN не подключаются.
 *
 * Фон — точное значение production-фона: oklch(0.986 0.0035 95) = #FBFAF8.
 * В handoff стояло #FAF9F6 с оговоркой «или точное значение».
 */

@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/inter-cyrillic-100900.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/inter-cyrillic-ext-100900.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/inter-latin-100900.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: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/inter-latin-ext-100900.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #FBFAF8;
  --ink: #1B1917;          /* тёплый почти-чёрный, как на сайте, не #000 */
  --muted: #56514C;        /* контраст к --bg ≈ 7:1 */
  --blue: #325AD3;
  --cyan: #00DBFF;
  --line: #E4E0DA;
  --focus: #0B3BC4;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  /* Нижний отступ учитывает safe-area: в эскизе последний шаг был обрезан. */
  padding: clamp(20px, 5vw, 28px) clamp(20px, 5.5vw, 24px)
           calc(40px + env(safe-area-inset-bottom, 0px));
}

/* ── Шапка ─────────────────────────────────────────────────────────── */
.logo { display: block; width: 74px; height: auto; }

.meet {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

/* ── Персона ───────────────────────────────────────────────────────── */
.who { margin-top: 6px; }

.name {
  margin: 0;
  font-size: clamp(28px, 8.2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.role {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--muted);
}

/* ── Продукт ───────────────────────────────────────────────────────── */
.what { margin-top: 22px; }

.claim {
  margin: 0;
  font-size: clamp(21px, 6vw, 25px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 650;
  text-wrap: balance;
}

/* Заметна, но не второй заголовок того же веса: меньше кегль, синий цвет. */
.tag {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
}

.lead   { margin: 10px 0 0; font-size: 16px; color: var(--ink); }
.split  { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* ── Кнопки ────────────────────────────────────────────────────────── */
.actions { margin-top: 20px; display: grid; gap: 10px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 13px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-secondary { background: transparent; color: var(--blue); border-color: #C3CEF0; }

.btn .ico { width: 22px; height: 22px; flex: none; }

/* ── Телефон и Telegram ────────────────────────────────────────────── */
.contacts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 2px; }

.contacts a {
  display: flex;
  align-items: center;
  gap: 12px;
  /* 44×44 — минимальная область нажатия */
  min-height: 44px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.contacts a span { text-decoration: underline; text-underline-offset: 3px; }
.contacts .ico { width: 20px; height: 20px; flex: none; }

/* ── Цепочка результатов ───────────────────────────────────────────── */
.flow { margin-top: 26px; }

.flow ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.flow li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

/* Линия связности — не декор, а показ того, что учёт непрерывен.
   Рисуем от центра узла к центру следующего, у последнего не рисуем. */
.flow li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 21px;
  top: calc(50% + 22px);
  height: calc(100% - 44px);
  width: 1.5px;
  background: #B9C6EE;
}

.node {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #B9C6EE;
  background: var(--bg);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
.node .ico { width: 21px; height: 21px; }

.step { font-size: 16px; font-weight: 500; }

/* ── Иконки: один набор, одна толщина линии ────────────────────────── */
.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.node .ico { stroke: var(--blue); }
.node .ico path[d^="m5.5"] { stroke: var(--cyan); stroke-width: 2.2; }

/* ── Состояния ─────────────────────────────────────────────────────── */
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 10px;
}

@media (hover: hover) {
  .btn-primary:hover { background: #2A4CB5; }
  .btn-secondary:hover { border-color: var(--blue); background: rgba(50, 90, 211, .05); }
  .contacts a:hover span { text-decoration-thickness: 2px; }
}

.btn-primary:active { background: #24409C; }
.btn-secondary:active { background: rgba(50, 90, 211, .09); }
.contacts a:active { opacity: .7; }

a:visited { color: inherit; }
.contacts a:visited { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Узкий экран: уменьшаем только персональные заголовки, основной текст —
   нет. Кнопки не превращаются в иконки, номер и Telegram не обрезаются. */
@media (max-width: 360px) {
  .page { padding-left: 16px; padding-right: 16px; }
  .btn { font-size: 16px; padding: 0 12px; }
}
