/* Documan landing. Язык B (маркетинговый веб в духе apple.com), mobile-first. */

:root {
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
  --font-brand: "Quicksand", var(--font-ui);
  --tracking-body: -0.022em;
  --tracking-title: -0.02em;

  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --label: #1D1D1F;
  --label-2: #6E6E73;
  --label-3: rgba(60, 60, 67, 0.30);
  --separator: rgba(60, 60, 67, 0.29);
  --fill-3: rgba(118, 118, 128, 0.12);
  --fill-4: rgba(116, 116, 128, 0.08);

  --accent: #1D1D1F;
  --link: #0066CC;
  --positive: #34C759;
  --warning: #FF9500;
  --destructive: #FF3B30;

  --r-card: 20px;
  --r-tile: 24px;
  --btn-h: 50px;
  --margin: 16px;
  --wrap: 1024px;

  --shadow-floating: 0 8px 24px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);

  --dur-fast: 150ms;
  --dur-base: 300ms;
  --ease-out-ios: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-inout-ios: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 56px;
  --dock-h: 82px;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--label);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: var(--tracking-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--link); text-decoration: none; }
b, strong { font-weight: 600; }
ul, ol, dl, p, h1, h2, h3, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button { font: inherit; color: inherit; letter-spacing: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--margin); }
.wrap--form { max-width: 600px; }
.center { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- типографика ---------- */
.eyebrow {
  font-size: 12px; line-height: 1.33; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--label-2); margin-bottom: 14px;
}
.eyebrow--warn { color: var(--warning); }
.section--dark .eyebrow { color: rgba(235, 235, 245, 0.6); }

.hero__title {
  font-size: clamp(40px, 8vw, 72px); line-height: 1.05; font-weight: 600;
  letter-spacing: var(--tracking-title); margin: 0 0 18px;
}
.hero__title .quiet { display: block; color: var(--label-2); font-size: 0.56em; font-weight: 500; line-height: 1.2; margin-top: 0.35em; letter-spacing: -0.01em; }
.h2 {
  font-size: clamp(32px, 5vw, 48px); line-height: 1.08; font-weight: 600;
  letter-spacing: var(--tracking-title); margin-bottom: 16px; max-width: 18ch;
}
.intro { font-size: 21px; line-height: 1.24; letter-spacing: 0; max-width: 60ch; margin-bottom: 24px; }
.lead { font-size: 21px; line-height: 1.24; letter-spacing: 0; color: var(--label); max-width: 56ch; margin-bottom: 26px; }
.body { max-width: 60ch; }
.after { color: var(--label-2); max-width: 60ch; margin-top: 24px; }
.section--dark .after, .section--dark .intro, .section--dark .body { color: rgba(235, 235, 245, 0.78); }
.section--dark .body { color: #fff; }
.link { color: var(--link); font-weight: 400; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--btn-h); padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--fill-3); color: var(--label); font-size: 17px; font-weight: 600;
  letter-spacing: var(--tracking-body); cursor: pointer; text-decoration: none;
  transition: transform 100ms var(--ease-out-ios), background var(--dur-fast);
  -webkit-tap-highlight-color: transparent; user-select: none; white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #2c2c2e; }
