/* ==========================================================================
   YOUR LINE — landing
   ========================================================================== */

:root {
  --bg: #f6f5f1;
  --bg-alt: #edebe5;
  --surface: #ffffff;
  --ink: #111214;
  --ink-2: #3a3b3f;
  --muted: #74757a;
  --line: #dedcd5;
  --accent: #F3574B;        /* фирменный коралловый */
  --accent-strong: #E2443A; /* кнопки: контраст для текста */
  --accent-hover: #CC372E;
  --accent-soft: #FDE6E3;
  --accent-ink: #ffffff;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1240px;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 11vw, 150px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent-strong); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a2b30; }
.btn--ghost { border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -.03em; }
.logo__text { font-weight: 500; }
.logo__text b { font-weight: 700; }
.logo__mark { width: 34px; height: 34px; flex: none; transition: transform .4s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-6deg); }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font-size: 15px; color: var(--ink-2); position: relative; padding: 4px 0; transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.burger { display: none; }

/* ---------- Typography helpers ---------- */
.eyebrow, .label {
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--muted);
  text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.label--light { color: rgba(255,255,255,.55); }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero__art {
  position: absolute; z-index: 0; pointer-events: none;
  right: max(var(--pad), calc((100vw - var(--container)) / 2 + var(--pad)));
  top: clamp(48px, 7vw, 96px);
  width: var(--art); height: auto;
  overflow: visible;
}
.hero__art-line { fill: none; stroke: #b9b6ad; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s .2s var(--ease) forwards; }
.hero__art circle { fill: var(--bg); stroke: var(--ink); stroke-width: 1.4; opacity: 0; animation: pop .5s var(--ease) forwards; }
.hero__art circle:nth-of-type(1) { animation-delay: .5s; }
.hero__art circle:nth-of-type(2) { animation-delay: .7s; }
.hero__art circle:nth-of-type(3) { animation-delay: .9s; }
.hero__art circle:nth-of-type(4) { animation-delay: 1.1s; }
.hero__art circle:nth-of-type(5) { animation-delay: 1.3s; }
.hero__art circle.is-core { fill: var(--accent); stroke: var(--accent); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.hero__art circle { transform-box: fill-box; transform-origin: center; }

.hero { --art: clamp(220px, 24vw, 340px); position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); }
.hero__title {
  position: relative;
  margin-top: 28px;
  font-size: clamp(42px, 7.4vw, 104px);
  line-height: .98; letter-spacing: -.045em; font-weight: 600;
  max-width: min(13ch, calc(100% - var(--art) - 48px));
}
.hero__bottom {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end;
  margin-top: clamp(36px, 5vw, 60px);
}
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 560px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: clamp(56px, 7vw, 96px) 0 0;
  border-top: 1px solid var(--line);
}
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.stat dd { margin: 14px 0 8px; display: flex; align-items: baseline; gap: 4px; }
.stat__num { font-size: clamp(38px, 4.4vw, 60px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__unit { font-size: 22px; font-weight: 600; color: var(--accent); }
.stat p { font-size: 14px; color: var(--muted); max-width: 22ch; line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--ink); color: #fff; }
.section__head { margin-bottom: clamp(44px, 6vw, 80px); }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__title {
  margin-top: 18px;
  font-size: clamp(32px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600;
}
.section__note { max-width: 360px; color: var(--muted); font-size: 16px; }

/* ---------- Services split ---------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); }
.split__title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; padding-bottom: 20px; border-bottom: 1px solid var(--ink); margin-bottom: 8px; }

.list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.list__idx { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 4px; }
.list h4 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 6px; }
.list p { color: var(--muted); font-size: 15.5px; }

.grid { display: grid; gap: 12px; margin-top: 20px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .25s, transform .3s var(--ease);
}
.tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.tile h4 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.tile p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

.offer {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: center;
  margin-top: clamp(56px, 7vw, 88px);
  padding: clamp(28px, 4vw, 44px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--accent); color: #fff;
}
.offer .offer__big { opacity: 1; font-size: clamp(56px, 7vw, 96px); font-weight: 600; letter-spacing: -.05em; line-height: .9; }
.offer h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.offer p { font-size: 15.5px; }
.offer .btn--dark:hover { background: #000; }

/* ---------- Cards (web) ---------- */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card {
  grid-column: span 2;
  display: flex; flex-direction: column;
  min-height: 300px; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:nth-child(4), .card:nth-child(5) { grid-column: span 3; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(17,18,20,.35); border-color: transparent; }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; padding-bottom: 48px; }
.card__num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.tag {
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2);
}
.card h3 { font-size: clamp(24px, 2.3vw, 30px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; max-width: 36ch; }
.card__link {
  margin-top: 26px; display: inline-flex; gap: 8px; align-items: center; align-self: flex-start;
  font-weight: 600; font-size: 15px; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.card__link span { transition: transform .25s var(--ease); }
.card:hover .card__link span { transform: translateX(4px); }
.card--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card--dark p, .card--dark .card__num { color: rgba(255,255,255,.6); }
.card--dark .tag { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.85); }
.card--dark .card__link { color: #fff; }

/* ---------- Features (CRM) ---------- */
.features { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.feature { padding: 36px 28px 8px 0; }
.feature + .feature { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.14); }
.feature svg {
  width: 30px; height: 30px; margin-bottom: 40px;
  fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.section--ink .feature svg { stroke: #FF7A6F; }
.feature h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 10px; }
.feature p { font-size: 15px; color: rgba(255,255,255,.6); line-height: 1.55; }

/* ---------- Tabs / Steps ---------- */
.tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); }
.tabs__btn {
  border: 0; background: transparent; cursor: pointer;
  height: 42px; padding: 0 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--muted);
  transition: background .25s, color .25s;
}
.tabs__btn.is-active { background: var(--ink); color: #fff; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.steps[hidden] { display: none; }
.step {
  position: relative; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  animation: stepIn .5s var(--ease) both;
}
.step:nth-child(2) { animation-delay: .06s; }
.step:nth-child(3) { animation-delay: .12s; }
.step:nth-child(4) { animation-delay: .18s; }
.step__n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--mono); font-size: 13px; background: var(--bg-alt); margin-bottom: 56px;
}
.step:last-child .step__n { background: var(--accent); color: #fff; }
.step h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact__lead { margin-top: 24px; color: var(--ink-2); max-width: 440px; }
.contact__list { margin-top: 44px; border-top: 1px solid var(--line); }
.contact__list li {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.contact__list span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.contact__list a { font-size: 18px; font-weight: 500; transition: color .2s; }
.contact__list a:hover { color: var(--accent); }

.form {
  background: var(--surface); border-radius: calc(var(--radius) + 6px);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 30px 80px -50px rgba(17,18,20,.35);
}
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--muted); margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  background: var(--bg); border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 16px; outline: none; transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23111214' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.field input::placeholder, .field textarea::placeholder { color: #a3a49f; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: #fff; }
.field.is-invalid input { border-color: #e5484d; background: #fff6f6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.form__status { margin-top: 10px; font-size: 15px; font-weight: 600; text-align: center; min-height: 1.4em; }
.form__status.is-ok { color: #138a4a; }
.form__status.is-err { color: #d1343a; }
.form.is-sending button[type=submit] { opacity: .6; pointer-events: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 44px 0; }
.footer__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer__nav { display: flex; gap: 26px; flex-wrap: wrap; margin-left: auto; }
.footer__nav a { font-size: 14.5px; color: rgba(255,255,255,.65); transition: color .2s; }
.footer__nav a:hover { color: #fff; }
.footer__copy { font-size: 14px; color: rgba(255,255,255,.45); width: 100%; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header__phone { display: none; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .feature:nth-child(4) { padding-left: 0; border-left: 0; }
  .feature { padding-bottom: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__art { display: none; }
  .hero__title { max-width: 13ch; }
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 50%;
    background: transparent; cursor: pointer;
  }
  .burger span { display: block; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 72px 0 auto 0; z-index: 49;
    flex-direction: column; gap: 0; margin: 0;
    padding: 8px var(--pad) 28px; background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-size: 22px; font-weight: 600; letter-spacing: -.02em; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav a::after { display: none; }
  .header__actions { margin-left: auto; }

  .hero__bottom { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat { padding-bottom: 28px; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .split, .contact { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: span 1; }
  .card:nth-child(5) { grid-column: span 2; }
  .offer { grid-template-columns: 1fr; }
  .offer .btn { justify-self: start; }
  .br-d { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header__actions .btn { display: none; }
  .grid--2, .cards { grid-template-columns: 1fr; }
  .card:nth-child(5) { grid-column: span 1; }
  .card { min-height: 0; }
  .card__top { padding-bottom: 32px; }
  .features { grid-template-columns: 1fr; }
  .feature, .feature + .feature { padding: 28px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .feature svg { margin-bottom: 20px; }
  .steps { grid-template-columns: 1fr; }
  .step__n { margin-bottom: 28px; }
  .tabs { width: 100%; }
  .tabs__btn { flex: 1; padding: 0 10px; }
  .contact__list li { grid-template-columns: 1fr; gap: 4px; }
  .hero__cta .btn { flex: 1; }
  .footer__nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
