/* CheckMyFind — сайт-визитка. Образ из иконки приложения: этикетка, пластинка, ценник. */

@font-face {
  font-family: "Archivo Black";
  src: url("/assets/fonts/archivo-black.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans.woff") format("woff");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --label: #b4441f;        /* фон иконки — этикетка пластинки */
  --label-deep: #8f3415;
  --ink: #1f1a14;          /* пластинка, текст */
  --ink-soft: #5e5447;
  --sticker: #ffd66b;      /* ценник — единственный яркий акцент */
  --paper: #ffffff;
  --rule: #e6ddd0;
  --money: #2f6b5e;

  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --text: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* шкала: 16 → 20 → 25 → 31 → 39 → 49 → 61 (×1.25) */
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: clamp(2.441rem, 1.6rem + 3.6vw, 3.815rem);

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

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

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

body {
  margin: 0;
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-optical-sizing: auto;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--sticker);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: var(--gutter); top: -3rem;
  background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; border-radius: 6px;
}
.skip:focus { top: 0.75rem; }

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

/* ---------------------------------------------------------------- шапка */
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.25rem; padding-bottom: 1.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-size: var(--step-1); letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg { width: 2rem; height: 2rem; }
.masthead nav { display: flex; gap: 1.5rem; font-weight: 500; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- первый экран */
.hero { background: var(--label); color: var(--paper); overflow: hidden; }
.hero .masthead { color: var(--paper); }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
  padding-top: clamp(1.5rem, 5vw, 4rem); padding-bottom: clamp(3rem, 8vw, 6rem);
}

.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.025em;
  margin: 0 0 1.5rem; max-width: 13ch;
}
.hero .lede { font-size: var(--step-1); line-height: 1.5; max-width: 34ch; margin: 0 0 2.25rem; }

/* места для ссылок на сторы и QR — до публикации */
.get {
  display: grid; grid-template-columns: auto auto; gap: 1rem 1.25rem; align-items: center;
  justify-content: start;
}
.store {
  display: flex; flex-direction: column; gap: 0.1rem;
  min-width: 11rem; padding: 0.7rem 1.1rem;
  border: 2px solid var(--paper); border-radius: 12px; text-decoration: none;
}
.store strong { font-family: var(--display); font-weight: 400; font-size: var(--step-1); line-height: 1.2; }
.store span { font-size: 0.875rem; opacity: 0.85; }
.qr {
  grid-row: span 2; display: grid; place-items: center; text-align: center;
  width: 7.5rem; height: 7.5rem; padding: 0.75rem;
  border: 2px dashed rgba(255, 255, 255, 0.7); border-radius: 12px; font-size: 0.8125rem; line-height: 1.3;
}

/* пластинка с ценником */
.disc { position: relative; justify-self: end; width: min(100%, 34rem); aspect-ratio: 1; }
.disc .record { width: 100%; height: 100%; animation: settle 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.price-tag {
  position: absolute; right: -2%; bottom: 6%; width: 46%;
  transform: rotate(-12deg); transform-origin: 20% 50%;
  animation: tag 0.6s 1.1s cubic-bezier(.3, 1.4, .5, 1) both;
  filter: drop-shadow(0 10px 14px rgba(31, 26, 20, 0.35));
}
.price-tag text { font-family: var(--display); }

@keyframes settle { from { transform: rotate(-140deg); } to { transform: rotate(0); } }
@keyframes tag {
  from { transform: translateY(-40%) rotate(-30deg); opacity: 0; }
  to { transform: rotate(-12deg); opacity: 1; }
}

/* ---------------------------------------------------------------- разделы */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
section + section { border-top: 1px solid var(--rule); }

h1, h2, h3 { text-wrap: balance; }

h2 {
  font-family: var(--display); font-weight: 400;
  font-size: var(--step-4); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 1rem; max-width: 22ch;
}
.section-lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 46ch; margin: 0 0 3rem; }

/* как это работает — настоящая последовательность, поэтому с номерами */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem);
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1.25rem;
  font-family: var(--display); font-size: var(--step-1);
  background: var(--sticker); color: var(--ink); border-radius: 50%;
}
.steps h3 { font-size: var(--step-1); line-height: 1.3; margin: 0 0 0.5rem; }
.steps p { margin: 0; color: var(--ink-soft); max-width: 34ch; }

