/* ============================================================
   Jyldamlab — одностраничный SEO-лендинг
   HTML / CSS / JS, без библиотек
   ============================================================ */

:root {
  --ink: #0F1B2D;
  --ink-soft: #45536B;
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --line: #E3E9F2;
  --tg: #2AABEE;
  --violet: #6B4EFF;
  --grad: linear-gradient(120deg, #2AABEE 0%, #6B4EFF 100%);
  --wa: #25D366;
  --wa-dark: #1DA851;
  --ok-bg: #E7F8EE;
  --ok-ink: #157347;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 30px rgba(15, 27, 45, .08);
  --shadow-lg: 0 18px 50px rgba(42, 90, 200, .16);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
#top { scroll-margin-top: 0; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: inline-block; vertical-align: middle; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }

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

/* ---------- Типографика ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(28px, 4.4vw, 46px); margin-bottom: 20px; }
h2 { font-size: clamp(22px, 3.2vw, 34px); margin-bottom: 18px; }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 18px; line-height: 1.35; }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--violet);
  background: rgba(107, 78, 255, .08);
  border: 1px solid rgba(107, 78, 255, .18);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 18px;
}

.section__lead { max-width: 780px; color: var(--ink-soft); margin-bottom: 14px; }
.section__note {
  max-width: 780px; color: var(--ink-soft);
  background: var(--surface); border-left: 3px solid var(--violet);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px; margin: 18px 0 30px;
}
.section__note strong { color: var(--ink); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 15px 28px; border-radius: 100px;
  cursor: pointer; border: 0;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:focus-visible { outline: 3px solid var(--tg); outline-offset: 3px; }

.btn--primary { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, .35); }
.btn--primary:hover { background: var(--wa-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 211, 102, .4); }

.btn--ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--tg); color: var(--tg); transform: translateY(-2px); }

.btn--light { background: #fff; color: var(--ink); box-shadow: 0 10px 26px rgba(0, 0, 0, .2); }
.btn--light:hover { transform: translateY(-2px); }

.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn--full { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 249, 252, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo__mark { flex-shrink: 0; }
.logo__text { font-family: var(--font-display); font-weight: 600; font-size: 19px; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 26px; font-weight: 500; font-size: 15.5px; }
.nav__list a { color: var(--ink); transition: color .2s; }
.nav__list a:hover { color: var(--tg); }

.header__phone { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); white-space: nowrap; transition: color .2s; }
.header__phone:hover { color: var(--tg); }

.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 80px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero__subtitle { font-size: 19px; font-weight: 500; margin-bottom: 14px; }
.hero__text { color: var(--ink-soft); margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero__bullets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; font-size: 15px; color: var(--ink-soft); }
.hero__bullets li { position: relative; padding-left: 24px; }
.hero__bullets li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
}

/* ---------- Signature: Telegram-чат ---------- */
.hero__visual { position: relative; }
.hero__glow {
  position: absolute; inset: -14%;
  background: radial-gradient(ellipse closest-side at 60% 40%, rgba(42, 171, 238, .18), transparent),
              radial-gradient(ellipse closest-side at 30% 70%, rgba(107, 78, 255, .16), transparent);
  z-index: 0; pointer-events: none;
}
.chat {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 400px; margin: 0 auto;
}
.chat__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--grad);
  color: #fff;
}
.chat__avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .2);
}
.chat__name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.chat__status { font-size: 12.5px; opacity: .85; }

.chat__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 320px; }

