/* Landing /vkontakte/ (ИИ для группы ВКонтакте), part 1 — the first screen: base, shared
   pieces, first screen (2), product scene (2б), short definition (2в) and numbers (3), with their
   tablet and phone rules. This file is render-blocking; sections 4–11б live in
   vkontakte-landing-blocks.css and 12–20 in vkontakte-landing-sections.css, both loaded without
   blocking the first paint. Figma «Lidfly дизайн-система» → page «🎨 Лендинг /vkontakte · v2»:
   Desktop 1440 (7345:627) and Mobile 375 (7353:769). Colours are the --v2-* tokens from
   tokens.css; header, section row (page-nav.css), footer, buttons and tabs are the shared site
   components. */

/* Only the Cyrillic italic is used: one accent word per heading. */
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/playfair-display/playfair-display-cyrillic-400-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.vg-page {
  margin: 0;
  background: var(--v2-cream);
  color: var(--v2-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
main { overflow-x: clip; }
/* Anchors land below the sticky section row (52 px desktop, 48 px phone): Figma «20 · Шапка и меню сайта», V7. */
[id] { scroll-margin-top: 64px; }
.vg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 40; padding: 10px 14px; border-radius: var(--radius-element); background: var(--v2-ink); color: var(--v2-cream); }
.skip:focus { top: 16px; }
:is(main, .vg-sticky) svg { fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.vg-illus { pointer-events: none; user-select: none; -webkit-user-select: none; }
.vg-mob { display: none; }

/* Shared pieces */
.vg-wrap { width: min(calc(100% - 40px), 1200px); margin-inline: auto; }
.vg-sec { padding: 24px 0 112px; }
.vg-sec--y { padding-top: 112px; }

.vg-tone-green { --tone: var(--v2-lime-soft); --tone-ink: var(--v2-green); --tone-panel: var(--v2-lime); }
.vg-tone-butter { --tone: var(--v2-butter); --tone-ink: var(--v2-butter-ink); --tone-panel: var(--v2-butter); }
.vg-tone-lilac { --tone: var(--v2-lilac); --tone-ink: var(--v2-lilac-ink); --tone-panel: var(--v2-lilac); }
.vg-tone-peach { --tone: var(--v2-peach); --tone-ink: var(--v2-peach-ink); --tone-panel: var(--v2-peach); }
.vg-tone-sky { --tone: var(--v2-sky); --tone-ink: var(--v2-sky-ink); --tone-panel: var(--v2-sky); }
.vg-tone-mint { --tone: var(--v2-mint); --tone-ink: var(--v2-mint-ink); --tone-panel: var(--v2-mint); }
.vg-tone-rose { --tone: var(--v2-rose); --tone-ink: var(--v2-rose-ink); --tone-panel: var(--v2-rose); }

.vg-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.vg-head--center { align-items: center; text-align: center; }
.vg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--tone-ink, var(--v2-green));
  font-size: 13px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.vg-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.vg-h2 { margin: 0; color: var(--v2-ink); font-size: 46px; font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; }
.vg-h2 em,
.vg-final h2 em {
  font-family: var(--v2-font-accent);
  font-size: 1.087em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--tone-ink, var(--v2-green));
}
.vg-lead { margin: 0; color: var(--v2-ink-secondary); font-size: 19px; line-height: 1.5; }

.vg-ticks { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.vg-ticks--tight { gap: 18px; }
.vg-ticks li { display: flex; align-items: flex-start; gap: 14px; }
.vg-ticks li > div { min-width: 0; }
.vg-tick { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--tone); color: var(--tone-ink); }
.vg-tick svg { width: 17px; height: 17px; }
.vg-ticks p { margin: 4px 0 0; color: var(--v2-ink-secondary); font-size: 15px; line-height: 1.5; }
.vg-ticks .vg-ticks__title { margin: 0; color: var(--v2-ink); font-size: 17px; font-weight: 600; line-height: normal; }
.vg-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--v2-green); font-size: 14px; font-weight: 600; text-underline-offset: 3px; }
.vg-link svg { width: 14px; height: 14px; }