.btn--light { background: #fff; color: var(--label); }
.btn--light:hover { background: #ededf0; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------- шапка (стекло) ---------- */
.nav {
  position: sticky; top: 0; z-index: 30; height: var(--nav-h);
  background: rgba(245, 245, 247, 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.65), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
@media (prefers-reduced-transparency: reduce) { .nav { background: #F5F5F7; } }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--label); }
.brand__mark { width: 22px; height: 32px; }
.brand__word {
  font-family: var(--font-brand); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; line-height: 1;
  display: inline-flex; flex-direction: column;
}
.brand__word sup { font-size: 9px; font-weight: 600; vertical-align: top; margin-left: 2px; position: relative; top: -8px; }
.brand__word small { font-family: var(--font-brand); font-weight: 600; font-size: 11px; letter-spacing: 0.02em; color: var(--label-2); margin-top: 2px; }
.brand--footer .brand__mark { width: 28px; height: 40px; }
.brand--footer .brand__word { font-size: 26px; }

/* ---------- секции ---------- */
.section { padding: 64px 0; }
.section--gray { background: var(--bg); }
.section--dark { background: #000; color: #fff; }
.section--dark .h2 { color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 44px; background: var(--surface); }
.hero__grid { display: grid; gap: 28px; }
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero__actions .btn { width: 100%; }
.hero__note { font-size: 15px; line-height: 1.35; color: var(--label-2); margin-top: 14px; max-width: 48ch; }
.hero__art { margin: 8px auto 0; width: min(76vw, 420px); }
.hero__art img { width: 100%; }
.trust {
  margin-top: 28px; padding-top: 18px; border-top: 0.5px solid var(--separator);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
  font-size: 13px; line-height: 1.35; color: var(--label-2);
}
.trust li { padding-left: 14px; position: relative; }
.trust li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--positive); }

/* ---------- плитки «С чего начнём» ---------- */
.tiles { display: grid; gap: 12px; margin-top: 8px; }
.tile {
  display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 2px;
  align-items: center; text-align: left; width: 100%;
  padding: 16px; border: 0; border-radius: var(--r-tile); background: var(--bg); cursor: pointer;
  transition: transform 100ms var(--ease-out-ios), background var(--dur-fast);
  -webkit-tap-highlight-color: transparent;
}
.tile:active { transform: scale(0.98); }
.tile:hover { background: #ededf0; }
.tile__art { grid-row: 1 / 3; width: 72px; height: 72px; object-fit: contain; }
.tile__t { font-size: 17px; font-weight: 600; line-height: 1.25; }
.tile__d { font-size: 14px; line-height: 1.35; color: var(--label-2); }

/* ---------- списки ---------- */
.list li {
  padding: 14px 0 14px 22px; position: relative; max-width: 62ch;
  border-top: 0.5px solid var(--separator);
}
.list li:first-child { border-top: 0; }
.list li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: var(--label); }
.section--dark .list li::before { background: #fff; }

.steps { counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 18px 0 18px 52px; max-width: 62ch;
  border-top: 0.5px solid var(--separator);
}
.steps li:first-child { border-top: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 20px;
  font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 13px; font-weight: 600;
  color: var(--label-2); letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
}
.steps b { display: block; font-size: 19px; line-height: 1.25; margin-bottom: 4px; letter-spacing: -0.01em; }
.steps span { display: block; color: var(--label-2); font-size: 16px; line-height: 1.45; }

/* segmented */
.seg {
  display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--fill-3);
  max-width: 100%; margin-bottom: 22px;
}
.seg__btn {
  flex: 1 1 0; min-width: 0; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 600; color: var(--label); cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast), box-shadow var(--dur-fast);
  -webkit-tap-highlight-color: transparent; display: inline-flex; align-items: center; justify-content: center;
}
.seg__btn.is-on, .seg__btn:has(input:checked) {
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}
.seg--form { display: flex; margin-bottom: 0; }
.seg__btn input { position: absolute; opacity: 0; width: 0; height: 0; }
.section--dark .seg { background: rgba(255, 255, 255, 0.12); }
.section--dark .seg__btn { color: #fff; }
.section--dark .seg__btn:has(input:checked) { background: #fff; color: var(--label); }

.panes { position: relative; }
.pane { transition: opacity var(--dur-base) var(--ease-out-ios); }
.pane[hidden] { display: none; }
.pane.is-fading { opacity: 0; }

/* сравнение «сами / с нами» и «сейчас / с 1 ноября» */
.cmp__row { padding: 16px 0; border-top: 0.5px solid var(--separator); max-width: 62ch; }
.cmp__row:first-child { border-top: 0; }
.cmp dt { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.cmp dd { margin: 0; padding: 6px 0 6px 0; display: grid; grid-template-columns: 72px 1fr; gap: 12px; font-size: 16px; line-height: 1.4; }
.cmp dd i { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label-2); padding-top: 4px; }
.cmp dd:first-of-type { color: var(--label-2); }
.cmp dd:last-of-type { color: var(--label); }
.cmp dd:last-of-type i { color: var(--positive); }
.cmp--law dd:last-of-type i { color: var(--warning); }
.cmp--law dd { grid-template-columns: 96px 1fr; }

/* факты и команда */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin: 8px 0 28px; }
.facts li { border-top: 0.5px solid var(--separator); padding-top: 12px; }
.facts b { display: block; font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 24px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.facts span { display: block; font-size: 13px; line-height: 1.35; color: var(--label-2); margin-top: 4px; }
.team li { display: flex; flex-direction: column; padding: 12px 0; border-top: 0.5px solid var(--separator); max-width: 62ch; }
.team li:first-child { border-top: 0; }
.team b { font-size: 17px; }
.team span { font-size: 15px; color: var(--label-2); }
.case { margin-top: 28px; padding: 22px; border-radius: var(--r-card); background: var(--bg); max-width: 62ch; }
.case .eyebrow { margin-bottom: 8px; }
.case p:last-child { font-size: 17px; line-height: 1.47; }

/* faq */
.faq details { border-top: 0.5px solid var(--separator); max-width: 62ch; }
.faq details:first-child { border-top: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 36px 16px 0; font-size: 17px; font-weight: 600; line-height: 1.3;
  position: relative; -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 22px; width: 8px; height: 8px;
  border-right: 1.5px solid var(--label-2); border-bottom: 1.5px solid var(--label-2);
  transform: rotate(45deg); transition: transform var(--dur-fast) var(--ease-out-ios);
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 26px; }
.faq details p { padding: 0 0 18px; color: var(--label-2); max-width: 60ch; }

/* ---------- форма ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: block; }
.field__l { display: block; font-size: 13px; font-weight: 600; color: rgba(235, 235, 245, 0.6); margin-bottom: 8px; letter-spacing: 0; }
.input {
  width: 100%; height: 52px; padding: 0 18px; border-radius: 999px; border: 0.5px solid rgba(255, 255, 255, 0.14);
  background: #1C1C1E; color: #fff; font: inherit; font-size: 17px; letter-spacing: var(--tracking-body);
  outline: none; transition: box-shadow var(--dur-fast), border-color var(--dur-fast);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: rgba(235, 235, 245, 0.3); }
.input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12); }
.input--area { height: auto; min-height: 96px; padding: 14px 18px; border-radius: 18px; resize: vertical; line-height: 1.4; }
.input.is-bad { border-color: var(--destructive); animation: shake 0.4s var(--ease-out-ios); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), transform 100ms var(--ease-out-ios);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.chip span:active { transform: scale(0.96); }
.chip input:checked + span { background: #fff; color: var(--label); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__err { color: #FF453A; font-size: 15px; }
.form .btn { width: 100%; margin-top: 4px; }
.form__note { font-size: 13px; line-height: 1.4; color: rgba(235, 235, 245, 0.6); }
.form__ok { padding: 8px 0; }
.form__ok-t { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.form__ok p:last-child { color: rgba(235, 235, 245, 0.78); }

/* ---------- подвал ---------- */
.footer { padding: 40px 0 32px; background: var(--bg); color: var(--label-2); font-size: 15px; line-height: 1.45; }
.footer__in { display: flex; flex-direction: column; gap: 14px; }
.footer__fine { font-size: 12px; line-height: 1.4; max-width: 62ch; }

/* ---------- плавающая кнопка ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 12px var(--margin) calc(12px + env(safe-area-inset-bottom));
  background: rgba(245, 245, 247, 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.65), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  transition: transform var(--dur-base) var(--ease-out-ios), opacity var(--dur-base);
}
@media (prefers-reduced-transparency: reduce) { .dock { background: #F5F5F7; } }
.dock .btn { width: 100%; }
.dock.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }

/* ---------- планшет и десктоп ---------- */
@media (min-width: 700px) {
  :root { --margin: 22px; }
  .hero__actions { flex-direction: row; align-items: center; gap: 24px; }
  .hero__actions .btn { width: auto; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 28px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .cmp dd { grid-template-columns: 88px 1fr; }
  .cmp--law dd { grid-template-columns: 112px 1fr; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .section { padding: 96px 0; }
  .hero { padding: 72px 0 56px; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 40px; }
  .hero__art { width: 100%; max-width: 480px; margin: 0; justify-self: end; }
  .tiles { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .tile { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 6px; padding: 22px; align-content: start; }
  .tile__art { grid-row: auto; width: 96px; height: 96px; margin-bottom: 8px; }
  .tile__t { font-size: 19px; }
  .panes, .steps, .cmp, .faq, .list, .team { max-width: 720px; }
}

@media (min-width: 1100px) {
  .hero__title { max-width: 14ch; }
}