.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14.5px; line-height: 1.45;
  opacity: 0;
  transform: translateY(12px);
  animation: msg-in .5s ease forwards;
  animation-delay: var(--d, 0s);
}
.msg--bot { background: #F0F4FA; border-bottom-left-radius: 6px; align-self: flex-start; }
.msg--user { background: var(--grad); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg--ok { background: var(--ok-bg); color: var(--ok-ink); font-weight: 600; }
.msg--btns {
  display: flex; flex-wrap: wrap; gap: 8px;
  background: none; padding: 0; max-width: 100%;
  align-self: flex-start;
}
.msg--btns span {
  font-size: 13.5px; font-weight: 500;
  color: var(--tg);
  border: 1.5px solid rgba(42, 171, 238, .45);
  border-radius: 100px;
  padding: 7px 13px;
  background: #fff;
}

@keyframes msg-in { to { opacity: 1; transform: translateY(0); } }

/* ---------- Секции ---------- */
.section { padding: 76px 0; }
.section--tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__cta { margin-top: 40px; text-align: center; }

/* ---------- Карточки ---------- */
.grid { display: grid; gap: 20px; margin-top: 36px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.section--tint .card { background: var(--bg); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(42, 171, 238, .4); }
.card h3 { margin: 16px 0 8px; }
.card p { font-size: 15px; color: var(--ink-soft); }

.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(42, 171, 238, .1);
  color: var(--tg);
}
.card:nth-child(even) .card__icon { background: rgba(107, 78, 255, .1); color: var(--violet); }

/* ---------- Цена ---------- */
.price { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; margin-top: 10px; }
.price__card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.price__card .check-list, .price__card .tag-list { flex: 1; margin-bottom: 0; }
.price__card .btn--full { margin-top: 32px; }
.price__card--base { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.price__label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.price__value { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 34px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price__value--soft { background: none; color: var(--ink); font-size: clamp(20px, 2.4vw, 26px); }
.price__caption { color: var(--ink-soft); font-size: 15px; margin: 6px 0 20px; }

.check-list { margin-bottom: 26px; }
.check-list li { position: relative; padding: 6px 0 6px 30px; font-size: 15.5px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok-bg);
}
.check-list li::after {
  content: ""; position: absolute; left: 4px; top: 13px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--ok-ink); border-bottom: 2px solid var(--ok-ink);
  transform: rotate(-45deg);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  font-size: 14px; font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 14px;
  color: var(--ink-soft);
  transition: border-color .2s, color .2s;
}
.tag-list li:hover { border-color: var(--violet); color: var(--violet); }

/* ---------- Типы ботов ---------- */
.pill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
.pill-grid li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pill-grid li:hover { transform: translateY(-3px); border-color: rgba(42, 171, 238, .5); box-shadow: var(--shadow); }
.pill-grid h3 { font-size: 15.5px; font-weight: 500; }

/* ---------- Функционал ---------- */
.feature-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.feature-list li {
  font-size: 15px; font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 18px;
  transition: border-color .2s, color .2s, transform .2s;
}
.feature-list li:hover { border-color: var(--tg); color: var(--tg); transform: translateY(-2px); }

/* ---------- Этапы ---------- */
.steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 40px;
  counter-reset: step;
}
.step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; font-size: 16.5px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- SEO-текст ---------- */
.seo-text p { color: var(--ink-soft); margin-bottom: 14px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 30px; }
.faq__item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq__item[open] { border-color: rgba(107, 78, 255, .4); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 16.5px; }
.faq__item summary::after {
  content: ""; flex-shrink: 0;
  width: 12px; height: 12px;
  border-right: 2.5px solid var(--ink-soft); border-bottom: 2.5px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform .25s;
  margin-top: -4px;
}
.faq__item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq__item > p { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Финальный CTA ---------- */
.final-cta {
  background: var(--grad);
  color: #fff;
  padding: 84px 0;
  text-align: center;
}
.final-cta h2 { margin-bottom: 16px; }
.final-cta p { max-width: 640px; margin: 0 auto 30px; opacity: .92; }

/* ---------- Footer ---------- */
.footer { background: #0F1B2D; color: #B8C4D6; padding: 56px 0 0; font-size: 15px; }
.footer .logo { color: #fff; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__brand p { margin-top: 14px; max-width: 320px; }
.footer__nav ul, .footer__contacts ul { display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__contacts-title { font-weight: 600; color: #fff; margin-bottom: 12px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; padding-bottom: 20px; font-size: 14px; color: #7C8AA0; }

/* ---------- Фиксированная WhatsApp-кнопка (mobile) ---------- */
.wa-fab {
  display: none;
  position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 90;
  align-items: center; justify-content: center; gap: 10px;
  background: var(--wa); color: #fff;
  font-weight: 600; font-size: 16px;
  padding: 15px;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
}

/* ---------- Появление блоков при скролле ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .msg { animation: none; opacity: 1; transform: none; }
  .btn, .card, .pill-grid li, .feature-list li { transition: none; }
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .pill-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { max-width: 420px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .hero__bullets { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pill-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }

  .header__cta { display: none; }
  .nav__burger { display: block; }
  .nav__list {
    display: none;
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 0;
  }
  .nav__list.is-open { display: flex; }
  .nav__list a { display: block; padding: 13px 24px; }

  .wa-fab { display: flex; }
  body { padding-bottom: 76px; } /* место под фиксированную кнопку */
}

@media (max-width: 480px) {
  .grid--4, .grid--3, .steps, .pill-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .btn { padding: 14px 22px; }
  .chat__body { min-height: 280px; }
  .header__phone-number { display: none; }
}