.vg-sticker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--v2-card);
  box-shadow: var(--v2-shadow-card);
  color: var(--v2-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
}
.vg-caption { margin: 0; color: var(--tone-ink); font-size: 12px; font-weight: 500; line-height: normal; }
.vg-pill { padding: 3px 8px; border-radius: var(--radius-pill); background: var(--v2-lime); color: var(--v2-forest); font-size: 12px; font-weight: 700; letter-spacing: 0; line-height: normal; }
.vg-tag { display: inline-flex; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--tone); color: var(--tone-ink); font-size: 12px; font-weight: 700; line-height: normal; white-space: nowrap; }

.vg-bubble { margin: 0; max-width: 100%; padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; }
.vg-bubble--s { padding-block: 10px; }
.vg-bubble--me { margin-left: auto; background: var(--v2-forest); color: var(--v2-ink-on-dark); }
.vg-bubble--ai { background: var(--v2-sand); color: var(--v2-ink); }
.vg-bubble--ok { background: var(--v2-lime-soft); color: var(--v2-ink); }
.vg-bubble--lift { box-shadow: var(--v2-shadow-card); }
.vg-w110 { width: 110px; } .vg-w180 { width: 180px; } .vg-w190 { width: 190px; } .vg-w200 { width: 200px; }
.vg-w220 { width: 220px; } .vg-w230 { width: 230px; } .vg-w240 { width: 240px; } .vg-w250 { width: 250px; }
.vg-w280 { width: 280px; } .vg-w330 { width: 330px; } .vg-w340 { width: 340px; } .vg-w380 { width: 380px; } .vg-w440 { width: 440px; }

.vg-ava { display: grid; place-items: center; flex: none; border-radius: 50%; font-weight: 700; line-height: normal; }
.vg-ava--30 { width: 30px; height: 30px; font-size: 13px; }
.vg-ava--36 { width: 36px; height: 36px; font-size: 15px; }
.vg-ava--peach { background: var(--v2-peach); color: var(--v2-peach-ink); }
.vg-ava--mint { background: var(--v2-mint); color: var(--v2-mint-ink); }
.vg-ava--sky { background: var(--v2-sky); color: var(--v2-sky-ink); }
.vg-ava--rose { background: var(--v2-rose); color: var(--v2-rose-ink); }
.vg-ava--lime { background: var(--v2-lime); color: var(--v2-forest); }
.vg-ava--butter { background: var(--v2-butter); color: var(--v2-butter-ink); }
.vg-ava--lilac { background: var(--v2-lilac); color: var(--v2-lilac-ink); }

.vg-bg-lime-soft { background: var(--v2-lime-soft); }
.vg-bg-butter { background: var(--v2-butter); }
.vg-bg-lilac { background: var(--v2-lilac); }
.vg-bg-sky { background: var(--v2-sky); }

.vg-bars { display: flex; align-items: flex-end; gap: 6px; width: 100%; }
.vg-bars i { flex: 1 1 0; border-radius: 6px 6px 0 0; background: var(--v2-sky); }
.vg-bars i.is-top { background: var(--v2-sky-ink); }
.vg-h26 { height: 26px; } .vg-h30 { height: 30px; } .vg-h34 { height: 34px; } .vg-h36 { height: 36px; } .vg-h40 { height: 40px; }
.vg-h42 { height: 42px; } .vg-h48 { height: 48px; } .vg-h54 { height: 54px; } .vg-h58 { height: 58px; } .vg-h66 { height: 66px; }
.vg-h70 { height: 70px; } .vg-h74 { height: 74px; }

/* VK post card: scene (300) and posts panel (330) */
.vg-post { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px; background: var(--v2-card); box-shadow: var(--v2-shadow-card); }
.vg-post__author { display: flex; align-items: center; gap: 10px; }
.vg-post .vg-ava { width: 36px; height: 36px; font-size: 15px; }
.vg-post__who { display: flex; flex-direction: column; gap: 1px; line-height: normal; white-space: nowrap; }
.vg-post__who b { font-size: 14px; }
.vg-post__who small { color: var(--v2-ink-muted); font-size: 12px; }
.vg-post__text { margin: 0; font-size: 14px; line-height: 1.45; }
.vg-post__photo { width: 100%; height: 220px; object-fit: cover; border-radius: 14px; }
.vg-post__reactions { display: flex; gap: 14px; margin: 0; color: var(--v2-ink-secondary); font-size: 13px; font-weight: 600; line-height: normal; }
.vg-post--scene { width: 300px; padding: 14px; border: 1px solid var(--v2-line); }
.vg-post--scene .vg-ava { width: 34px; height: 34px; font-size: 14px; }
.vg-post--scene .vg-post__text { font-size: 13px; }
.vg-post--scene .vg-post__photo { height: 190px; }