/* пример отчёта — как в приложении */
.report-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.report-copy ul { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }
.report-copy li { margin-bottom: 0.6rem; max-width: 44ch; }
.report-copy li strong { color: var(--ink); }

.report {
  background: #fbf7f0; border: 1px solid var(--rule); border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.report-title { font-weight: 700; font-size: var(--step-1); line-height: 1.3; margin: 0; }
.report-sub { margin: 0.25rem 0 1.5rem; color: var(--ink-soft); font-size: 0.9375rem; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.figures div { border-top: 3px solid var(--ink); padding-top: 0.6rem; }
.figures dt { font-size: 0.875rem; color: var(--ink-soft); }
.figures dd {
  margin: 0.15rem 0 0; font-family: var(--display); font-size: var(--step-2); line-height: 1.1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.sales { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.sales caption { text-align: left; font-weight: 700; margin-bottom: 0.5rem; }
.sales td { padding: 0.55rem 0; border-top: 1px solid var(--rule); }
.sales td:last-child { text-align: right; font-weight: 600; }
.sales td:first-child { color: var(--ink-soft); width: 5.5rem; white-space: nowrap; }
.sales td + td { padding-left: 0.75rem; }
.sales.listings { margin-top: 1.25rem; }
.sales.listings td:nth-child(2) { color: var(--ink-soft); }
.example-note { margin: 1rem 0 0; font-size: 0.8125rem; color: var(--ink-soft); }

/* фото */
.privacy-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: start; }
.privacy-note .days {
  font-family: var(--display); font-size: clamp(4.5rem, 10vw, 7.5rem); line-height: 0.9;
  color: var(--label); letter-spacing: -0.04em;
}
.privacy-note .days small { display: block; font-family: var(--text); font-weight: 700; font-size: var(--step-1); letter-spacing: 0; color: var(--ink); margin-top: 0.4rem; }
.privacy-note p { max-width: 52ch; color: var(--ink-soft); margin: 0 0 1rem; }

/* ---------------------------------------------------------------- подвал */
.footer { background: var(--ink); color: #e9e1d6; padding: 3rem 0 2.5rem; font-size: 0.9375rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer .brand { color: var(--paper); }
.footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.footer p { margin: 0.75rem 0 0; color: #b9ae9f; }

/* ---------------------------------------------------------------- страницы документов */
.page-head { background: var(--label); color: var(--paper); }
.page-head .masthead { color: var(--paper); }
.page-title { padding-top: 1.5rem; padding-bottom: 3rem; }
.page-title h1 {
  font-family: var(--display); font-weight: 400; font-size: var(--step-4);
  line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5rem;
}
.page-title p { margin: 0; opacity: 0.9; }

.doc { padding: clamp(2.5rem, 6vw, 4.5rem) 0 5rem; }
.doc .wrap > * { max-width: 42rem; }
.doc h2 { font-size: var(--step-2); margin: 2.75rem 0 0.75rem; max-width: none; }
.doc h3 { font-size: var(--step-1); margin: 1.75rem 0 0.5rem; }
.doc p, .doc li { color: #3b332b; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: 0.45rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.9375rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-top: 1px solid var(--rule); }
.doc th { font-weight: 700; }
.callout {
  border-left: 4px solid var(--sticker); background: #fffaf0; padding: 1rem 1.25rem; border-radius: 0 10px 10px 0;
  margin: 1.5rem 0;
}
.callout p { margin: 0; }

/* ---------------------------------------------------------------- адаптивность */
@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .disc { justify-self: center; width: min(85%, 24rem); order: -1; }
  .steps { grid-template-columns: 1fr; }
  .report-row, .privacy-note { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
  .get { grid-template-columns: 1fr; }
  .qr { display: none; }            /* QR на экране телефона не отсканировать */
  .figures { grid-template-columns: 1fr 1fr; }
  .masthead nav { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .disc .record, .price-tag { animation: none; }
}
