/* pirog.app — макет «Витрина» (S-0007, ADR-0001). Тёмная тема основная, светлая — по теме системы.
   Цвета приложений (.app--<slug>) дописывает scripts/build.mjs из content/apps.json. Без JavaScript. */

@font-face {
  font-family: 'Geologica';
  src: url('/fonts/Geologica-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Onest';
  src: url('/fonts/Onest-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --bg: #0f1012;
  --surface: #18191d;
  --surface-2: #1f2025;
  --line: #2b2c32;
  --ink: #f3f2ed;
  --ink-2: #b9b8b1;
  --ink-3: #908f89;
  --accent: #f0642e;
  --slice: #e8572a;
  --cta: #f3f2ed;
  --cta-ink: #0f1012;
  --band: #f3f2ed;
  --band-ink: #121214;
  --band-ink-2: #4a4a52;
  --live: #3dd68c;
  --review: #f2c14e;
  --beta: #7db8ff;
  --shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.85);
  --display: 'Geologica', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Onest', 'Helvetica Neue', Arial, sans-serif;
  --gutter: 64px;
  --section: 136px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f3ef;
    --surface: #ffffff;
    --surface-2: #f8f7f4;
    --line: #dddbd4;
    --ink: #121214;
    --ink-2: #4a4a52;
    --ink-3: #6b6b73;
    --accent: #b83f14;
    --slice: #e0521f;
    --cta: #121214;
    --cta-ink: #ffffff;
    --band: #121214;
    --band-ink: #f4f3ef;
    --band-ink-2: #c9c8c2;
    --live: #17683a;
    --review: #8a5a00;
    --beta: #1d55c4;
    --shadow: 0 28px 56px -26px rgba(18, 18, 20, 0.45);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: min(1312px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Шапка */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.header__in {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--ink);
}

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

.logo__svg {
  display: block;
  height: 32px;
  width: auto;
  overflow: visible;
}

/* Точка над i — плитка приложения: при загрузке опускается на место, при наведении приподнимается. */
.logo__tile {
  fill: var(--slice);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.logo:hover .logo__tile {
  transform: translateY(-16%);
}

.header .logo__tile {
  animation: tile-drop 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s backwards;
}

@keyframes tile-drop {
  from { transform: translateY(-80%); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.nav {
  display: flex;
  gap: 34px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  color: var(--ink-2);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: 28px;
  border: 1.5px solid transparent;
  background: var(--cta);
  color: var(--cta-ink);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  color: var(--cta-ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--cta) 60%, transparent);
}

.button--small {
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button--ghost:hover {
  color: var(--ink);
  border-color: var(--ink-3);
  box-shadow: none;
}

.button .icon {
  transition: transform 0.2s ease;
}

.button:hover .icon--right {
  transform: translateX(3px);
}

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

.hero {
  padding-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 660px);
  justify-content: space-between;
  gap: 32px;
  min-height: 740px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 40px;
}

.pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 17px;
  line-height: 1.3;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  flex-shrink: 0;
}

.hero h1 {
  font-size: 76px;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 580px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.note {
  font-size: 15px;
  color: var(--ink-3);
}

.note a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.fan {
  position: relative;
  height: 660px;
}

.fan__card {
  position: absolute;
  top: 0;
  width: 220px;
  aspect-ratio: 560 / 1214;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
  transform-origin: 50% 100%;
  background: var(--surface);
}

.fan__card--1 { left: 40px; top: 104px; transform: rotate(-9deg); animation: deal-1 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
.fan__card--2 { left: 130px; top: 62px; transform: rotate(-4.5deg); z-index: 2; animation: deal-2 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
.fan__card--3 { left: 220px; top: 32px; z-index: 3; animation: deal-3 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both; }
.fan__card--4 { left: 310px; top: 62px; transform: rotate(4.5deg); z-index: 2; animation: deal-4 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
.fan__card--5 { left: 400px; top: 104px; transform: rotate(9deg); animation: deal-5 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }

@keyframes deal-1 { from { transform: translateX(180px) rotate(0deg); opacity: 0; } to { transform: rotate(-9deg); opacity: 1; } }
@keyframes deal-2 { from { transform: translateX(90px) rotate(0deg); opacity: 0; } to { transform: rotate(-4.5deg); opacity: 1; } }
@keyframes deal-3 { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes deal-4 { from { transform: translateX(-90px) rotate(0deg); opacity: 0; } to { transform: rotate(4.5deg); opacity: 1; } }
@keyframes deal-5 { from { transform: translateX(-180px) rotate(0deg); opacity: 0; } to { transform: rotate(9deg); opacity: 1; } }

/* Сильные стороны */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  padding: 30px 24px 30px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact + .fact {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.fact strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.fact span {
  font-size: 15px;
  color: var(--ink-2);
}

/* Секции */

.section {
  padding-top: var(--section);
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 56px;
}

.section__head h2 {
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 820px;
}

.section__head p {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 440px;
}

/* Приложения */

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 32px 0;
  border-radius: 32px;
  background: var(--app-bg);
  color: var(--app-text);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--app-text) 8%, transparent);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.app:hover {
  transform: translateY(-4px);
}

.app__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.app__icon {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px color-mix(in srgb, var(--app-text) 10%, transparent);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--app-text) 9%, transparent);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.status--live { color: var(--live); }
.status--review { color: var(--review); }
.status--beta { color: var(--beta); }
.status--live .dot { background: var(--live); }
.status--review .dot { background: var(--review); }
.status--beta .dot { background: var(--beta); }

.app__name {
  font-size: 30px;
  letter-spacing: -0.03em;
}

.app__kind {
  margin-top: -8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--app-ink);
}

.app__text {
  font-size: 17px;
  line-height: 1.5;
  color: var(--app-text-2);
}

.app__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--app-text-2);
}

.app__meta span {
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  background: color-mix(in srgb, var(--app-text) 8%, transparent);
}

.app__link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--app-text);
}

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

.app__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
}

