/* Посадкова лід-магніту «AI у бізнесі» (crmium.com/uk/ai-u-biznesi/). Усе під .lm, щоб не чіпати тему.
   Шапка теми fixed, висота залежить від ширини (виміряно на проді 09.10.2026: телефон 72, ≥1024 — 86,
   1400–1439 — до 91, ≥1440 — 102) → --hdr. Шрифт TT Commons дає тема (у прев'ю — @font-face нижче).
   🔴 Форма цілком у першому екрані на будь-якому екрані (правило Олександра 06.10.2026). */

.lm {
  --ink: #15171C; --ink-2: #4E545C; --ink-3: #827E78; --acc: #EF652F; --acc-h: #D45520;
  --warm: #F0EDE8; --line: #DFDAD2; --dark: #15171C; --dark-2: #1B1E24;
  --hdr: 72px;
  padding-top: var(--hdr);
  background: var(--dark);
  color: var(--ink);
  font-family: 'TT Commons', 'Inter', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.45;
  overflow-x: clip;
}
@media (min-width: 641px) { .lm { --hdr: 86px; } }
@media (min-width: 1400px) { .lm { --hdr: 92px; } }
@media (min-width: 1440px) { .lm { --hdr: 102px; } }
.lm *, .lm *::before, .lm *::after { box-sizing: border-box; }
/* :where — нульова специфічність, інакше `.lm p` перебиває відступи класів (.lm-pill, .lm-sub…) */
:where(.lm) :where(h1, h2, h3, p, figure, blockquote) { margin: 0; }
.lm img { max-width: 100%; height: auto; max-height: none; display: block; }
.lm a { text-decoration: none; }
.lm-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ ПЕРШИЙ ЕКРАН ============ */
.lm-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 55% at 78% 85%, rgba(239, 101, 47, .22), transparent 70%),
    linear-gradient(180deg, #17191E 0%, #15171C 100%);
}
.lm-wm {
  position: absolute; left: -2%; top: -4%;
  font-weight: 700; font-size: clamp(140px, 24vw, 380px); line-height: .9; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .07);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.lm-hero__grid { position: relative; display: grid; gap: 28px; }
