/* Ýakyn — сайт для скачивания. Всё своё: шрифт и картинки лежат рядом, наружу страница не ходит.
   Цвета и приёмы — из приложения: белый / чёрный / жёлтый, «дорожка» с узлом, жёлтое солнце — единственный круг. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/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; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --paper: #FFFFFF;
  --ink: #0B0B0B;
  --label: #5E5E5E;
  --soft: #F4F4F4;
  --line: #E4E4E4;
  --sun: #FFCA00;
  --tint: #FFF3BF;
  --ph: 132px;            /* высота булавки в первой сцене */
  --gut: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.5 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; }
h1, h2, h3, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* два языка в одной странице: показывается тот, что выбран */
html[data-l="tk"] .ru, html[data-l="ru"] .tk { display: none !important; }

.wrap { width: min(100% - 2 * var(--gut), 1120px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -80px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; z-index: 10; }
.skip:focus { top: 12px; }

/* ── верх ── */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; }
.top--bare { justify-content: flex-end; }
.home { display: block; padding: 4px; margin: -4px; }
.home img { height: 40px; width: auto; }
.lang { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--soft); }
.lang button { min-width: 48px; height: 40px; padding: 0 12px; border: 2px solid transparent; border-radius: 11px; background: none; color: var(--label); font: 800 14px/1 "Manrope", sans-serif; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--tint); border-color: var(--ink); color: var(--ink); }

/* ── первая сцена: дорога, булавка, солнце, имя ── */
.hero { padding-top: 14px; }
.stage { position: relative; height: calc(var(--ph) + 2px); }
.road { position: absolute; left: 8px; right: calc(var(--ph) * .3553); bottom: 0; height: 4px; border-radius: 2px; background: var(--ink); transform-origin: 0 50%; }
.node { position: absolute; left: 0; bottom: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--sun); border: 4px solid var(--ink); }
.mark { position: absolute; right: 0; bottom: 1px; height: var(--ph); width: calc(var(--ph) * .7107); }          /* рамка логотипа 774×1089 */
.mark .pin { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 100%; }
.mark .sun, .mark .ring { position: absolute; left: 36.30%; top: .21%; width: 43.54%; aspect-ratio: 1; }      /* круг: центр (449,5; 170,8), r 168,5 */
.mark .sun { height: auto; will-change: transform; }
.mark .ring { border-radius: 50%; border: 2px solid var(--sun); opacity: 0; pointer-events: none; }

.word { display: grid; margin-top: .2em; font-weight: 800; font-size: clamp(80px, 27vw, 196px); line-height: 1.16; letter-spacing: -.045em; }
.word > * { grid-area: 1 / 1; white-space: nowrap; }
.word .name { font-style: italic; margin-left: -.04em; }
.word .count { visibility: hidden; font-variant-numeric: tabular-nums; }
.word .count small { font-size: .34em; font-weight: 800; letter-spacing: 0; margin-left: .18em; }
/* до старта движения — пока скрипт не начал: без него всё сразу стоит на месте */
html.yk-anim .word .name { visibility: hidden; }
html.yk-anim .word .count { visibility: visible; }
html.yk-anim .mark .sun { opacity: 0; }
html.yk-anim .road { transform: scaleX(0); }

.lead { margin-top: 18px; max-width: 30em; font-size: 18px; line-height: 1.45; color: var(--label); }
.lead b { color: var(--ink); font-weight: 700; }