/* Скриншот выглядывает из карточки: пропорции свои, низ обрезан. Без align-items: flex-start flex растягивает
   картинку на высоту контейнера — скриншот сжимается вдвое. */
.app__shot {
  margin-top: auto;
  height: 250px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.app__shot img {
  width: 236px;
  height: auto;
  aspect-ratio: 560 / 1214;
  flex-shrink: 0;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -8px 30px -14px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.app:hover .app__shot img {
  transform: translateY(-10px);
}

/* Услуги */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 48px;
}

.service {
  border-top: 1.5px solid var(--ink);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  color: var(--accent);
}

.service h3 {
  font-size: 26px;
  letter-spacing: -0.02em;
}

.service p,
.step p {
  font-size: 17px;
  color: var(--ink-2);
}

/* Окупаемость */

.band {
  margin-top: var(--section);
  background: var(--band);
  color: var(--band-ink);
}

.band__in {
  padding: 96px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  column-gap: 80px;
  align-items: center;
}

.band h2 {
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.band__side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.band__side p {
  color: var(--band-ink-2);
}

.formula {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 40px;
  letter-spacing: -0.02em;
}

.formula sub {
  font-size: 18px;
  vertical-align: baseline;
  color: var(--band-ink-2);
  margin-left: 4px;
}

.formula .eq {
  color: var(--slice);
}

.band__legend {
  font-size: 14px;
}

/* Как проходит проект */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 24px;
  counter-reset: step;
}

.step {
  border-top: 1.5px solid var(--ink);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.step p {
  font-size: 16px;
}

/* Форматы работы */

.offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.offer {
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offer--main {
  background: var(--band);
  color: var(--band-ink);
  border-color: var(--band);
}

.offer__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.offer--main .offer__label {
  color: var(--band-ink-2);
}

.badge {
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: var(--slice);
  color: #121214;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  display: inline-flex;
  align-items: center;
}

.offer h3 {
  font-size: 30px;
  letter-spacing: -0.025em;
}

.offer > p {
  color: var(--ink-2);
}

.offer--main > p {
  color: var(--band-ink-2);
}

.checks {
  margin: 8px 0 0;
  padding: 18px 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.offer--main .checks {
  border-color: color-mix(in srgb, var(--band-ink) 18%, transparent);
}

.checks li {
  display: flex;
  gap: 10px;
}

.checks .icon {
  width: 20px;
  height: 20px;
  stroke: var(--live);
  stroke-width: 2.2;
  margin-top: 1px;
}

.offer--main .checks .icon {
  stroke: var(--slice);
}

.offer .button {
  margin-top: auto;
  height: 52px;
}

.offer .button--ghost {
  border-color: var(--ink-3);
}

.offer--main .button {
  background: var(--slice);
  color: #121214;
}

.offers__note {
  margin-top: 24px;
  font-size: 15px;
  color: var(--ink-3);
}

/* Вопросы */

.faq {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  column-gap: 64px;
}

.faq h2 {
  font-size: 56px;
  letter-spacing: -0.035em;
}

.faq__side p {
  margin-top: 16px;
  color: var(--ink-2);
}

.faq__list {
  border-top: 1px solid var(--line);
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary .icon {
  width: 22px;
  height: 22px;
  transition: transform 0.25s ease;
}

.qa[open] summary .icon {
  transform: rotate(45deg);
}

.qa p {
  padding: 0 0 24px;
  max-width: 720px;
  color: var(--ink-2);
}

/* Заявка */

.contact {
  margin-top: var(--section);
  border-radius: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  column-gap: 64px;
}

.contact__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact h2 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.contact__text p {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 480px;
}

.mail {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 600;
}

.mail .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label,
.field legend {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-3);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}

fieldset.field {
  margin: 0;
  border: 0;
  padding: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  border: 1.5px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.chip input:checked + span {
  background: var(--cta);
  color: var(--cta-ink);
  border-color: var(--cta);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__legal {
  font-size: 13px;
  color: var(--ink-3);
}

.form__legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Подвал */

.footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
}

.footer__in {
  padding: 40px 0 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink-2);
  font-size: 15px;
}

.footer__cols {
  display: flex;
  gap: 64px;
  font-size: 15px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col strong {
  font-weight: 600;
}

.footer__col a {
  color: var(--ink-2);
}

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

.footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-3);
}

.footer__meta a:first-child {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

/* Простые страницы: политика, спасибо, ошибка, 404 */

.page {
  padding: 96px 0 40px;
  max-width: 760px;
}

.page h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.page .lead {
  margin-top: 20px;
}

.page .actions {
  margin-top: 36px;
}

.prose h2 {
  margin: 44px 0 12px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose p + p {
  margin-top: 12px;
}

.prose ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose .updated {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-3);
}

/* 404: потерявшаяся плитка (ADR-0006) — парит и моргает, без отскока */

.lost {
  padding: 56px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.lost h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lost .lead {
  max-width: 520px;
}

.lost .actions {
  margin-top: 18px;
  justify-content: center;
}

.lost__code {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.char {
  width: 240px;
  height: 240px;
  overflow: visible;
}

.char__body {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: char-float 4.6s ease-in-out infinite;
}

.char__eyes {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: char-blink 5.2s ease-in-out infinite;
}

.char__shadow {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: char-shadow 4.6s ease-in-out infinite;
}

@media (prefers-color-scheme: dark) {
  .char__shadow {
    opacity: 0.55;
  }
}

@keyframes char-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5%) rotate(-3deg); }
}

@keyframes char-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.12); }
}