/* 2 · First screen */
.vg-hero { position: relative; padding: 104px 0 72px; text-align: center; }
.vg-hero__bg,
.vg-hero__tiles { position: absolute; top: 0; left: 50%; width: 1440px; margin-left: -720px; }
.vg-hero__bg {
  height: 760px;
  background-image: var(--v2-fade-to-cream), linear-gradient(90deg, var(--v2-grid) 1px, transparent 1px), linear-gradient(180deg, var(--v2-grid) 1px, transparent 1px);
  background-position: 0 100%, 48px 0, 0 32px;
  background-size: 100% 260px, 72px 100%, 100% 72px;
  background-repeat: no-repeat, repeat-x, repeat-y;
  pointer-events: none;
}
.vg-hero__tiles { height: 720px; }
.vg-tile { position: absolute; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--v2-line); border-radius: 18px; background: var(--v2-card); box-shadow: var(--v2-shadow-card); font-size: 26px; line-height: 1; }
.vg-tile img { width: 32px; height: 32px; }
.vg-tile--vk { left: 153px; top: 116px; transform: rotate(-6deg); }
.vg-tile--claude { left: 246px; top: 333px; transform: rotate(6deg); }
.vg-tile--chart { left: 113px; top: 517px; transform: rotate(-5deg); background: var(--v2-sky); }
.vg-tile--chatgpt { left: 1233px; top: 106px; transform: rotate(-6deg); }
.vg-tile--heart { left: 1154px; top: 325px; transform: rotate(-8deg); background: var(--v2-rose); }
.vg-tile--cal { left: 1268px; top: 512px; transform: rotate(4deg); background: var(--v2-butter); }
.vg-hero__sticker { position: absolute; left: 1231px; top: 462px; color: var(--v2-peach-ink); transform: translate(-50%, -50%) rotate(4deg); }
.vg-hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.vg-hero__ai { display: none; align-items: center; gap: 8px; }
.vg-hero__ai > span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--v2-line); border-radius: 12px; background: var(--v2-card); }
.vg-hero__ai img { width: 22px; height: 22px; }
.vg-hero__ai > span:first-child img { width: 20px; height: 20px; }
.vg-hero__ai small { color: var(--v2-ink-muted); font-size: 12px; font-weight: 500; line-height: normal; }
.vg-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px 6px 6px; border: 1px solid var(--v2-line); border-radius: var(--radius-pill); background: var(--v2-card); color: var(--v2-ink-secondary); font-size: 14px; font-weight: 500; line-height: normal; }
.vg-badge b { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--v2-lime); color: var(--v2-forest); font-size: 13px; font-weight: 700; }
.vg-h1 { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; color: var(--v2-ink); font-weight: 600; }
.vg-h1__main { font-size: min(76px, 5.3vw); line-height: 1.37; letter-spacing: -0.035em; white-space: nowrap; }
.vg-h1__main em { font-family: var(--v2-font-accent); font-size: 1.105em; font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--v2-green); }
.vg-h1__sub { color: var(--v2-ink-secondary); font-size: max(24px, min(40px, 2.8vw)); font-weight: 500; line-height: 1.37; letter-spacing: -0.02em; }
.vg-hero__lead { max-width: 720px; margin: 0; color: var(--v2-ink-secondary); font-size: 19px; line-height: 1.5; }
.vg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.vg-actions .btn { margin: 0; }
.vg-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.vg-trust li { display: inline-flex; align-items: center; gap: 6px; color: var(--v2-ink-secondary); font-size: 14px; font-weight: 500; line-height: normal; }
.vg-trust svg { width: 20px; height: 20px; color: var(--v2-green); }