/* ── две карточки ── */
.apps { display: grid; gap: 14px; margin-top: 28px; }
.app { position: relative; display: flex; flex-direction: column; padding: 22px 20px 20px; border-radius: 28px; overflow: hidden; }
.app--rider { background: var(--sun); }
.app--driver { background: var(--soft); }
.app h2 { font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
.app p { margin-top: 8px; max-width: 21em; font-weight: 600; line-height: 1.4; }
.app--driver p { color: var(--label); }
.shot { position: relative; margin: 10px -8px 6px auto; width: min(100%, 400px); aspect-ratio: 600 / 340; }
.shot img { position: relative; width: 100%; height: 100%; }
.app--driver .shot::before { content: ""; position: absolute; right: 9%; top: 2%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); }
.get { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 18px 10px 20px; border-radius: 18px; background: var(--ink); color: #fff; text-decoration: none; margin-top: auto; }
.get b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.get span.kind { margin-left: auto; font-size: 13px; font-weight: 700; color: #BDBDBD; white-space: nowrap; }
.get svg { flex: none; width: 24px; height: 24px; }
.get:active { transform: translateY(1px); }
@media (hover: hover) { .get:hover { background: #2A2A2A; } }

/* ── три шага: тот же путь-«дорожка», что в приложении ── */
.how { margin-top: 64px; }
.h2 { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.steps { margin-top: 24px; display: grid; }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding-bottom: 26px; }
.step::before { content: ""; position: absolute; left: 22px; top: 48px; bottom: 0; width: 4px; background: var(--ink); }
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; border: 2px solid var(--ink); background: var(--tint); font-size: 20px; font-weight: 800; }
.step:last-child .num { background: var(--sun); }
.step h3 { padding-top: 10px; font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; }
.step p { grid-column: 2; margin-top: 6px; max-width: 34em; color: var(--label); }
.note { margin-top: 22px; padding: 14px 16px; border-radius: 16px; background: var(--soft); max-width: 44em; font-size: 15px; color: var(--label); }

/* ── что внутри: экраны ── */
.inside { margin-top: 64px; padding-block: 48px 52px; background: var(--soft); }
.reel { display: flex; gap: 14px; margin-top: 24px; padding: 0 var(--gut) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.reel::-webkit-scrollbar { display: none; }
.reel figure { flex: 0 0 236px; scroll-snap-align: center; }
.reel img { width: 100%; height: auto; aspect-ratio: 540 / 1200; border-radius: 26px; box-shadow: 0 18px 40px -18px rgba(11, 11, 11, .35); }
.reel figcaption { margin-top: 14px; font-size: 16px; font-weight: 700; line-height: 1.3; }

/* ── низ ── */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 28px 36px; color: var(--label); font-size: 15px; }
.foot img { height: 36px; width: auto; }
.foot .motto { color: var(--ink); font-weight: 700; }
.foot .year { margin-left: auto; }

/* ── «Скоро» и «Не найдено» ── */
.solo { min-height: calc(100svh - 68px); display: flex; flex-direction: column; justify-content: center; padding-block: 24px 56px; }
.solo .word { font-size: clamp(64px, 21vw, 168px); }
.solo .lead { margin-top: 10px; }
.back { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; min-height: 56px; margin-top: 26px; padding: 0 22px; border-radius: 16px; background: var(--sun); color: var(--ink); font-size: 17px; font-weight: 800; text-decoration: none; }
.back svg { width: 22px; height: 22px; }
.stage--mid .mark .sun { left: auto; top: auto; right: calc(100% + var(--ph) * .9); bottom: 3px; width: 21.77%; }   /* солнце ещё в пути */
.stage--lost .road { right: 46%; }
.stage--lost .gap { position: absolute; left: 58%; right: calc(var(--ph) * .3553); bottom: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); }

/* ── шире телефона ── */
@media (min-width: 720px) {
  :root { --ph: 200px; --gut: 32px; }
  .road { height: 6px; }
  .stage--mid .mark .sun { bottom: 5px; }
  .stage--lost .gap { height: 6px; }
  .node { width: 22px; height: 22px; bottom: -8px; border-width: 5px; }
  .hero { padding-top: 28px; }
  .lead { font-size: 21px; }
  .apps { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
  .app { padding: 32px 30px 30px; border-radius: 32px; }
  .app h2 { font-size: 38px; }
  .app p { font-size: 18px; }
  .shot { width: min(100%, 460px); margin-top: 18px; margin-bottom: 14px; }
  .how, .inside { margin-top: 96px; }
  .h2 { font-size: 46px; }
  .steps { grid-template-columns: repeat(3, 1fr); column-gap: 28px; margin-top: 36px; }
  .step { grid-template-columns: 1fr; padding-bottom: 0; }
  .step::before { left: 48px; right: -28px; top: 22px; bottom: auto; width: auto; height: 4px; }
  .step h3 { padding-top: 18px; font-size: 22px; }
  .step p { grid-column: 1; }
  .inside { padding-block: 72px 80px; }
  .reel { justify-content: center; gap: 36px; overflow: visible; }
  .reel figure { flex-basis: 270px; }
  .reel figcaption { font-size: 18px; }
}
@media (min-width: 1000px) {
  :root { --ph: 236px; }
  .lead { margin-top: 2px; }
  .reel { gap: 56px; }
  .reel figure { flex-basis: 300px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
