/* TGMate — лендинг tgmate.io v2 (брендбук v4, 27.11). Onest; синій #2B6FF2, чорнило #0B1030, хмара #F3F6FF, туман #E3EBFF;
   сяйво — розмита пляма, одна на блок; персонаж з емоціями; справжні скріни в рамці ноутбука й телефона; патерн зі сліду й літачків. */
:root {
  --ink: #0b1030; --ink-2: #3a4160; --mute: #6b7393; --line: #e3e8f4; --line-2: #d2daec;
  --cloud: #f3f6ff; --mist: #e3ebff; --surface: #fff; --acc: #2b6ff2; --acc-strong: #1d4ed8; --acc-soft: #e3ebff;
  --tg: #2aabee; --violet: #6a5cff; --navy: #0b1030;
  --mint: #22c997; --amber: #ffb547; --coral: #ff5a4f;
  --glow: radial-gradient(circle at 38% 36%, #2aabee 0%, #2b6ff2 46%, #6a5cff 100%);
  --card-shadow: 0 1px 2px rgba(11, 16, 48, .04), 0 18px 40px -22px rgba(29, 78, 216, .35);
  --wrap: 1200px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.55 Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--mist); }
a { color: var(--acc); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; }
.wrap { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--mute); font-size: 14px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); background: var(--glow); pointer-events: none; z-index: 0; }