@keyframes char-shadow {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.82); }
}

/* Появление секций при прокрутке — только где браузер умеет scroll-driven animations */

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }

  @keyframes reveal {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
  }
}

/* Планшет */

@media (max-width: 1180px) {
  :root {
    --gutter: 40px;
    --section: 112px;
  }

  .nav {
    gap: 24px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 16px;
  }

  .hero__text {
    padding-top: 16px;
    max-width: 720px;
  }

  .fan {
    height: 620px;
    width: 660px;
    margin-inline: auto;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .fact:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

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

  .band__in {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .offers {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
  }

  .faq {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }

  .contact {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
    padding: 48px;
  }
}

/* Телефон */

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
    --section: 80px;
  }

  body {
    font-size: 17px;
  }

  html {
    scroll-padding-top: 72px;
  }

  .header__in {
    height: 64px;
  }

  .logo__svg {
    height: 28px;
  }

  .nav {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 1;
  }

  .lead {
    font-size: 17px;
  }

  .actions .button {
    flex: 1 1 100%;
  }

  .fan {
    width: auto;
    height: auto;
    margin: 12px calc(-1 * var(--gutter)) 0;
    padding: 12px var(--gutter) 24px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .fan::-webkit-scrollbar {
    display: none;
  }

  .fan__card {
    position: static;
    width: 180px;
    flex-shrink: 0;
    transform: none;
    animation: none;
    border-radius: 24px;
    scroll-snap-align: start;
  }

  .facts {
    border: 0;
    gap: 10px;
  }

  .fact,
  .fact + .fact,
  .fact:nth-child(3),
  .fact:nth-child(4) {
    padding: 16px;
    border: 0;
    border-radius: 18px;
    background: var(--surface);
  }

  .fact strong {
    font-size: 19px;
  }

  .fact span {
    font-size: 14px;
    line-height: 1.4;
  }

  .section__head {
    margin-bottom: 32px;
  }

  .section__head h2,
  .faq h2 {
    font-size: 34px;
    line-height: 1.05;
  }

  .section__head p {
    font-size: 17px;
  }

  .apps {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .app {
    padding: 24px 22px 0;
    border-radius: 26px;
  }

  .app__icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .app__name {
    font-size: 26px;
  }

  .app__shot {
    height: 200px;
  }

  .app__shot img {
    width: 210px;
  }

  .services {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }

  .service h3 {
    font-size: 22px;
  }

  .band__in {
    padding: 64px 0;
  }

  .band h2 {
    font-size: 34px;
  }

  .formula {
    font-size: 32px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .offer {
    padding: 28px 24px;
  }

  .offer h3 {
    font-size: 26px;
  }

  .qa summary {
    font-size: 18px;
    padding: 18px 0;
  }

  .contact {
    margin-inline: calc(-1 * var(--gutter) + 8px);
    padding: 32px 20px;
    border-radius: 28px;
  }

  .contact h2 {
    font-size: 40px;
  }

  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__in {
    flex-direction: column;
    gap: 32px;
  }

  .footer__cols {
    gap: 48px;
  }

  .footer__meta {
    align-items: flex-start;
  }

  .page {
    padding-top: 56px;
  }

  .page h1,
  .lost h1 {
    font-size: 40px;
  }

  .char {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 38px;
  }

  .chip span {
    padding: 0 12px;
    font-size: 14px;
  }

  .contact h2 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Цвета приложений — из content/apps.json */
.app--receiptwise{--app-bg:#1D1A38;--app-ink:#B3A8FF;--app-text:#f3f2ed;--app-text-2:#c4c3bd;--live:#3dd68c;--review:#f2c14e;--beta:#7db8ff}
.app--pillkit{--app-bg:#15213A;--app-ink:#8EB4FF;--app-text:#f3f2ed;--app-text-2:#c4c3bd;--live:#3dd68c;--review:#f2c14e;--beta:#7db8ff}
.app--plantcare{--app-bg:#13271B;--app-ink:#7ED9A2;--app-text:#f3f2ed;--app-text-2:#c4c3bd;--live:#3dd68c;--review:#f2c14e;--beta:#7db8ff}
.app--gymexe{--app-bg:#10201A;--app-ink:#4ADE8B;--app-text:#f3f2ed;--app-text-2:#c4c3bd;--live:#3dd68c;--review:#f2c14e;--beta:#7db8ff}
.app--revancha{--app-bg:#141B2C;--app-ink:#F5B82E;--app-text:#f3f2ed;--app-text-2:#c4c3bd;--live:#3dd68c;--review:#f2c14e;--beta:#7db8ff}
@media (prefers-color-scheme: light){
.app--receiptwise{--app-bg:#ECE9FB;--app-ink:#4636B8;--app-text:#121214;--app-text-2:#3d3d45;--live:#17683a;--review:#8a5a00;--beta:#1d55c4}
.app--pillkit{--app-bg:#E6EEFD;--app-ink:#1D55C4;--app-text:#121214;--app-text-2:#3d3d45;--live:#17683a;--review:#8a5a00;--beta:#1d55c4}
.app--plantcare{--app-bg:#E5F3EA;--app-ink:#17643F;--app-text:#121214;--app-text-2:#3d3d45;--live:#17683a;--review:#8a5a00;--beta:#1d55c4}
.app--gymexe{--app-bg:#0E1116;--app-ink:#4ADE8B;--app-text:#f3f2ed;--app-text-2:#c4c3bd;--live:#3dd68c;--review:#f2c14e;--beta:#7db8ff}
.app--revancha{--app-bg:#0B0E14;--app-ink:#F5B82E;--app-text:#f3f2ed;--app-text-2:#c4c3bd;--live:#3dd68c;--review:#f2c14e;--beta:#7db8ff}
}
