/* Velvet Vine — лендинг v1 */

@font-face {
  font-family: "Unbounded";
  src: url(fonts/unbounded-cyrillic.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url(fonts/unbounded-latin.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
  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: "Onest";
  src: url(fonts/onest-cyrillic.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url(fonts/onest-latin.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
  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;
}

:root {
  --white: #ffffff;
  --black: #000000;
  --pink: #d9346f;
  --pink-dark: #b8245a;
  --pink-soft: #fce8ef;
  --grey: #5c5c5c;
  --line: #e4e4e4;
  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Onest", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1160px;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 8px;
  background: var(--black);
  color: var(--white);
  padding: 8px 14px;
  z-index: 10;
}

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

/* ---------- Шапка и подвал ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pink);
  flex: none;
}
.header-link {
  font-size: 15px;
  color: var(--grey);
  text-decoration: none;
}
.header-link:hover { color: var(--black); text-decoration: underline; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  font-size: 14px;
  color: var(--grey);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--grey); }
.site-footer a:hover { color: var(--black); }

/* ---------- Типографика ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 6.4vw, 76px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--grey);
  max-width: 34em;
  margin: 20px 0 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font: 600 17px/1 var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--pink); border-color: var(--pink); }
.btn:disabled { opacity: .55; cursor: progress; }

/* ---------- Главная: выбор роли ---------- */

.home {
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
}
.home-hero {
  padding: clamp(48px, 9vh, 112px) 0 clamp(32px, 6vh, 64px);
}
.home-hero h1 { font-size: clamp(28px, 8.4vw, 112px); }
.home-hero .lead { margin-top: 24px; }

.roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--black);
  flex: 1;
  min-height: 300px;
}
.role {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 4vw, 56px) var(--gutter);
  text-decoration: none;
  overflow: hidden;
}
.role::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 0;
  background: var(--pink);
  transition: height .2s ease;
}
.role:hover::before, .role:focus-visible::before { height: 10px; }
.role:focus-visible { outline-offset: -6px; }
.role--seller { background: var(--white); color: var(--black); }
.role--manager { background: var(--black); color: var(--white); }
.role-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.role-text {
  max-width: 26em;
  font-size: 17px;
  opacity: .78;
  margin: 14px 0 0;
}
.role-go {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.role-go svg { width: 28px; height: 28px; transition: transform .2s ease; }
.role:hover .role-go svg { transform: translateX(6px); }

/* ---------- Страница продавца ---------- */

.hero {
  padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 64px); }
.hero .btn { margin-top: 32px; }
.hero-note { margin: 14px 0 0; font-size: 15px; color: var(--grey); }

/* Чек потерь */
.receipt {
  position: relative;
  margin: 0;
  background: var(--white);
  border: 2px solid var(--black);
  padding: 28px 26px 34px;
  font-variant-numeric: tabular-nums;
  transform: rotate(1.5deg);
  box-shadow: 10px 10px 0 var(--pink-soft);
  max-width: 420px;
  justify-self: end;
  width: 100%;
}
.receipt::after {
  /* зубчатый край, как у кассового чека */
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: -9px;
  height: 8px;
  background: conic-gradient(from 135deg at top, var(--black) 90deg, transparent 0) 0 0 / 16px 8px repeat-x;
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--black);
}
.receipt-title { font-family: var(--display); font-weight: 700; font-size: 17px; }
.receipt-tag {
  font-size: 13px;
  color: var(--grey);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}
.receipt ul { list-style: none; margin: 0; padding: 6px 0 0; }
.receipt li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.35;
}
.receipt li span:first-child { flex: 0 1 auto; }
.receipt li .dots {
  flex: 1 1 16px;
  min-width: 16px;
  border-bottom: 2px dotted #bdbdbd;
  transform: translateY(-4px);
}
.receipt li span:last-child { white-space: nowrap; font-weight: 600; }
.receipt-total {
  margin-top: 10px;
  padding: 14px 14px;
  background: var(--pink);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-weight: 700;
}
.receipt-total strong { font-family: var(--display); font-size: 22px; white-space: nowrap; }
.receipt-foot { margin: 12px 0 0; font-size: 13px; color: var(--grey); }

/* Блоки */
.section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--grey); margin: 14px 0 0; }

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 2px solid var(--black);
}
.check {
  padding: 24px 24px 28px 0;
  border-bottom: 1px solid var(--line);
}
.check h3 { margin-bottom: 8px; }
.check p { margin: 0; color: var(--grey); font-size: 16px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--black);
  font-family: var(--display);
  font-weight: 700;
  margin-bottom: 16px;
}
.steps p { margin: 8px 0 0; color: var(--grey); font-size: 16px; }

/* ---------- Форма ---------- */

.form-section { background: var(--pink-soft); border-top: 0; }
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.form-aside p { color: #3d3d3d; margin: 16px 0 0; }

.lead-form {
  background: var(--white);
  border: 2px solid var(--black);
  padding: clamp(22px, 3vw, 36px);
  display: grid;
  gap: 22px;
}
.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.label { font-weight: 600; font-size: 15px; }
.hint { font-size: 14px; color: var(--grey); }

.input, .select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid #cfcfcf;
  border-radius: 10px;
  background: var(--white);
  color: var(--black);
  font: 400 17px/1.3 var(--text);
}
.input:hover, .select:hover { border-color: #9a9a9a; }
.input:focus, .select:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px var(--pink-soft); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--pink); }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid #cfcfcf;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.choice input:hover + span { border-color: #9a9a9a; }
.choice input:checked + span { background: var(--black); border-color: var(--black); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 3px; }

.consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.45;
}
.consent input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--pink);
  cursor: pointer;
}
.consent a { color: var(--black); }

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

.form-status { margin: 0; font-size: 15px; min-height: 1.4em; }
.form-status.is-error { color: var(--pink-dark); font-weight: 600; }

.form-done {
  background: var(--white);
  border: 2px solid var(--black);
  padding: clamp(28px, 4vw, 44px);
}
.form-done h3 { font-size: 24px; margin-bottom: 12px; }
.form-done p { margin: 0; color: var(--grey); }
.form-done::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='16' viewBox='0 0 22 16'%3E%3Cpath d='M2 8l6 6L20 2' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center no-repeat;
  margin-bottom: 18px;
}

/* ---------- Текстовые страницы (политика, согласие) ---------- */

.doc { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #262626; }
.doc ul { padding-left: 22px; }
.doc .meta { color: var(--grey); font-size: 15px; margin: 0 0 24px; }
.todo { background: #fff3a8; padding: 0 4px; border-radius: 3px; }

/* Страница «Скоро» и «Спасибо» */
.simple { padding: clamp(48px, 8vw, 112px) 0; }
.simple .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }

/* ---------- Мобильные ---------- */

@media (max-width: 860px) {
  .hero .wrap, .form-grid, .simple .wrap { grid-template-columns: minmax(0, 1fr); }
  .receipt { justify-self: start; transform: rotate(-1deg); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .roles { grid-template-columns: 1fr; }
  .role { min-height: 220px; }
  .field-row { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .header-link { display: none; }
  .receipt { transform: none; box-shadow: 6px 6px 0 var(--pink-soft); max-width: calc(100% - 6px); padding: 22px 18px 28px; }
}

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

/* Касания на телефоне: без задержки двойного тапа и серой вспышки */
a, button, input, select, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
