/* Agriva - главная, версия 7 (01.11.2026). Основа - бриф Анастасии от 31.10, решения Анны (задача №28).
   Отчёт сборки: docs/product/v7-ОТЧЁТ.md.
   Светлый фон, тёмный текст, один акцент (тёмно-зелёный), шрифт Inter из tokens.css.
   Цвета только из assets/tokens.css через var(--…); прозрачность - color-mix(… transparent).
   Всё видно без JavaScript и без анимации: ничего не прячется до прокрутки. */

:root {
  --hd: 72px;                              /* высота шапки */
  --gutter: clamp(16px, 4vw, 40px);        /* поля по бокам: 16px на телефоне */
  --sec-y: clamp(64px, 8vw, 116px);        /* воздух блока сверху и снизу */
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: var(--ivory-2);
  --muted: color-mix(in srgb, var(--ink) 72%, transparent);
  --soft: color-mix(in srgb, var(--ink) 66%, transparent);    /* мелкий текст: контраст не ниже 4.9:1 на всех фонах */
  --hair: color-mix(in srgb, var(--ink) 12%, transparent);
  --accent: var(--forest);
  --accent-2: var(--forest-2);
  --ok: var(--leaf);
  --warn: var(--orange);
  --warn-ink: color-mix(in srgb, var(--orange) 45%, var(--ink));
  --warn-bg: color-mix(in srgb, var(--orange) 14%, var(--white));
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hd) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

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

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus { transform: none; }

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

/* ───────── Текст ───────── */

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2 {
  color: var(--ink);
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  letter-spacing: -.035em;
  line-height: 1.03;
}

h2 {
  font-size: clamp(30px, 3.8vw, 50px);
  letter-spacing: -.03em;
  line-height: 1.08;
}

h3 {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.lead {
  max-width: 680px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ───────── Кнопки ───────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover { background: var(--accent-2); }
.btn--primary:active { transform: translateY(1px); }

.btn--sm {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 15px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  background: color-mix(in srgb, var(--accent) 78%, var(--white));
  cursor: progress;
  transform: none;
}

/* ───────── Шапка ───────── */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--page) 92%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition: border-color .2s var(--ease);
}

.hdr.is-scrolled { border-bottom-color: var(--hair); }

.hdr__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--hd);
}

.hdr__brand { flex: none; margin-right: auto; }
.hdr__brand img { width: 118px; height: auto; }

.hdr__nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  flex-direction: column;
  padding: 8px var(--gutter) 20px;
  border-bottom: 1px solid var(--hair);
  background: var(--page);
  box-shadow: var(--shadow-sm);
}

.menu-open .hdr__nav { display: flex; }

.hdr__nav a {
  padding: 14px 2px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  text-decoration: none;
}

.hdr__nav a:last-child { border-bottom: 0; }
.hdr__nav a:hover { color: var(--accent-2); }
.hdr__nav .hdr__nav-cta { color: var(--accent-2); }

.hdr__cta { flex: none; }

.hdr__toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.hdr__toggle span,
.hdr__toggle span::before,
.hdr__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.hdr__toggle span { position: relative; }

.hdr__toggle span::before,
.hdr__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.hdr__toggle span::before { top: -6px; }
.hdr__toggle span::after { top: 6px; }
.menu-open .hdr__toggle span { background: transparent; }
.menu-open .hdr__toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .hdr__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 900px) {
  .hdr__brand img { width: 140px; }
  .hdr__nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 6px;
    margin-right: 10px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .hdr__nav a {
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    font-size: 15px;
  }
  .hdr__nav a:hover { color: var(--ink); background: var(--hair); }
  .hdr__nav .hdr__nav-cta { display: none; }
  .hdr__toggle { display: none; }
}

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

.hero { padding: clamp(36px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); }

.hero__grid {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}

.hero__copy { max-width: 640px; }

.hero__lead {
  max-width: 560px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.58;
  text-wrap: pretty;
}

