/* TGParser — лендинг. Токены и базовые стили в палитре сервиса
   (синий / белый / светлый фон), шрифт Inter, курсивный акцент — Instrument Serif. */

:root {
  --bg: #F6F7FC;
  --bg-white: #FFFFFF;
  --ink: #161A2E;
  --ink-2: #565C7A;
  --ink-3: #8A90A8;
  --line: #E4E6F2;
  --dark: #3343CC;
  --dark-2: #27349F;
  --dark-line: rgba(255,255,255,.3);
  --on-dark: rgba(255,255,255,.82);
  --on-dark-muted: rgba(255,255,255,.6);
  --accent: #FFFFFF;
  /* жёлтый акцент webapp — выделение в заголовке hero */
  --lemon: #FFE600;
  --accent-ink: #565C7A;
  --accent-ink-2: #3343CC;
  --green-bg: #EAECFB;
  --green: #3343CC;
  --radius: 16px;
  --radius-sm: 8px;
  --container: 1200px;
  --gutter: 24px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
button { font: inherit; }

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

/* типографика: clamp — плавно от телефона к десктопу */
h1 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.lead { font-size: clamp(15px, 1.3vw, 17px); line-height: 1.55; color: var(--ink-2); }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 16px;
}
.eyebrow-accent { color: var(--accent); display: flex; align-items: center; gap: 10px; }
.eyebrow-accent::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
.eyebrow-dark { color: var(--accent-ink-2); }
.accent { color: var(--lemon); }
.accent-italic { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 800; text-decoration: none; line-height: 1;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; opacity: .9; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-sm { padding: 12px 18px; font-size: 14px; font-weight: 700; background: var(--dark-2); border-color: var(--dark-line); }
.arrow { font-size: 0.9em; }

/* шапка */
.site-header { background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; text-decoration: none; color: inherit; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.brand-mark-sm { width: 24px; height: 24px; border-radius: 7px; }
img.brand-mark { display: inline-block; background: none; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.site-nav a { color: var(--on-dark); text-decoration: none; }
.site-nav a:hover { color: #fff; }
.site-nav .btn { color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* hero */
.hero { background: var(--dark); color: #fff; padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-lead { color: var(--on-dark); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; max-width: 560px; }
.hero-sub { color: var(--on-dark-muted); font-size: 15px; line-height: 1.55; max-width: 560px; }
.checks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; font-weight: 500; color: var(--on-dark); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks li::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23FFE600' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 7l3.5 3.5L12 4'/></svg>") no-repeat center / contain; }
.hero-shot { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.shot-caption { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
.shot-note { font-size: 12px; color: var(--on-dark-muted); text-align: center; }

/* плейсхолдеры скриншотов — заменяются на <img> */
.ph {
  border: 1.5px dashed #9AA0A6; border-radius: 12px; min-height: 240px; aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(135deg, #F7F8F4 0 14px, #EEF0EA 14px 28px);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
  color: var(--ink-2); font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.ph-dark { border-color: #4A4D52; border-radius: var(--radius); background: repeating-linear-gradient(135deg, #1A1B1E 0 14px, #202226 14px 28px); color: #A9AEA6; aspect-ratio: 4 / 3; }

/* светлая полоса под hero */
.strip { background: var(--accent); color: var(--ink); }
.strip-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 18px; padding-bottom: 18px; font-size: clamp(12px, 1.3vw, 18px); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; }

/* секции */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-white { background: var(--bg-white); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { max-width: 480px; }

/* карточки */
.card { background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* живой счётчик */
.counter-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.counter-copy { display: flex; flex-direction: column; }
.counter-copy h2 { margin-bottom: 16px; }
/* два счётчика рядом: заголовки на одной линии, цифры одного размера;
   активные — тёмные, новые — синие */
.counter-totals { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.counter-total { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.counter-total .card-title { min-height: 1.4em; }
.counter-total .num { font-size: clamp(44px, 5vw, 64px); }
.num-new { color: var(--green); }
.counter-total-new .card-title { color: var(--green); }
.counter-total .card-title-ink { color: var(--ink); }
.num { font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.counter-card { display: flex; flex-direction: column; gap: 22px; padding: 28px 32px; }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.card-title { font-size: 13px; font-weight: 700; color: var(--ink-2); }
/* строка статуса и сноска про период активности — вплотную друг к другу */
.card-notes { display: flex; flex-direction: column; gap: 4px; }
.card-note { font-size: 12px; color: var(--ink-3); min-height: 1.4em; line-height: 1.45; }
.link-btn { align-self: flex-start; background: none; border: 0; padding: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.filter { display: flex; flex-direction: column; gap: 10px; }
.filter-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill, .seg {
  border: 1px solid #D9DBD4; background: #fff; border-radius: 999px; padding: 10px 14px;
  font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; min-height: 36px;
}
.pill { color: var(--ink); }
.pill:hover { border-color: var(--ink); }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg { color: var(--ink-2); }
.seg.on { background: var(--green-bg); color: var(--green); border-color: var(--green-bg); }
.is-loading .num { opacity: .45; }

/* решение */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: clamp(32px, 5vw, 56px); }
.steps li { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.steps p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.step-num { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 24px; }
.flow figure { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.flow figcaption { font-size: 13px; font-weight: 700; }
.flow-arrow { color: var(--ink); display: flex; }
.result-banner { display: flex; align-items: center; gap: 14px; background: var(--green-bg); color: var(--green); border-radius: 12px; padding: 18px 24px; font-size: 16px; font-weight: 700; }

/* возможности */
.feature-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature { display: flex; flex-direction: column; gap: 14px; }
.feature p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--green-bg); color: var(--green); display: inline-flex; align-items: center; justify-content: center; }

/* SEO-тексты: пустая секция не занимает места */
.seo-text:not(:has(.prose > *)) { display: none; }
.prose { max-width: 800px; }
.prose h2 { margin-bottom: 20px; }
.prose h3 { margin: 28px 0 10px; }
.prose p, .prose li { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin-top: 12px; }

/* финальный CTA */
.cta { background: var(--accent); color: var(--ink); border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.cta h2 { font-size: clamp(28px, 3.8vw, 48px); letter-spacing: -0.03em; }
.cta .lead { color: var(--accent-ink); }
.cta-side { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta-note { font-size: 13px; font-weight: 600; color: var(--accent-ink); }

/* футер */
.site-footer { background: var(--dark); color: var(--on-dark); font-size: 13px; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.site-footer .brand { font-size: 16px; color: #fff; }
.footer-mail { color: #fff; text-decoration: none; font-weight: 600; }

/* ---- планшет ---- */
@media (max-width: 1024px) {
  .hero-grid, .counter-grid, .section-head, .cta-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .steps, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-content: center; }
}

/* ---- телефон ---- */
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .nav { height: 60px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 60px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark); border-top: 1px solid var(--dark-line); padding: 8px 16px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--dark-line); font-size: 16px; }
  .site-nav .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
  .hero-copy { gap: 18px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .strip-items { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 12px; }
  .counter-card { padding: 20px; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .result-banner { font-size: 15px; align-items: flex-start; }
  .cta-side .btn { width: 100%; justify-content: center; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; }
/* три тарифа сервиса: бесплатный, стандарт, персональный */
.plans-3 { grid-template-columns: repeat(3, 1fr); }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 22px; }
.plan-featured { border-color: var(--dark); box-shadow: 0 16px 40px -24px rgba(51,67,204,.5); }
.plan-badge { position: absolute; top: -11px; left: 22px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--dark); padding: 4px 10px; border-radius: 999px; }
.price { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.price .per { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan-limits { margin: 12px 0 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.plan-limits dt { font-size: 11.5px; color: var(--ink-3); }
.plan-limits dd { margin: 0; font-size: 14px; font-weight: 600; }
.plan .btn { width: 100%; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* hero: сменяющиеся скриншоты */
.hero-slides { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); background: #fff; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .6s ease; }
.hero-slides img.on { opacity: 1; }
.flow img { border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

/* увеличение скриншотов по клику */
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; }
.zoom img { transition: transform .15s ease, box-shadow .15s ease; }
.zoom:hover img { transform: translateY(-2px); box-shadow: 0 16px 36px -18px rgba(51,67,204,.5); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 92vw); width: 100%; }
.lightbox::backdrop { background: rgba(14,18,32,.72); }
.lightbox img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); cursor: zoom-out; }
.lightbox-caption { margin-top: 12px; text-align: center; color: #fff; font-size: 13px; }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }

/* согласие на cookie — полоса снизу до первого подтверждения */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  max-width: var(--container); margin: 0 auto;
  background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px -30px rgba(22, 26, 46, .55);
  padding: 18px 22px;
}
.cookie[hidden] { display: none; }
.cookie-text { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.cookie-accept { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 720px) {
  .cookie { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .cookie-accept { width: 100%; justify-content: center; }
}
