/* Мини-лендинг UPMARKET: фирменные цвета, шрифт и кнопки — как на upmarket.cc */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --blue: #3A3EFF;
  --blue-dark: #2B2FE0;
  --blue-soft: #F3F1FF;
  --ink: #000;
  --muted: rgba(0, 0, 0, .65);
  --paper: #F4F4F4;
  --line: rgba(0, 0, 0, .15);
  --white: #fff;
  --err: #D92D20;
  --radius: 28px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 500 16px/1.5 "Montserrat", Arial, sans-serif;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.logo { font-size: 24px; font-weight: 900; letter-spacing: -1.5px; line-height: 1; white-space: nowrap; }
.logo--sm { font-size: 20px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 16px 28px;
  border: 1px solid var(--blue); border-radius: 100px;
  background: var(--blue); color: var(--white);
  font-size: 15px; font-weight: 600; line-height: 1.3; text-align: center;
  cursor: pointer; transition: background .2s, transform .2s, opacity .2s;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn span[aria-hidden] { font-size: 20px; line-height: 1; }
.btn:disabled { opacity: .35; cursor: default; transform: none; background: var(--blue); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--paper); }
.btn--white { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn--white:hover { background: var(--blue-soft); }
.btn:focus-visible, .quiz__back:focus-visible, .quiz__close:focus-visible { outline: 3px solid rgba(58, 62, 255, .35); outline-offset: 3px; }

/* ---------- шапка ---------- */
.top { border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.top__note { color: var(--muted); font-size: 14px; margin-right: auto; }
@media (max-width: 719px) {
  .top__in { min-height: 60px; justify-content: space-between; }
  .top__note { display: none; }
  .top .btn--sm { min-height: 40px; padding: 8px 16px; font-size: 13px; }
}

/* ---------- первый экран ---------- */
.hero { padding: 40px 0 0; }
.hero__grid { display: grid; gap: 28px; }
.kicker {
  display: inline-block; margin-bottom: 18px; padding: 6px 14px;
  border-radius: 100px; background: var(--blue-soft); color: var(--blue);
  font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.hero h1 { font-size: 30px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.hero__lead { margin-top: 18px; color: var(--muted); font-size: 16px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.hero__cta .btn { width: 100%; }
.hero__hint { color: var(--muted); font-size: 14px; }
.mp { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.mp li {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 13px; font-weight: 600;
}
.hero__pic { margin: 0; border-radius: var(--radius); overflow: hidden; background: #1a1020; aspect-ratio: 3 / 2; }
.hero__pic img { width: 100%; height: 100%; object-fit: cover; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 28px; }
.fact {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 22px; border-radius: 20px; background: var(--paper);
}
.fact b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--blue); line-height: 1.15; }
.fact span { color: var(--muted); font-size: 13px; line-height: 1.4; }
@media (max-width: 719px) { .fact { padding: 16px; border-radius: 16px; } }

@media (min-width: 720px) {
  .hero__cta .btn { width: auto; }
  .facts { gap: 16px; }
  .fact span { font-size: 14px; }
}
/* в ряд: вторая колонка шире, чтобы «70 000 / 25 000» не переносилось */
@media (min-width: 1100px) { .facts { grid-template-columns: 1fr 1.35fr 1fr 1fr; } .fact b { white-space: nowrap; } }
@media (min-width: 960px) {
  .hero { padding-top: 64px; }
  .hero__grid { grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
  .hero h1 { font-size: 48px; }
  .hero__lead { font-size: 18px; max-width: 34em; }
  .fact { padding: 26px 28px; border-radius: var(--radius); }
  .fact b { font-size: 28px; }
  .facts { margin-top: 48px; }
}

/* ---------- что делаем ---------- */
.tasks { padding: 64px 0 0; }
.tasks h2, .cta h2 { font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.tasks__grid { display: grid; gap: 12px; margin-top: 28px; }
.task {
  padding: 24px 22px; border: 1px solid var(--line); border-radius: 20px;
}
.task svg {
  width: 40px; height: 40px; padding: 8px; margin-bottom: 16px; border-radius: 12px;
  background: var(--blue-soft); fill: none; stroke: var(--blue); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.task h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
@media (max-width: 719px) {
  /* на телефоне значок слева от заголовка — карточки вдвое ниже */
  .task { display: grid; grid-template-columns: 40px 1fr; gap: 0 14px; align-items: center; padding: 18px; }
  .task svg { margin: 0; }
  .task p { grid-column: 1 / -1; margin-top: 10px; }
}
.task p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (min-width: 720px) {
  .tasks__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 960px) {
  .tasks { padding-top: 96px; }
  .tasks h2, .cta h2 { font-size: 40px; }
  .tasks__grid { grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
  .task { padding: 28px; border-radius: var(--radius); }
}

/* ---------- о складе (about-us) ---------- */
.about { padding: 64px 0 0; }
.about h2 { font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.about__head { display: grid; gap: 24px; }
.about__lead { margin-top: 14px; color: var(--muted); }
.about__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.about__stats li { display: flex; flex-direction: column; gap: 2px; padding: 16px 14px; border-radius: 16px; background: var(--paper); }
.about__stats b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--blue); }
.about__stats span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.about__photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 24px; }
.about__photos li { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); }
.about__photos img { width: 100%; height: 100%; object-fit: cover; }
.about__notes { display: grid; gap: 8px; margin-top: 12px; }
.about__notes li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.about__notes b { display: block; color: var(--ink); font-size: 15px; font-weight: 700; }
.about__notes svg {
  flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--blue-soft);
  fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
@media (min-width: 720px) {
  .about__stats li { padding: 20px; border-radius: 20px; }
  .about__stats b { font-size: 28px; }
  .about__photos { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
  .about__photos li { border-radius: 20px; }
  .about__notes { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
  .about__notes li { border-radius: 20px; padding: 18px 20px; }
}
@media (min-width: 960px) {
  .about { padding-top: 96px; }
  .about h2 { font-size: 40px; }
  .about__head { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: end; }
  .about__lead { font-size: 17px; }
}

/* ---------- клиенты ---------- */
.clients { padding: 64px 0 0; }
.clients__title { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.clients__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.clients__row li {
  display: flex; align-items: center; justify-content: center;
  height: 76px; padding: 14px 18px; border-radius: 16px; background: var(--paper);
}
.clients__row img { max-height: 40px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; }
/* белые логотипы (на upmarket.cc стоят на тёмной плашке) — перекрашиваем в чёрный */
.clients__row .inv img { filter: brightness(0); opacity: .75; }
.clients__row .big img { max-height: 58px; }
@media (min-width: 720px) { .clients__row { grid-template-columns: repeat(4, 1fr); gap: 16px; } .clients__row li { height: 96px; border-radius: 20px; } }
@media (min-width: 960px) { .clients { padding-top: 96px; } }

/* ---------- финальный призыв: «Передайте часть объёма» как на upmarket.cc ---------- */
.cta { padding: 64px 0; }
.cta__box {
  display: grid; gap: 32px; padding: 32px 24px;
  border-radius: var(--radius); background: var(--blue); color: var(--white);
}
.cta__text p { margin-top: 14px; color: rgba(255, 255, 255, .85); }
.cta__text .btn { width: 100%; margin-top: 24px; }
.cta__mins { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta__mins div { display: flex; flex-direction: column; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.cta__mins small { font-size: 12px; font-weight: 600; letter-spacing: .04em; opacity: .85; }
.cta__mins b { margin-top: 8px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.cta__mins span { margin-top: 6px; font-size: 14px; opacity: .85; }
.cta__min p { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .85); }
@media (min-width: 720px) {
  .cta__box { padding: 48px; }
  .cta__text .btn { width: auto; }
}
@media (min-width: 960px) {
  .cta { padding: 96px 0; }
  .cta__box { grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; padding: 56px 64px; }
  .cta__mins b { font-size: 34px; }
}

/* ---------- подвал ---------- */
.foot { padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot__in { display: flex; flex-direction: column; gap: 10px; }
.foot .logo { color: var(--ink); }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot__links a { text-underline-offset: 3px; }
@media (min-width: 960px) { .foot__in { flex-direction: row; align-items: center; gap: 28px; } .foot__links { margin-left: auto; } }

/* =========================================================
   Квиз
   ========================================================= */
.quiz {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 30, .55);
}
.quiz[hidden] { display: none; }
.quiz__panel {
  display: flex; flex-direction: column;
  width: 100%; height: 100%; background: var(--white);
}
@media (min-width: 720px) {
  .quiz { padding: 24px; }
  .quiz__panel { max-width: 780px; height: auto; max-height: min(860px, 100%); border-radius: var(--radius); overflow: hidden; }
}

.quiz__head {
  display: flex; align-items: center; gap: 16px;
  padding: 14px var(--gutter); padding-top: max(14px, env(safe-area-inset-top));
}
@media (min-width: 720px) { .quiz__head { padding: 22px 32px 18px; } }
.quiz__step { margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 600; }
.quiz__close {
  width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%;
  background: var(--paper); font-size: 26px; line-height: 1; cursor: pointer;
}
.quiz__close:hover { background: #e9e9ee; }
.quiz__bar { height: 4px; margin: 0 var(--gutter); border-radius: 4px; background: var(--paper); overflow: hidden; }
@media (min-width: 720px) { .quiz__bar { margin: 0 32px; } }
.quiz__bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 4px; transition: width .3s; }

.quiz__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 24px var(--gutter) 24px; }
@media (min-width: 720px) { .quiz__body { padding: 28px 32px 28px; } }

.q__title { font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.q__hint { margin-top: 8px; color: var(--muted); font-size: 14px; }
.q__group + .q__group { margin-top: 26px; }
.q__sub { margin: 22px 0 0; font-size: 15px; font-weight: 700; }
.q__sub + .opts { margin-top: 10px; }
@media (min-width: 720px) { .q__title { font-size: 28px; } }

.opts { display: grid; gap: 8px; margin-top: 20px; }
.opts--compact { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .opts { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__box {
  display: flex; align-items: center; gap: 12px; min-height: 56px; height: 100%;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px;
  font-size: 15px; font-weight: 600; line-height: 1.3;
  transition: border-color .15s, background .15s;
}
.opt__box::before {
  content: ""; flex: none; width: 22px; height: 22px;
  border: 1.5px solid rgba(0, 0, 0, .3); border-radius: 6px; background: var(--white) center / 14px no-repeat;
}
.opt--radio .opt__box::before { border-radius: 50%; }
.opt:hover .opt__box { border-color: rgba(58, 62, 255, .5); }
.opt input:checked + .opt__box { border-color: var(--blue); background: var(--blue-soft); }
.opt input:checked + .opt__box::before {
  border-color: var(--blue); background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m3 7.2 2.6 2.6L11 4.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.opt input:focus-visible + .opt__box { outline: 3px solid rgba(58, 62, 255, .35); outline-offset: 2px; }
.opt--wide { grid-column: 1 / -1; }

.other { margin-top: 10px; }
.other[hidden] { display: none; }

/* поля финального шага */
.field { display: block; margin-top: 16px; }
.field__label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 10px; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field__label small { color: var(--muted); font-size: 13px; font-weight: 500; }
.input {
  width: 100%; min-height: 54px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  font-size: 16px; font-weight: 500; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(58, 62, 255, .15); }
.input.is-bad { border-color: var(--err); }
.field__err { display: none; margin-top: 6px; color: var(--err); font-size: 13px; }
.field.is-bad .field__err { display: block; }
.field.is-bad .input { border-color: var(--err); }
@media (min-width: 720px) { .fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } }

.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.roles .opt__box { min-height: 44px; padding: 10px 16px; border-radius: 100px; font-size: 14px; }
.roles .opt__box::before { display: none; }
.field.is-bad .roles .opt__box { border-color: var(--err); }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.consent a { color: var(--blue); text-underline-offset: 2px; }
.consent.is-bad { color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-err { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #FEF3F2; color: var(--err); font-size: 14px; }
.form-err[hidden] { display: none; }

.quiz__nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gutter); padding-bottom: max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--white);
}
@media (min-width: 720px) { .quiz__nav { padding: 18px 32px 24px; } }
.quiz__nav .btn { min-width: 168px; }
.quiz__back {
  min-height: 48px; padding: 8px 4px; border: 0; background: none;
  color: var(--muted); font-size: 15px; font-weight: 600; cursor: pointer;
}
.quiz__back:hover { color: var(--ink); }
.quiz__back[hidden] { visibility: hidden; display: block; }
.quiz__nav[hidden] { display: none; }
.q__title:focus { outline: none; }

/* экран «спасибо» */
.done { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; padding: 32px 8px; text-align: center; }
.done__icon { width: 72px; height: 72px; margin-bottom: 22px; border-radius: 50%; background: var(--blue-soft); display: grid; place-items: center; }
.done__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done p { max-width: 30em; margin-top: 12px; color: var(--muted); }