.hero__action { margin-top: 34px; }

.hero__hint {
  margin-top: 14px;
  color: var(--soft);
  font-size: 15px;
}

@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

/* ───────── Экран продукта (иллюстрация) ───────── */

.shot { position: relative; }

.shot__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.app {
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.app__bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hair);
  background: var(--ivory);
}

.app__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
}

.app__body {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 28px);
}

.app__kicker,
.app__label {
  color: var(--soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.app__title {
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.app__group {
  padding-top: 16px;
  border-top: 1px solid var(--hair);
}

.app__label { margin-bottom: 10px; }

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

.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

.meter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.meter i {
  height: 8px;
  border-radius: 999px;
  background: var(--hair);
}

.meter i.is-on { background: var(--ok); }
.meter i.is-warn { background: var(--warn); }

.meter--sm {
  grid-template-columns: repeat(2, 28px);
  gap: 4px;
  margin: 0;
}

.meter--sm i { height: 6px; }

.app__line {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

.app__line--doc {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 550;
}

.app__line--doc svg { flex: none; width: 18px; height: 18px; color: var(--ok); }

.app__next {
  padding: 14px 16px;
  border-left: 4px solid var(--warn);
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
}

.app__label--warn { margin-bottom: 6px; color: var(--warn-ink); }

.app__next-text {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

/* ───────── Блоки ───────── */

.sec { padding-block: var(--sec-y); }
.sec--plain { background: var(--page); }
.sec--tint { background: var(--ivory); }

.sec__head {
  max-width: 760px;
  margin-bottom: clamp(36px, 4.4vw, 56px);
}

/* Проблема: заголовок и три короткие строки */

.problem {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
}

.issues {
  display: grid;
  gap: 12px;
  align-content: start;
}

.issue {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.issue svg { flex: none; width: 30px; height: 30px; color: var(--accent-2); }

@media (min-width: 1000px) {
  .problem { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
}

/* Как работает: три шага на линии */

.steps {
  display: grid;
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 64px;
}

.step__num {
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50px;
  bottom: -26px;
  left: 21px;
  width: 2px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

.step h3 { margin-bottom: 8px; }

.step p {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.55;
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .step { padding: 64px 0 0; }
  .step:not(:last-child)::before {
    top: 21px;
    right: -32px;
    bottom: auto;
    left: 56px;
    width: auto;
    height: 2px;
  }
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 760px;
  margin-top: clamp(32px, 4vw, 48px);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--white) 70%, transparent);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--accent-2); }

/* Продукт: один сквозной пример */

.flow__list {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid var(--hair);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.flow__step {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--ivory-2);
}

.flow__step--next {
  border: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: var(--white);
}

.flow__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
}

.flow__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.flow__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.flow__text--strong { color: var(--ink); font-weight: 700; }

.bubble {
  padding: 12px 14px;
  border: 1px solid var(--hair);
  border-radius: 4px 14px 14px 14px;
  background: var(--white);
}

.bubble__from {
  margin-bottom: 4px;
  color: var(--soft);
  font-size: 12.5px;
  font-weight: 750;
}

.bubble__text { font-size: 15px; line-height: 1.45; }

.pill {
  justify-self: start;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--sky);
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.35;
}

.split { display: grid; gap: 8px; }

.split__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
}

.split__val { color: var(--muted); font-variant-numeric: tabular-nums; }
.split__row--warn .split__val { color: var(--warn-ink); font-weight: 750; }

.harvey {
  display: flex;
  align-items: center;
  gap: 12px;
}

.harvey img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.harvey__name { font-size: 15.5px; font-weight: 750; line-height: 1.3; }

.harvey__role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.harvey__zone { margin-top: 2px; color: var(--soft); font-size: 13px; line-height: 1.35; }

.badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .02em;
}

@media (min-width: 760px) {
  .flow__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1180px) {
  .flow__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Команда */

.team__head { max-width: 820px; }

.founders {
  display: grid;
  gap: 20px;
  max-width: 780px;
}

.founder {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-md);
  background: var(--white);
}

.founder img {
  width: 112px;
  height: 140px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  object-position: 50% 20%;
}

.founder h3 { font-size: 20px; }

.founder__title {
  margin-top: 4px;
  color: var(--accent-2);
  font-size: 15px;
  font-weight: 700;
}

.founder__zone {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

@media (min-width: 760px) {
  .founders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder { grid-template-columns: 1fr; align-items: start; padding: 0 0 22px; overflow: hidden; }
  .founder img { width: 100%; height: auto; aspect-ratio: 4 / 4.2; border-radius: 0; }
  .founder__text { padding: 0 22px; }
}

/* Заявка на пилот */

.pilot__grid {
  display: grid;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.pilot__copy h2:focus { outline: none; }
.pilot__copy h2:focus-visible { outline: 3px solid var(--accent-2); }

@media (min-width: 1000px) {
  .pilot__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .pilot__copy { position: sticky; top: calc(var(--hd) + 32px); }
}

.pilot__panel {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--hair);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.form { display: grid; gap: 22px; }

.field { display: grid; gap: 8px; }

.field label {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.field__optional {
  margin-left: 6px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 550;
}

.field__hint {
  margin-top: -4px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.4;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 26%, transparent);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  line-height: 1.4;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}

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

.field input:hover,
.field textarea:hover { border-color: color-mix(in srgb, var(--ink) 42%, transparent); }

.field input:focus,
.field textarea:focus {
  border-color: var(--accent-2);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 28%, transparent);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger); }

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--danger);
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.4;
}