/* логотип */
.logo { display: block; height: 30px; width: auto; }
.logo .lg-m, .mark .lg-m { fill: var(--acc); }
.logo .lg-e, .mark .lg-e { fill: #fff; }
.logo .lg-w { fill: var(--ink); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 14px;
  font: 650 16px/1 Onest, system-ui, sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, box-shadow .15s, transform .06s, border-color .15s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 19px; height: 19px; stroke-width: 2; }
.btn-p { background: var(--acc); color: #fff; box-shadow: 0 12px 26px -12px rgba(43, 111, 242, .9); }
.btn-p:hover { background: var(--acc-strong); }
.btn-g { background: rgba(255, 255, 255, .78); color: var(--ink); border-color: var(--line-2); backdrop-filter: blur(6px); }
.btn-g:hover { border-color: var(--acc); color: var(--acc); }
.btn-w { background: #fff; color: var(--acc-strong); box-shadow: 0 16px 32px -14px rgba(5, 12, 60, .6); }
.btn-w:hover { background: var(--cloud); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; border-radius: 16px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 12px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .72); backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.top.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .88); }
.top-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.top-logo { display: block; flex: none; }
.top-nav { display: flex; gap: 2px; margin-right: auto; }
.top-nav a, .lnk { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.top-nav a:hover, .lnk:hover { color: var(--ink); background: var(--cloud); }
.top-act { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lang { font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 9px; margin-right: 4px; }
.lang:hover { border-color: var(--acc); color: var(--acc); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer; }
.burger .ic { width: 21px; height: 21px; }
.mnav { display: none; }

/* ── обкладинка ── */
.hero { position: relative; padding: 40px 0 0; overflow: hidden; }
.hero-blob { width: 980px; height: 760px; right: -120px; top: -160px; opacity: .95; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; min-height: 560px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(48px, 6.6vw, 92px); letter-spacing: -.05em; line-height: .96; }
.lead { margin-top: 24px; font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--mute); }
.hero-art { position: relative; z-index: 1; height: 560px; }
.hero-mate { position: absolute; width: 500px; height: auto; right: -10px; top: -40px; filter: drop-shadow(0 50px 60px rgba(13, 30, 120, .35));
  animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.hero-say { position: absolute; left: -40px; bottom: 6px; width: 370px; }

/* картка «персонаж у справі» */
.say { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: 22px; padding: 20px; box-shadow: var(--card-shadow); border: 1px solid rgba(11, 16, 48, .05); }
.say .mate { width: 64px; height: auto; flex: none; }
.hero-say .mate { width: 52px; }
.say-k { display: block; font-size: 12.5px; color: var(--mute); font-weight: 600; margin-bottom: 4px; }
.say b, .say h3 { display: block; font-size: 17px; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; }
.say p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 650;
  background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.chip .ic { width: 15px; height: 15px; stroke-width: 2.1; }
.chip-p { background: var(--acc); border-color: var(--acc); color: #fff; }

/* ноутбук зі скріном (брендбук: рамка #0B1030, верхні кути 28) */
.laptop { position: relative; z-index: 2; margin: 0; background: var(--navy); border-radius: 26px 26px 10px 10px; padding: 14px 14px 0;
  box-shadow: 0 50px 90px -40px rgba(11, 16, 48, .55), 0 0 0 1px rgba(11, 16, 48, .06); }
.laptop::after { content: ""; position: absolute; left: -3%; right: -3%; bottom: -14px; height: 14px; border-radius: 0 0 22px 22px;
  background: linear-gradient(#c9d3ea, #aab6d3); }
.laptop-scr { border-radius: 14px 14px 0 0; overflow: hidden; background: var(--cloud); aspect-ratio: 16 / 10; }
.laptop-scr img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.hero-laptop { margin: 24px auto 0; max-width: 1080px; }

/* ── цифри (слайд) ── */
.nums { padding: 120px 0 40px; }
.nums-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: end; }
.nums h2 { font-size: clamp(40px, 4.8vw, 64px); }
.nums-in > div > p { margin-top: 16px; color: var(--ink-2); max-width: 30em; }
.nums dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nums dt { font-size: clamp(36px, 4.2vw, 56px); font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.nums dd { margin: 10px 0 0; color: var(--mute); font-size: 15px; }

/* ── секції ── */
.sec { position: relative; padding: 110px 0; }
.sec-head { position: relative; z-index: 1; max-width: 760px; margin-bottom: 52px; }
.sec-head h2, .phone-copy h2, .ext-copy h2, .start h2, .safe-h, .faq-in h2 { font-size: clamp(36px, 4.4vw, 58px); }
.sec-head p { margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 36em; }

/* персонаж у справі */
#mate { background: var(--cloud); }
.says { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.says .say { padding: 24px; }

/* платформа: вкладки + скрін */
.plat { overflow: hidden; }
.plat-blob { width: 1100px; height: 620px; left: 50%; top: 420px; transform: translateX(-50%); opacity: .45; }
.tabs { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--cloud); border-radius: 18px; width: max-content; max-width: 100%; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 13px; background: transparent;
  font: 650 15px Onest, system-ui, sans-serif; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.tab .ic { width: 18px; height: 18px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--acc); color: #fff; box-shadow: 0 10px 22px -12px rgba(43, 111, 242, .9); }
.pane { position: relative; z-index: 2; }
.pane-t { margin: 22px 0 30px; font-size: 17px; color: var(--ink-2); max-width: 46em; min-height: 3.1em; }
.plat .laptop { max-width: 1080px; margin: 0 auto; }

/* телефон і бот */
.phone { background: var(--cloud); overflow: hidden; }
.phone-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.phone-copy > p { margin-top: 18px; font-size: 18.5px; color: var(--ink-2); }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; line-height: 1.45; }
.ticks .ic { width: 20px; height: 20px; color: var(--acc); margin-top: 2px; stroke-width: 2.3; }
.phones { position: relative; display: flex; justify-content: center; gap: 28px; padding: 20px 0; }
.phone-blob { width: 640px; height: 520px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .7; }
.phn { position: relative; z-index: 1; width: 280px; aspect-ratio: 390 / 844; border-radius: 44px; background: var(--navy); padding: 10px;
  box-shadow: 0 40px 70px -30px rgba(11, 16, 48, .6); flex: none; }
.phn > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 35px; }
.phn:not(.phn-bot) { margin-top: 48px; }
.phn-bot { display: flex; flex-direction: column; background: var(--navy); }
.phn-bot > * { background: #e9eefb; }
.bot-head { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px; border-radius: 35px 35px 0 0; background: #fff; }
.bot-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.bot-ava .mark { width: 26px; height: 26px; } .bot-ava .mark .lg-m { fill: #fff; } .bot-ava .mark .lg-e { fill: var(--ink); }
.bot-head b { display: block; font-size: 14px; } .bot-head span { font-size: 12px; color: var(--mute); }
.bot-feed { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; border-radius: 0 0 35px 35px; overflow: hidden; }
.bot-msg { display: flex; gap: 8px; align-items: flex-end; }
.bot-msg .mate { width: 34px; flex: none; }
.bot-b { background: #fff; border-radius: 16px 16px 16px 5px; padding: 10px 11px; font-size: 12px; line-height: 1.4; box-shadow: 0 1px 1px rgba(11, 16, 48, .06); }
.bot-b b { display: block; font-size: 12.5px; letter-spacing: -.01em; }
.bot-b p { color: var(--ink-2); margin-top: 3px; }
.bot-kb { display: flex; gap: 4px; margin-top: 8px; }
.bot-kb span { flex: 1; text-align: center; font-size: 11.5px; font-weight: 650; color: var(--acc-strong); background: var(--mist); border-radius: 8px; padding: 6px 4px; }

/* розширення на патерні */
.ext { background: var(--navy); color: #fff; overflow: hidden; }
.pattern { position: absolute; inset: 0; z-index: 0; }
.pattern svg { position: absolute; width: 100%; height: 100%; }
.ext::before { content: ""; position: absolute; width: 820px; height: 620px; right: -120px; top: 80px; border-radius: 50%; filter: blur(110px);
  background: var(--glow); opacity: .55; z-index: 0; }
.ext-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.ext-copy > p { margin: 20px 0 32px; color: #c9d0ee; font-size: 18.5px; }
.ext-note { margin: 18px 0 0 !important; font-size: 14.5px !important; color: #8c94bd !important; }
.brw { margin: 0; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .75); }
.brw-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #eef1f8; color: var(--ink); }
.dots { display: inline-flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #cfd6e8; }
.brw-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.brw-url .ic { width: 13px; height: 13px; color: var(--mute); }
.brw-ext { width: 28px; height: 28px; border-radius: 8px; background: var(--acc); display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(43, 111, 242, .28); }
.brw-ext .mark { width: 20px; height: 20px; } .brw-ext .mark .lg-m { fill: #fff; } .brw-ext .mark .lg-e { fill: var(--acc); }
.brw img { display: block; width: 100%; height: auto; }

/* як почати — діалог */
.start-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.chat { display: grid; gap: 14px; }
.ch-row { display: flex; gap: 12px; align-items: flex-end; }
.ch-row .mate { width: 48px; flex: none; }
.ch-b { position: relative; background: var(--cloud); border-radius: 22px 22px 22px 6px; padding: 16px 20px 16px 18px; font-size: 17px; line-height: 1.5; max-width: 34em;
  display: flex; gap: 12px; align-items: baseline; }
.ch-n { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--acc); color: #fff; font-weight: 800; font-size: 14px; display: inline-grid; place-items: center; transform: translateY(-1px); }
.ch-me { justify-content: flex-end; }
.ch-cta { background: var(--acc); color: #fff; border-radius: 22px 22px 6px 22px; font-weight: 650; text-decoration: none; align-items: center;
  box-shadow: 0 14px 28px -14px rgba(43, 111, 242, .9); transition: background .15s; }
.ch-cta:hover { background: var(--acc-strong); }
.ch-cta .ic { width: 20px; height: 20px; }

/* безпека — метрики-стиль (брендбук, стор. 14) */
.safe-sec { padding-top: 40px; }
.safe-h { margin-bottom: 40px; }
.safe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.safe li { border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.safe-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--mist); color: var(--acc-strong); display: grid; place-items: center; margin-bottom: 18px; }
.safe-ic .ic { width: 24px; height: 24px; stroke-width: 2; }
.safe b { display: block; font-size: 17px; letter-spacing: -.01em; }
.safe p { margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* FAQ */
#faq { padding-top: 40px; }
.faq-in { max-width: 880px; }
.faq-in h2 { margin-bottom: 36px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 2px; font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 22px; height: 22px; color: var(--mute); transition: transform .2s; flex: none; }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--acc); }
.faq summary:hover { color: var(--acc); }
.faq details p { padding: 0 2px 24px; color: var(--ink-2); max-width: 46em; }

/* фінал: «Працюємо разом.» */
.end { position: relative; overflow: hidden; padding: 150px 0 170px; text-align: center; color: #fff; background: #fff; }
.end-blob { width: 1240px; height: 560px; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: blur(70px); opacity: 1; }
.end-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.end img { width: 300px; height: auto; filter: drop-shadow(0 40px 50px rgba(13, 30, 120, .4)); }
.end h2 { font-size: clamp(44px, 6vw, 84px); margin-top: 12px; }
.end p { margin: 18px 0 34px; font-size: 19px; opacity: .92; max-width: 32em; }

/* футер */
.foot { padding: 28px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot .logo { height: 26px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-right: auto; }
.foot nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.foot nav a:hover { color: var(--acc); }

/* ── адаптив ── */
@media (max-width: 1080px) {
  .top-nav { display: none; }
  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-art { height: 460px; max-width: 620px; width: 100%; margin: 0 auto; }
  .hero-mate { width: 420px; right: 0; }
  .hero-blob { width: 760px; height: 640px; right: -260px; top: 260px; }
  .nums-in, .phone-in, .ext-in, .start-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .safe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top-in { height: 62px; gap: 12px; }
  .top-logo .logo { height: 26px; }
  .lnk, .top-act .btn-sm { display: none; }
  .burger { display: inline-flex; }
  .mnav { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px 18px; border-top: 1px solid var(--line); background: #fff; }
  .mnav[hidden] { display: none; }
  .mnav a { color: var(--ink); text-decoration: none; font-weight: 650; font-size: 17px; padding: 12px 4px; }
  .mnav .btn { margin-top: 10px; color: #fff; }
  .hero { padding-top: 24px; }
  .hero h1 { font-size: clamp(44px, 13vw, 58px); }
  .lead { font-size: 17px; margin-top: 18px; }
  .hero-cta { flex-direction: column; margin-top: 26px; }
  .hero-cta .btn { width: 100%; }
  .hero-art { height: 440px; }
  .hero-mate { width: 300px; right: 50%; transform: translateX(50%); top: 0; animation: none; }
  .hero-say { left: 0; right: 0; width: auto; bottom: 0; }
  .hero-blob { width: 520px; height: 520px; right: -160px; top: 380px; }
  .laptop { border-radius: 16px 16px 8px 8px; padding: 6px 6px 0; }
  .laptop::after { bottom: -8px; height: 8px; }
  .laptop-scr { border-radius: 10px 10px 0 0; }
  .nums { padding: 80px 0 24px; }
  .nums dl { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .nums dl > div { display: flex; align-items: baseline; gap: 14px; }
  .nums dd { margin: 0; }
  .sec { padding: 76px 0; }
  .sec-head { margin-bottom: 32px; }
  .sec-head p { font-size: 17px; }
  .says { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .says .say, .say { padding: 18px; gap: 14px; }
  .say .mate { width: 48px; }
  .tabs { width: auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; border-radius: 0; padding: 6px 16px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .pane-t { font-size: 16px; min-height: 0; margin: 18px 0 22px; }
  .phones { gap: 14px; }
  .phn { width: calc(50% - 7px); border-radius: 30px; padding: 6px; }
  .phn > img { border-radius: 25px; }
  .bot-head { border-radius: 25px 25px 0 0; padding: 12px 10px 8px; }
  .bot-feed { border-radius: 0 0 25px 25px; padding: 8px 6px; gap: 6px; }
  .bot-msg .mate { display: none; }
  .bot-b { padding: 8px; font-size: 10.5px; } .bot-b b { font-size: 11px; }
  .bot-kb span { font-size: 10px; padding: 5px 2px; }
  .phn:not(.phn-bot) { margin-top: 28px; }
  .ch-b { font-size: 16px; padding: 14px 16px; }
  .ch-row .mate { width: 38px; }
  .safe { grid-template-columns: minmax(0, 1fr); }
  .faq summary { font-size: 17px; padding: 18px 2px; }
  .end { padding: 80px 0 90px; }
  .end img { width: 200px; }
  .end-blob { width: 640px; height: 620px; }
  .end .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
