@import url("fonts/fonts.css");

:root {
  --bg: #f7f8fa;
  --ink: #0e1116;
  --muted: #5b6472;
  --line: #e3e6ea;
  --card: #ffffff;
  --accent: #b6ff3b;
  --accent-ink: #0e1116;
  --dark: #0e1116;
  --dark-soft: #161a21;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --shadow: 0 1px 2px rgba(14, 17, 22, .04), 0 12px 32px -20px rgba(14, 17, 22, .35);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4.4vw, 56px); font-weight: 700; }
.nw { white-space: nowrap; }
h2 { font-size: clamp(24px, 3vw, 38px); }
h3 { font-size: 19px; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section[id] { scroll-margin-top: 84px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--dark); color: #f7f8fa; }
.section--dark .muted { color: #9aa4b2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(182,255,59,.25); }
.section--dark .eyebrow { color: #9aa4b2; }

.lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }

.section-head { max-width: 820px; margin-bottom: 40px; }
.section-head p { margin-top: 14px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 12px; border: 1px solid transparent;
  font: 600 16px/1 "Inter", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #aef52f; transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1b2027; transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: #c7ccd3; background: #fff; }
.btn--ghost-light { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #7aa7ff; outline-offset: 2px;
}

/* ---------- шапка ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 60;
  transform: translateY(-100%); transition: transform .25s ease;
  background: rgba(247,248,250,.86); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr.is-visible { transform: none; }
.hdr__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.logo__mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--accent);
  display: grid; place-items: center; font: 600 13px/1 var(--mono);
}
.logo small { display: block; font: 400 11.5px/1.2 var(--mono); color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font-size: 15px; color: #3b434e; text-decoration: none; }
.nav a:hover { color: var(--ink); }
.hdr__cta { display: flex; gap: 10px; align-items: center; }
.hdr__burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.mnav { border-top: 1px solid var(--line); background: rgba(247,248,250,.98); }
.mnav .wrap { display: grid; gap: 2px; padding: 8px 20px 14px; }
.mnav a { padding: 12px 2px; font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav a:last-child { border-bottom: 0; font-weight: 500; }

/* ---------- hero ---------- */
.hero { padding: 132px 0 76px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 620px; z-index: -1;
  background: radial-gradient(60% 60% at 70% 10%, rgba(182,255,59,.20), transparent 70%),
              radial-gradient(50% 50% at 10% 0%, rgba(122,167,255,.16), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: start; }
.hero h1 { margin-bottom: 18px; }
.hero__sub { max-width: 56ch; color: #3b434e; font-size: clamp(16px, 1.6vw, 19px); }
.hero__marks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 26px 0 28px; }
.hero__marks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: #2c333c; }
.hero__marks svg { flex: none; margin-top: 2px; color: #0e1116; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* терминал */
.term {
  background: var(--dark); border-radius: 14px; border: 1px solid #1f242c;
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.7); overflow: hidden;
}
.term__bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #1f242c; }
.term__dot { width: 10px; height: 10px; border-radius: 50%; background: #2b323c; }
.term__dot:nth-child(1) { background: #ff5f57; }
.term__dot:nth-child(2) { background: #febc2e; }
.term__dot:nth-child(3) { background: #28c840; }
.term__title { margin-left: 8px; font: 500 12px/1 var(--mono); color: #7d8794; }
.term__body { padding: 16px 18px 20px; font: 400 13.5px/1.75 var(--mono); color: #cfd6df; }
.term__body .c { color: #7d8794; }
.term__body .g { color: var(--accent); }
.term__body .b { color: #7aa7ff; }
.term__body .w { color: #fff; }

/* схема */
.scheme { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.scheme__row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 12.5px; }
.scheme__node { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 9px; background: #f2f4f7; border: 1px solid var(--line); font-weight: 500; white-space: nowrap; }
.scheme__node--accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.scheme__arrow { color: #b3bac4; font: 400 12px/1 var(--mono); }
.scheme__cap { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* ---------- полоса доверия ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust__item { padding: 22px 22px 22px 0; display: flex; gap: 12px; align-items: flex-start; }
.trust__item + .trust__item { padding-left: 22px; border-left: 1px solid var(--line); }
.trust__item b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.trust__item span { font-size: 13.5px; color: var(--muted); }
.trust__ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #f1f4f8; display: grid; place-items: center; color: #0e1116; }

/* ---------- сетки карточек ---------- */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { color: #3b434e; font-size: 15.5px; }
.card--flat { box-shadow: none; }
.card__ic { width: 40px; height: 40px; border-radius: 11px; background: #f1f4f8; display: grid; place-items: center; margin-bottom: 14px; color: #0e1116; }
.card--dark { background: var(--dark-soft); border-color: #232933; color: #f7f8fa; }
.card--dark p { color: #b6bec9; }
.card--dark .card__ic { background: rgba(182,255,59,.12); color: var(--accent); }

/* ---------- кейсы ---------- */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.case__n { display: inline-block; font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.case h3 { font-size: 18px; margin-bottom: 8px; }
.case p { color: #3b434e; font-size: 15.5px; }
.case--wide { grid-column: 1 / -1; }

/* список «что забирает время» */
.pains { list-style: none; display: grid; gap: 10px; }
.pains li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 15.5px; }
.pains svg { flex: none; color: #8b95a3; margin-top: 1px; }

/* таблицы */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #f5f7fa; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
td b, th b { font-weight: 600; }
.table-note { padding: 14px 20px; background: #f9fafc; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* шаги */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.step::before {
  counter-increment: s; content: counter(s);
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: var(--accent); font: 600 13px/1 var(--mono); margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: #3b434e; }
.step__time { display: inline-block; margin-top: 10px; font: 500 12.5px/1 var(--mono); color: var(--muted); background: #f1f4f8; padding: 6px 9px; border-radius: 7px; }

/* чек-лист */
.check { list-style: none; display: grid; gap: 9px; }
.check li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: #2c333c; }
.check svg { flex: none; margin-top: 3px; color: #0e1116; }
.section--dark .check li { color: #e6eaef; }
.section--dark .check svg { color: #b6ff3b; }

/* тарифы */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.price { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.price--hot { background: var(--dark); border-color: var(--dark); color: #f7f8fa; position: relative; }
.price--hot .price__desc, .price--hot .price__list li { color: #b6bec9; }
.price__tag { font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.price--hot .price__tag { color: var(--accent); }
.price h3 { font-size: 21px; margin-bottom: 6px; }
.price__desc { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.price__sum { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1; margin-bottom: 4px; }
.price__sum small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price--hot .price__sum small { color: #b6bec9; }
.price__term { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.price__list { list-style: none; display: grid; gap: 8px; margin-bottom: 22px; }
.price__list li { font-size: 14.5px; color: #3b434e; padding-left: 18px; position: relative; }
.price__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #c3cad3; }
.price--hot .price__list li::before { background: var(--accent); }
.price .btn { margin-top: auto; }

/* гарантии */
.gtee { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.gtee .card p + p { margin-top: 10px; }

/* кто ставит */
.who { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: center; }
.who__ph { aspect-ratio: 4/5; border-radius: var(--radius); background: #eef1f5; border: 1px dashed #c9d0d9; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 13px; padding: 20px; }
.who__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.who__fact { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.who__fact b { display: block; font-size: 15px; margin-bottom: 3px; }
.who__fact span { font-size: 13.5px; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font-size: 17px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 22px/1 var(--mono); color: var(--muted);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: #3b434e; max-width: 78ch; }

/* форма */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 48px; align-items: start; }
.form { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; color: #2c333c; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: 400 16px/1.4 "Inter", sans-serif; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #98a1ad; }
.field input:focus, .field textarea:focus { outline: none; border-color: #7aa7ff; box-shadow: 0 0 0 4px rgba(122,167,255,.16); }
.field textarea { min-height: 88px; resize: vertical; }
.field .err { display: none; margin-top: 6px; font-size: 13px; color: #c02626; }
.field.is-error input, .field.is-error textarea { border-color: #e08a8a; }
.field.is-error .err { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 16px; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: #0e1116; }
.consent a { color: #3b434e; }
.form__note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.form__ok { display: none; padding: 18px; border-radius: 12px; background: #f0fbe0; border: 1px solid #cde8a7; font-size: 15px; }
.form.is-sent .form__body { display: none; }
.form.is-sent .form__ok { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* подвал */
.ftr { background: var(--dark); color: #cfd6df; padding: 56px 0 32px; }
.ftr a { color: #cfd6df; text-decoration: none; }
.ftr a:hover { color: #fff; }
.ftr__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.ftr h4 { margin: 0 0 12px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #7d8794; font-weight: 500; }
.ftr ul { list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.ftr__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid #1f242c; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #8b95a3; }

/* плавающая мобильная кнопка */
.mcta {
  display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55;
  padding: 10px; background: rgba(247,248,250,.92); border: 1px solid var(--line);
  border-radius: 14px; backdrop-filter: blur(10px); box-shadow: 0 10px 30px -12px rgba(14,17,22,.45);
}
.mcta .btn { width: 100%; }

/* cookie */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 18px 50px -20px rgba(14,17,22,.45); display: flex; gap: 16px; align-items: center;
  max-width: 900px; margin: 0 auto;
}
.cookie p { font-size: 13.5px; color: var(--muted); }
.cookie__btns { display: flex; gap: 8px; flex: none; }

/* появление при скролле */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .3s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .trust__in { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr; }
  .who__ph { aspect-ratio: 16/10; }
  .form-wrap { grid-template-columns: 1fr; gap: 28px; }
  .gtee { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav, .hdr__cta .btn--ghost { display: none; }
  .hdr__burger { display: inline-flex; }
  .hdr__cta { margin-left: auto; }
  .logo { font-size: 15px; white-space: nowrap; }
  .logo small { font-size: 10.5px; }
  .hdr__in { gap: 12px; }
  .section { padding: 64px 0; }
  .hero { padding: 104px 0 56px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .mcta.is-on { display: block; }
  .cookie { bottom: 84px; flex-direction: column; align-items: flex-start; gap: 10px; }
  body { padding-bottom: 76px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__marks { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4, .steps, .who__facts, .cases { grid-template-columns: 1fr; }
  .trust__in { grid-template-columns: 1fr; }
  .trust__item { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .trust__item:first-child { border-top: 0; }
  .ftr__grid { grid-template-columns: 1fr; }
  .hdr__cta .btn--primary { min-height: 42px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
  th, td { padding: 12px 14px; }

  /* таблицы — карточками, без горизонтального скролла */
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr { border-bottom: 1px solid var(--line); padding: 14px 16px; }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td { border: 0; padding: 4px 0; }
  .table-wrap td:first-child { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
  .table-wrap td:not(:first-child)::before {
    content: attr(data-label) ": "; color: var(--muted); font-size: 13px;
  }
  .table-note { border-top: 1px solid var(--line); }
}

/* ---- видео-блок в «Примерах реальных задач» ---- */
.video-block { max-width: 860px; margin: 0 auto 30px; }
.video-block__lead {
  margin: 0 0 14px; font-size: 17px; color: var(--muted); text-align: center;
}
.video {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); background: #000; border: 1px solid var(--line);
  box-shadow: 0 24px 60px -34px rgba(14, 17, 22, .55);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) {
  .video-block { margin-bottom: 22px; }
  .video-block__lead { font-size: 15px; text-align: left; }
  .video { border-radius: 12px; }
}