.field__error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--danger);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.field__error[hidden],
.form__alert[hidden] { display: none; }

.form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form__submit { justify-self: start; min-width: 200px; }

.form__alert {
  padding: 14px 16px;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--danger) 8%, var(--white));
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.5;
}

.form__alert a { color: var(--danger); font-weight: 700; }

.form__privacy {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.5;
}

.form__privacy a { color: var(--accent-2); font-weight: 650; }

.form__done {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.4;
}

.form__done[hidden] { display: none; }
.form__done:focus { outline: none; }
.form__done svg { flex: none; width: 36px; height: 36px; color: var(--success); }

@media (max-width: 520px) {
  .form__submit { justify-self: stretch; }
}

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

.ftr {
  padding: 48px 0 40px;
  border-top: 1px solid var(--hair);
  background: var(--page);
  color: var(--muted);
  font-size: 15px;
}

.ftr__grid {
  display: grid;
  gap: 24px;
}

.ftr__brand img { width: 120px; height: auto; }
.ftr__brand p { margin-top: 12px; max-width: 320px; line-height: 1.5; }

.ftr__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.ftr__links a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ink) 25%, transparent);
  text-underline-offset: 4px;
}

.ftr__links a:hover { text-decoration-color: currentColor; }

.ftr__copy { color: var(--soft); font-size: 14px; }

@media (min-width: 900px) {
  .ftr__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .ftr__links { justify-content: flex-end; }
  .ftr__copy { grid-column: 1 / -1; }
}

/* ───────── Страница документа (Privacy) ───────── */

.doc { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 4.6vw, 52px); }
.doc__date { margin-top: 12px; color: var(--soft); font-size: 15px; }

.doc h2 {
  margin-top: 40px;
  font-size: clamp(22px, 2.2vw, 26px);
  letter-spacing: -.015em;
}

.doc p,
.doc li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.doc > p { margin-top: 16px; }
.doc ul { display: grid; gap: 8px; margin-top: 12px; padding-left: 22px; list-style: disc; }
.doc a { color: var(--accent-2); font-weight: 650; }

.doc__back {
  color: var(--accent-2);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.doc__back:hover { text-decoration: underline; }

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