/* 2б · Product scene */
.vg-scene-sec { position: relative; padding-bottom: 96px; }
.vg-scene { position: relative; height: 620px; overflow: hidden; border-radius: 36px; background: var(--v2-scene-gradient); }
.vg-scene__desk > * { position: absolute; }
.vg-scene__mob { display: none; }
.vg-window { left: 50%; top: 70px; width: 470px; margin-left: -235px; overflow: hidden; border: 1px solid var(--v2-line); border-radius: 24px; background: var(--v2-card); box-shadow: var(--v2-shadow-card); }
.vg-window__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--v2-line); color: var(--v2-ink-secondary); font-size: 13px; font-weight: 600; line-height: normal; }
.vg-window__chat { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px; }
.vg-scene .vg-post--scene { left: 16.8%; top: 250px; transform: translate(-50%, -50%) rotate(-4deg); }
.vg-ministat { left: 84.15%; top: 163px; width: 290px; display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--v2-line); border-radius: 22px; background: var(--v2-card); box-shadow: var(--v2-shadow-card); transform: translate(-50%, -50%) rotate(3deg); }
.vg-ministat p { margin: 0; line-height: normal; }
.vg-ministat__title { color: var(--v2-sky-ink); font-size: 13px; font-weight: 600; }
.vg-ministat__value { display: flex; align-items: baseline; gap: 8px; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.vg-miniplan { left: 85.63%; top: 405px; width: 280px; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px; background: var(--v2-butter); box-shadow: var(--v2-shadow-card); transform: translate(-50%, -50%) rotate(-3deg); }
.vg-miniplan__title { margin: 0; color: var(--v2-butter-ink); font-size: 13px; font-weight: 700; line-height: normal; }
.vg-miniplan__days { display: flex; gap: 6px; }
.vg-miniplan__days span { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 10px; background: var(--v2-card); color: var(--v2-butter-ink); font-size: 11px; font-weight: 600; line-height: normal; }
.vg-miniplan__days i { width: 8px; height: 8px; border-radius: 50%; background: var(--v2-green); }
.vg-miniplan__days .is-empty { border: 1px dashed var(--v2-butter-ink); background: var(--v2-butter); opacity: 0.6; }
.vg-miniplan__days .is-empty i { background: var(--v2-butter); }
.vg-scene__s1 { left: 17.11%; top: 563px; color: var(--v2-green); transform: translate(-50%, -50%) rotate(2deg); }
.vg-scene__s2 { left: 82.25%; top: 559px; background: var(--v2-lilac); color: var(--v2-lilac-ink); transform: translate(-50%, -50%) rotate(-2deg); }
.vg-scene__caption { left: 43.33%; top: 592px; margin: 0; color: var(--v2-ink-muted); font-size: 12px; font-weight: 500; line-height: normal; white-space: nowrap; }

/* 2в · Short definition: one sentence for search and AI answers, with the update date */
.vg-about-sec { padding: 8px 0 64px; }
.vg-about { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 960px; margin-inline: auto; padding: 40px 56px; border: 1px solid var(--v2-line); border-radius: 32px; background: var(--v2-card); text-align: center; }
.vg-about__text { margin: 0; color: var(--v2-ink); font-size: 22px; font-weight: 500; line-height: 34px; }
.vg-about__date { margin: 0; color: var(--v2-ink-muted); font-size: 14px; font-weight: 500; line-height: normal; }

/* 3 · Numbers (also used by the real example, 11б) */
.vg-nums-sec { padding-bottom: 112px; }
.vg-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.vg-num { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: 24px; line-height: normal; }
.vg-num__title { color: var(--v2-ink); font-size: 16px; font-weight: 700; }
.vg-num__sub { color: var(--v2-ink-secondary); font-size: 13px; }
.vg-num__value { margin-top: 32px; color: var(--v2-ink); font-size: 56px; font-weight: 600; letter-spacing: -0.03em; }

/* --- Tablet --- */
@media (max-width: 1200px) {
  .vg-hero__tiles { display: none; }
  .vg-hero__ai { display: flex; }
}

@media (max-width: 1100px) {
  .vg-scene { height: 480px; }
  .vg-scene__desk { display: none; }
  .vg-scene__mob { display: block; }
  .vg-scene__mob > * { position: absolute; }
  .vg-window--mob { left: 22px; top: 22px; width: 300px; margin-left: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 0; border-radius: 20px; }
  .vg-window__label { margin: 0; color: var(--v2-ink-muted); font-size: 11px; font-weight: 600; line-height: normal; }
  .vg-window--mob .vg-bubble { padding: 9px 12px; border-radius: 16px; font-size: 13px; }
  .vg-minipost { left: 77.7%; top: 378px; width: 150px; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; background: var(--v2-card); box-shadow: var(--v2-shadow-card); transform: translate(-50%, -50%) rotate(-5deg); }
  .vg-minipost img { width: 100%; height: 96px; object-fit: cover; border-radius: 10px; }
  .vg-minipost p { margin: 0; color: var(--v2-ink-secondary); font-size: 11px; font-weight: 600; line-height: normal; }
  .vg-scene__s3 { left: 68px; top: 448px; padding: 6px 11px 6px 10px; color: var(--v2-sky-ink); font-size: 12px; font-weight: 700; transform: translate(-50%, -50%) rotate(4deg); }
}

/* --- Phone (Figma Mobile 375) --- */
@media (max-width: 760px) {
  .vg-wrap { width: calc(100% - 32px); }
  .vg-desk,
  .vg-desk-icon,
  .vg-desk-block { display: none; }
  .vg-mob { display: inline; }
  .vg-sec { padding: 0 0 56px; }
  .vg-h2 { font-size: 30px; line-height: 1.1; }
  .vg-h2 em { font-size: 1.1em; }
  .vg-head { gap: 12px; }
  .vg-head--center { align-items: flex-start; text-align: left; }
  .vg-eyebrow { gap: 6px; font-size: 12px; }
  .vg-eyebrow::before { width: 7px; height: 7px; }
  .vg-lead { font-size: 16px; }
  .vg-ticks { gap: 16px; }
  .vg-ticks li { gap: 12px; }
  .vg-ticks li.vg-desk { display: none; }
  .vg-tick { flex-basis: 26px; width: 26px; height: 26px; }
  .vg-tick svg { width: 15px; height: 15px; }
  .vg-ticks .vg-ticks__title { font-size: 16px; }
  .vg-ticks p { margin-top: 3px; font-size: 14px; }
  .vg-caption { font-size: 11px; }
  .vg-actions .btn { --btn-height: 48px; --btn-pad-x: 24px; width: 100%; }

  .vg-hero { padding: 20px 0 14px; text-align: left; }
  .vg-hero__bg { display: none; }
  .vg-hero__inner { align-items: flex-start; gap: 14px; }
  .vg-badge { gap: 6px; padding: 4px 10px 4px 4px; font-size: 12px; }
  .vg-badge b { padding: 2px 8px; font-size: 11px; }
  .vg-h1 { align-items: flex-start; gap: 14px; }
  .vg-h1__main { font-size: 38px; line-height: 1.04; letter-spacing: -0.03em; white-space: normal; }
  .vg-h1__sub { font-size: 20px; line-height: 1.2; }
  .vg-hero__lead { font-size: 16px; }
  .vg-actions { width: 100%; }
  .vg-trust { flex-direction: column; gap: 6px; }
  .vg-trust li { font-size: 13px; }
  .vg-trust svg { width: 16px; height: 16px; }
  .vg-scene-sec { padding-bottom: 32px; }
  .vg-scene { border-radius: 28px; }
  .vg-window--mob { width: calc(100% - 44px); max-width: 300px; }

  .vg-about-sec { padding: 0 0 40px; }
  .vg-about { align-items: flex-start; gap: 12px; padding: 24px 20px; border-radius: 24px; text-align: left; }
  .vg-about__text { font-size: 16px; line-height: 25px; }
  .vg-about__date { font-size: 13px; }

  .vg-nums-sec { padding-bottom: 56px; }
  .vg-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px; }
  .vg-num { padding: 16px; border-radius: 20px; }
  .vg-num__title { font-size: 13px; }
  .vg-num__sub { font-size: 12px; line-height: 1.4; }
  .vg-num__value { margin-top: 0; padding-top: 18px; font-size: 40px; }
}
