/* ====== Формула Клиентов — design tokens & base ====== */

:root {
  --brand-red: #FF2F00;
  --brand-orange: #FF6A00;
  --brand-gradient: linear-gradient(135deg, #FF2F00 0%, #FF6A00 100%);

  --ink: #0A0A0A;
  --ink-80: rgba(10, 10, 10, 0.8);
  --ink-60: rgba(10, 10, 10, 0.6);
  --ink-40: rgba(10, 10, 10, 0.4);
  --ink-12: rgba(10, 10, 10, 0.12);
  --ink-08: rgba(10, 10, 10, 0.08);

  --bg: #FAF9F9;
  --surface: #FFFFFF;
  --surface-2: #F2F1F0;
  --border: #E2E1E1;

  --dark: #0A0A0A;
  --dark-2: #161616;
  --dark-3: #232323;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --maxw: 1280px;
  --pad-x: clamp(16px, 4vw, 64px);

  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04), 0 1px 1px rgba(10, 10, 10, 0.04);
  --shadow: 0 8px 24px -8px rgba(10, 10, 10, 0.12);
  --shadow-lg: 0 24px 48px -16px rgba(10, 10, 10, 0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', -apple-system, system-ui, sans-serif !important;
  background: #FAF9F9 !important;
  color: #0A0A0A !important;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; color: #0A0A0A !important; font-family: 'Manrope', -apple-system, system-ui, sans-serif !important; }
p { margin: 0; text-wrap: pretty; }

/* ====== Layout ====== */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: clamp(64px, 9vw, 140px) 0; }
.section-tight { padding: clamp(48px, 7vw, 96px) 0; }

.section--dark { background: var(--dark); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark h4, .section--dark h5, .section--dark h6 { color: #fff; }
.section--surface { background: var(--surface); }
.section--brand { background: var(--brand-red); color: #fff; }

/* ====== Type ====== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-60);
}
.section--dark .eyebrow { color: rgba(255,255,255,0.6); }
.eyebrow::before {
  content: "";
  width: 24px; height: 1.5px;
  background: var(--brand-red);
}

h1.display {
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
}
h2.section-title {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
h3.h3 { font-size: clamp(20px, 1.6vw, 26px); line-height: 1.2; }

.lead { font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-80); line-height: 1.5; }
.section--dark .lead { color: rgba(255,255,255,0.75); }

.text-red { color: var(--brand-red); }
.text-muted { color: var(--ink-60); }

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brand-red); color: #fff; }
.btn-primary:hover { background: #E62700; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1F1F1F; }

.btn-light { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-light:hover { border-color: var(--ink); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink-12); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-arrow { padding-right: 22px; }
.btn-arrow svg { transition: transform .2s ease; }
.btn-arrow:hover svg { transform: translateX(3px); }

.btn-lg { padding: 20px 32px; font-size: 17px; }

/* ====== Cards ====== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-dark {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
}

/* ====== Form fields ====== */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-60);
  letter-spacing: 0.01em;
}
.input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10,10,10,0.06); }
.input.error { border-color: var(--brand-red); box-shadow: 0 0 0 4px rgba(255,47,0,0.12); }
.error-msg { color: var(--brand-red); font-size: 12px; margin-top: 2px; font-weight: 600; }

.field-dark .input {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: #fff;
}
.field-dark .input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.08); }
.field-dark label { color: rgba(255,255,255,0.6); }

/* ====== Tag / chip ====== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 47, 0, 0.08);
  color: var(--brand-red);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.chip-dark {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ====== Marquee dot ====== */
.dot-red {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-red);
  display: inline-block;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Accessibility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