.lm-h1 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.lm-h1 span { display: block; color: var(--acc); }
.lm-pill {
  display: inline-block; margin-top: 18px; padding: 9px 20px;
  border: 2px solid var(--acc); border-radius: 999px;
  font-size: 19px; font-weight: 600; color: #fff;
}
.lm-sub { margin-top: 16px; max-width: 34em; font-size: 19px; line-height: 1.45; color: #C9CDD3; }
.lm-sub--m { display: none; }   /* копія підзаголовка під формою — лише на телефоні */

.lm-card {
  margin-top: 24px; max-width: 520px;
  background: #fff; color: var(--ink);
  border-radius: 22px; padding: 24px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 60px -24px rgba(239, 101, 47, .45);
}
.lm-card__h { font-size: 22px; font-weight: 700; line-height: 1.2; margin-bottom: 14px; }
.lm-form { display: grid; gap: 12px; }
.lm-form[hidden] { display: none; }
.lm-form input {
  width: 100%; min-height: 54px; padding: 14px 22px;
  border: 0; border-radius: 999px; background: #EEF0F3; color: var(--ink);
  font: inherit; font-size: 18px; outline: none;
}
.lm-form input:focus { box-shadow: 0 0 0 2px var(--acc); }
.lm-form input.is-bad { box-shadow: 0 0 0 2px #E5484D; }
.lm-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.lm-err { font-size: 15px; line-height: 1.4; color: #C5303A; }
.lm-note { font-size: 14px; line-height: 1.45; color: var(--ink-3); }

.lm .lm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: none; min-height: 58px; padding: 14px 26px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--acc); color: #fff;
  font: inherit; font-size: 19px; font-weight: 700; line-height: 1.15; letter-spacing: 0; text-transform: none;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.lm .lm-btn:hover { background: var(--acc-h); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(239, 101, 47, .35); }
.lm .lm-btn:disabled { opacity: .7; cursor: progress; transform: none; }
.lm .lm-btn svg { width: 22px; height: 22px; flex: none; }
.lm .lm-btn--tg { background: #229ED9; }
.lm .lm-btn--tg:hover { background: #1C8BC0; box-shadow: 0 12px 28px rgba(34, 158, 217, .35); }
.lm .lm-btn--dark { width: auto; background: var(--dark); }
.lm .lm-btn--dark:hover { background: #2A2D35; box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
@media screen { .lm-form .lm-btn { animation: lmPulse 2.8s ease-in-out infinite; } }
@keyframes lmPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 101, 47, .45); } 60% { box-shadow: 0 0 0 12px rgba(239, 101, 47, 0); } }

.lm-done { display: grid; gap: 12px; }
.lm-done[hidden] { display: none; }
.lm-done__t { font-size: 17px; line-height: 1.45; color: var(--ink-2); margin-top: -4px; }
.lm .lm-link {
  justify-self: center; margin-top: 2px; padding: 6px 10px; max-width: none;
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px;
}
.lm .lm-link:hover { color: var(--ink); }
.lm-done__mail { font-size: 15px; line-height: 1.45; color: var(--ink-2); text-align: center; background: var(--warm); border-radius: 12px; padding: 10px 14px; }

/* планшет з обкладинкою (свіжа обкладинка з PDF, а не скрин — щоб не розходилось із гайдом) */
.lm-device { position: relative; justify-self: center; width: min(100%, 440px); }
.lm-tablet {
  position: relative; border-radius: 34px; padding: 14px;
  background: linear-gradient(145deg, #2C2F36, #121418);
  box-shadow: 0 0 0 2px #3A3E46, 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 60px rgba(239, 101, 47, .18);
  transform: rotate(-2deg);
}
.lm-tablet img { border-radius: 22px; width: 100%; }
.lm-arrow { display: none; }

/* ============ СЕКЦІЇ ============ */
.lm-sec { padding: 72px 0; }
.lm-sec--tight { padding-top: 0; }
.lm-sec--light { background: var(--warm); }
.lm-sec--dark { background: var(--dark-2); color: #fff; }
.lm-h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.lm-h2 span { color: var(--acc); }
.lm-h2--light { color: #fff; }
.lm-lead { margin-top: 12px; max-width: 46em; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.lm-lead--light { color: #C9CDD3; }

.lm-roles { margin-top: 28px; display: grid; gap: 14px; grid-template-columns: 1fr; }
.lm-role { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; box-shadow: 0 6px 18px rgba(21, 23, 28, .05); }
.lm-role b { display: block; font-size: 21px; line-height: 1.2; font-weight: 700; }
.lm-role span { display: block; margin-top: 6px; font-size: 17px; line-height: 1.45; color: var(--ink-2); }

/* приклад задачі — як картка в PDF */
.lm-task { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 6px 18px rgba(21, 23, 28, .05); }
.lm-task__top { display: flex; gap: 12px; align-items: flex-start; }
.lm-task__n { flex: none; margin-top: 4px; padding: 5px 8px; border-radius: 8px; background: #FDF0EA; color: var(--acc); font-size: 15px; font-weight: 700; line-height: 1; }
.lm-task__title { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; font-weight: 700; }
.lm-task__grid { margin-top: 20px; display: grid; gap: 22px; }
.lm-task__l { font-size: 15px; font-weight: 700; color: var(--acc); margin-bottom: 6px; }
.lm-task__p { font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.lm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.lm-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 18px; line-height: 1.45; }
.lm-steps i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: #FDF0EA; color: var(--acc); font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.lm-task__res { margin-top: 20px; border: 2px solid var(--acc); border-radius: 14px; padding: 14px 18px; }
.lm-task__res p { font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.lm-task__res strong { color: var(--ink); }
.lm-task__lvl { margin-top: 14px; font-size: 16px; color: var(--ink-2); }
.lm-task__lvl strong { color: var(--ink); }
.lm-task__more { margin-top: 16px; font-size: 17px; color: var(--ink-2); }
.lm-task__more a { color: var(--acc); font-weight: 700; }

.lm-why { display: grid; gap: 30px; align-items: center; }
.lm-quote { display: flex; gap: 20px; align-items: center; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 22px 24px; }
.lm-quote img { width: 96px; height: 96px; border-radius: 50%; flex: none; object-fit: cover; }
.lm-quote blockquote { font-size: 18px; line-height: 1.5; color: #fff; }
.lm-quote figcaption { margin-top: 10px; font-size: 15px; color: #9AA1AD; }
.lm-quote figcaption b { color: #fff; margin-right: 8px; }

.lm-cta { background: var(--acc); padding: 40px 0; }
.lm-cta__in { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.lm-cta__t { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; font-weight: 700; color: #fff; max-width: 22em; }

/* ============ ДЕСКТОП: перший екран = блок із формою ============ */
@media (min-width: 1025px) {
  /* знизу відступ більший, ніж зверху: текст і планшет вище середини екрана (Олександр 09.10 — «в нижній частині екрану») */
  .lm-hero { min-height: calc(100vh - var(--hdr)); min-height: calc(100svh - var(--hdr)); display: flex; align-items: center; padding: clamp(18px, 3vh, 36px) 0 clamp(40px, 10vh, 120px); }
  .lm-hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 40px; }
  .lm-h1 { font-size: clamp(40px, min(4vw, 7.2vh), 56px); }   /* ≤56: у колонці 600px — рівно 3 рядки */
  .lm-pill { margin-top: clamp(16px, 3vh, 30px); }
  .lm-sub { margin-top: clamp(14px, 2.6vh, 26px); font-size: clamp(17px, 2.3vh, 19px); }
  .lm-card { margin-top: clamp(14px, 2.6vh, 26px); padding: clamp(18px, 2.8vh, 26px); }
  .lm-card__h { font-size: clamp(19px, 2.6vh, 22px); margin-bottom: clamp(8px, 1.4vh, 14px); }
  .lm-form { gap: clamp(8px, 1.3vh, 12px); }
  .lm-form input { min-height: clamp(44px, 6vh, 54px); padding-top: 10px; padding-bottom: 10px; }
  .lm .lm-btn { min-height: clamp(48px, 6.6vh, 58px); }
  .lm-device { width: min(100%, clamp(300px, 52vh, 480px)); }
  .lm-arrow { display: block; position: absolute; width: 150px; left: -150px; top: 56%; }   /* між формою й планшетом, не по заголовку */
  .lm-roles { grid-template-columns: repeat(3, 1fr); }
  .lm-task__grid { grid-template-columns: .9fr 1.1fr; gap: 30px; }
  .lm-why { grid-template-columns: .9fr 1.1fr; gap: 48px; }
}
/* низькі ноутбуки (1280×720, 1366×768 мінус панелі браузера) */
@media (min-width: 1025px) and (max-height: 760px) {
  .lm-hero { padding: 16px 0 22px; }
  .lm-h1 { font-size: clamp(34px, 5.8vh, 46px); }
  .lm-pill { margin-top: 14px; padding: 6px 18px; font-size: 17px; }
  .lm-sub { margin-top: 12px; font-size: 16px; }
  .lm-card { margin-top: 12px; padding: 14px 20px 16px; }
  .lm-card__h { font-size: 19px; margin-bottom: 8px; }
  .lm-form { gap: 8px; }
  .lm-form input { min-height: 42px; }
  .lm .lm-btn { min-height: 46px; }
  .lm-note { font-size: 13.5px; line-height: 1.35; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .lm-roles { grid-template-columns: 1fr 1fr; }
  .lm-device { width: min(100%, 420px); }
}

/* ============ ТЕЛЕФОН: заголовок і форма — на весь перший екран, планшет нижче ============ */
@media (max-width: 640px) {
  .lm-wrap { padding: 0 16px; }
  .lm-hero { padding: 0 0 44px; }
  .lm-first {
    display: flex; flex-direction: column; justify-content: center;
    min-height: calc(100vh - var(--hdr)); min-height: calc(100svh - var(--hdr));
    padding: 18px 0 20px; text-align: center;
  }
  .lm-first .lm-sub { display: none; }
  .lm-sub--m { display: block; margin: 0 auto; text-align: center; }
  .lm-h1 { font-size: 34px; line-height: 1.06; }
  .lm-pill { align-self: center; font-size: 17px; padding: 8px 16px; margin-top: 20px; }
  .lm-sub { font-size: 17px; }
  .lm-card { margin: 20px auto 0; width: 100%; padding: 20px 16px; text-align: left; }
  .lm-card__h { text-align: center; }
  .lm-form { gap: 14px; }
  .lm .lm-btn { font-size: 18px; white-space: normal; }
  .lm-note { text-align: center; }
  .lm-wm { font-size: 150px; top: 2%; }
  .lm-device { width: min(100%, 320px); }
  .lm-sec { padding: 52px 0; }
  .lm-sec--tight { padding-top: 0; }
  .lm-task { padding: 20px 18px; }
  .lm-quote { flex-direction: column; align-items: flex-start; }
  .lm-cta__in { justify-content: center; text-align: center; }
  .lm .lm-btn--dark { width: 100%; }
}
/* вузькі телефони (360–380): заголовок інакше в 4 рядки по 34px */
@media (max-width: 380px) { .lm-h1 { font-size: 30px; } }
/* звичайні телефони в браузері (iPhone 13 ≈ 664, Android ≈ 640) */
@media (max-width: 640px) and (max-height: 700px) {
  .lm-first { padding: 12px 0 14px; }
  .lm-card { margin-top: 16px; }
  .lm-form { gap: 12px; }
}
/* низькі телефони (iPhone SE у Safari ≈ 548px) */
@media (max-width: 640px) and (max-height: 600px) {
  .lm-first { padding: 10px 0 12px; }
  .lm-h1 { font-size: 29px; }
  .lm-pill { margin-top: 10px; font-size: 16px; }
  .lm-card { margin-top: 12px; padding: 16px 14px; }
  .lm-card__h { font-size: 19px; margin-bottom: 10px; }
  .lm-form { gap: 10px; }
  .lm-form input { min-height: 48px; }
  .lm .lm-btn { min-height: 52px; }
  .lm-note { font-size: 13.5px; }
}

/* ============ ВЛАСНИЙ ФУТЕР (як на /uk/quiz-erp/ і /uk/free-consultation/) ============ */
body.page-template-magnet-ai-ua #footer { display: none !important; }
.lm .cs-trust { position: relative; background: #111317; border-top: 1px solid rgba(255, 255, 255, .08); color: #F1F3F5; padding: 56px 16px 26px; }
@media (min-width: 768px) { .lm .cs-trust { padding: 88px 24px 34px; } }
.lm .cs-trust__in { max-width: 1080px; margin: 0 auto; }
.lm .cs-trust__h { font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; color: #fff; }
@media (min-width: 768px) { .lm .cs-trust__h { font-size: 36px; } }
.lm .cs-trust__sub { margin-top: 8px; font-size: 16px; line-height: 1.5; color: #9AA1AD; max-width: 60ch; }
.lm .cs-badges { margin-top: 28px; display: grid; gap: 12px; }
@media (min-width: 640px) { .lm .cs-badges { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.lm .cs-badge { height: 118px; border-radius: 18px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 18px; transition: transform .2s ease, box-shadow .2s ease; }
.lm .cs-badge:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -14px rgba(239, 101, 47, .55); }
.lm .cs-badge img { width: auto; max-width: 100%; max-height: 82px; }
.lm .cs-badge--odoo img { max-height: 40px; filter: brightness(0); opacity: .88; }
.lm .cs-badge--clutch img { max-height: 92px; }
.lm .cs-badge__cap { font-size: 14px; font-weight: 800; color: #15171C; letter-spacing: .01em; }
.lm .cs-stats { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
@media (min-width: 768px) { .lm .cs-stats { grid-template-columns: repeat(4, 1fr); margin-top: 44px; } }
.lm .cs-stat__n { font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.03em; color: #fff; }
.lm .cs-stat__n em { font-style: normal; color: var(--acc); }
@media (min-width: 768px) { .lm .cs-stat__n { font-size: 42px; } }
.lm .cs-stat__l { margin-top: 6px; font-size: 15px; line-height: 1.35; color: #9AA1AD; }
.lm .cs-clutch { margin-top: 30px; min-height: 45px; }
.lm .cs-foot { margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 22px; }
@media (min-width: 768px) { .lm .cs-foot { grid-template-columns: 1fr auto; align-items: center; } }
.lm .cs-contacts { display: grid; gap: 6px; }
.lm .cs-contacts a { font-weight: 800; font-size: 22px; letter-spacing: -.01em; color: #fff; width: max-content; }
.lm .cs-contacts a + a { font-size: 17px; font-weight: 700; color: #D3D8DF; }
.lm .cs-contacts .phoneLink { display: block !important; }
.lm .cs-contacts a:hover { color: var(--acc); }
.lm .cs-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
.lm .cs-links a { font-size: 15px; font-weight: 700; color: #D3D8DF; }
.lm .cs-links a:hover { color: var(--acc); }
.lm .cs-socials { display: flex; gap: 10px; }
.lm .cs-socials a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #F1F3F5; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background .15s ease, border-color .15s ease, color .15s ease; }
.lm .cs-socials a:hover { background: var(--acc); border-color: var(--acc); color: #fff; }
.lm .cs-socials svg { width: 20px; height: 20px; }
.lm .cs-legal { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; color: #6B7280; }
.lm .cs-legal a { color: #9AA1AD; }
.lm .cs-legal a:hover { color: #D3D8DF; }
