/* Новая версия лендинга Vizual Pro. Палитра бренда, композиция в духе современного SaaS. */

:root {
  --primary: #0067ff;
  --primary-hover: #0052d6;
  --primary-soft: #e7f6ff;
  --accent: #8eb4ff;
  --accent-strong: #c5d8ff;
  --foreground: #0f172a;
  --muted-fg: #5b6b80;
  --body: #364151;
  --background: #ffffff;
  --muted: #f4f9ff;
  --card: #ffffff;
  --border: #d7e6f7;
  --dark: #070614;
  --telegram: #229ed9;
  --success: #0f9d58;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 40px -18px rgba(0, 103, 255, 0.28);
  --radius: 1.5rem;
  --header-h: 80px;
  --container: 1160px;
  --font: "Onest", "Rubik", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  padding-inline: max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right));
  box-sizing: border-box;
}

.kicker {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

.section {
  padding: 72px 0;
  position: relative;
}

.section--muted {
  background: var(--muted);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
}

.section-head p {
  margin-top: 10px;
  color: var(--muted-fg);
  font-size: 1.125rem;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

.btn svg,
.btn-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn:hover svg,
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(0, 103, 255, 0.55);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #fff;
  color: var(--foreground);
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px -12px rgba(15, 23, 42, 0.28);
}

.btn-secondary:hover {
  background: #eaf3ff;
  box-shadow: 0 10px 26px -12px rgba(0, 103, 255, 0.28);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1.05rem;
}

.btn-md {
  padding: 12px 20px;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.875rem;
}

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--foreground);
  line-height: 1;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px #d4a537, 0 8px 18px -8px rgba(212, 165, 55, 0.55);
}

.logo-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  /* оптический центр относительно квадрата логотипа */
  transform: translateY(3px);
}

.logo-name {
  font-weight: 900;
  color: var(--foreground);
}

.logo-pro {
  font-weight: 700;
  color: #3d8bff;
}

.nav {
  display: flex;
  gap: 6px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted-fg);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.nav a:hover,
.nav a.is-active {
  color: var(--primary);
  background: rgba(0, 103, 255, 0.08);
  border-color: rgba(0, 103, 255, 0.16);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--foreground);
  position: relative;
  margin: 0 auto;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

/* Герой */
.hero {
  position: relative;
  padding: 40px 0 64px;
  overflow: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(142, 180, 255, 0.42), transparent 60%),
    radial-gradient(700px 380px at 92% 12%, rgba(0, 103, 255, 0.14), transparent 55%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero-highlight {
  display: inline-block;
  background: var(--accent-strong);
  color: var(--foreground);
  padding: 0.02em 0.28em 0.06em;
  border-radius: 0.35em;
  line-height: 1.15;
}

.hero-lead {
  margin: 20px 0 26px;
  font-size: 1.15rem;
  color: var(--muted-fg);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-gift {
  margin: 0;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
}

.hero-gift-ico {
  width: 1em;
  height: 1em;
  color: var(--primary);
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  line-height: 0;
  transform: translateY(-0.02em);
}

.hero-gift-ico svg {
  display: block;
  width: 1em;
  height: 1em;
  overflow: visible;
}

.hero-gift-text {
  flex: 0 1 auto;
  min-width: 0;
  line-height: 1.3;
  text-wrap: balance;
}

/* УТП: цифра и заголовок в одной строке по одной базовой линии */
.hero-utp {
  margin-top: 24px;
  display: grid;
  gap: 14px;
  max-width: 34rem;
  padding-bottom: 8px;
}

.hero-utp .utp {
  padding: 0;
  border: 0;
  margin: 0;
}

.hero-utp .utp-head {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: grid;
  grid-template-columns: 1.85rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.45rem;
  color: var(--foreground);
}

.hero-utp .utp-label {
  margin: 0 !important;
  width: auto;
  flex: none;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--primary);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  display: block;
  text-align: left;
}

.hero-utp .utp-title {
  display: block;
  line-height: 1.2;
}

.hero-utp p {
  margin: 0;
  padding-left: calc(1.85rem + 0.45rem);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: none;
  color: var(--muted-fg);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.hero-bot-img {
  display: none;
}

/* УТП теперь в герое */
.utp-strip,
.utp-grid {
  display: none;
}

.utp-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.utp h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.utp p {
  margin: 0;
  color: var(--muted-fg);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 22rem;
}

.sticker {
  display: none;
}

.gift-chip,
.social-proof,
.avatar-stack {
  display: none !important;
}

.float-chip {
  display: flex;
}

.glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(0, 103, 255, 0.16);
  filter: blur(50px);
}

.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  height: 620px;
  background: #111827;
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.45);
  transform: perspective(1000px) rotateY(-8deg);
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 108px;
  height: 22px;
  background: #111827;
  border-radius: 0 0 14px 14px;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  height: 100%;
  background: linear-gradient(#dcecff, #c9def8);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tg-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 36px 14px 10px;
  background: #517da2;
  color: #fff;
}

.tg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px #d4a537;
  background: #0b1220;
}

.tg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tg-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.tg-status {
  font-size: 0.72rem;
  opacity: 0.9;
}

.tg-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 5px;
}

.tg-chat {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.bubble-user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.bubble-bot {
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: 6px;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.file-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 800;
}

.bubble-user .file-icon {
  background: rgba(255, 255, 255, 0.22);
}

.bubble-user .file-row em {
  color: rgba(255, 255, 255, 0.85);
}

.card-preview {
  width: 148px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #eef4ff, #fff);
  border: 1px solid #d7e4f7;
}

.card-preview-photo {
  height: 62%;
  background: linear-gradient(180deg, #dbeafe, #0067ff);
  position: relative;
  display: grid;
  place-items: center;
}

.card-preview-photo svg {
  width: 54px;
  height: 54px;
  color: #fff;
}

.card-preview-photo::after {
  content: "WB";
  position: absolute;
  top: 8px;
  left: 8px;
  background: #cb11ab;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
}

.card-preview-meta {
  padding: 8px;
}

.card-preview-meta b {
  display: block;
  font-size: 0.68rem;
}

.card-preview-meta span {
  font-size: 0.62rem;
  color: var(--muted-fg);
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 10px 14px 10px 10px;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.float-chip small {
  display: block;
  color: var(--muted-fg);
  font-weight: 600;
  font-size: 0.7rem;
  margin-top: 1px;
}

.chip-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 0;
}

.chip-ico svg {
  display: block;
  width: 16px;
  height: 16px;
}

.chip-ctr .chip-ico {
  background: #e8f8ef;
  color: #0f9d58;
}

.chip-fast .chip-ico {
  background: #e7f0ff;
  color: var(--primary);
}

.chip-ctr {
  top: 24px;
  right: 8px;
}

.chip-fast {
  bottom: 52px;
  left: 0;
}

.chat-day {
  align-self: center;
  background: rgba(15, 23, 42, 0.08);
  color: var(--muted-fg);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 2px;
}

.msg-time {
  display: block;
  margin-top: 6px;
  font-size: 0.62rem;
  opacity: 0.7;
  text-align: right;
}

.bubble-bot .msg-time {
  color: var(--muted-fg);
}

.file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  text-align: left;
}

.file-row strong {
  display: block;
  font-size: 0.72rem;
}

.file-row em {
  font-style: normal;
  font-size: 0.62rem;
  opacity: 0.8;
}

.card-preview {
  margin-top: 8px;
}

/* Примеры — бесшовные полосы влево/вправо + коллажи */
.showcase {
  overflow: hidden;
  padding-bottom: 28px;
}

.marquee-stack {
  display: flex;
  flex-direction: column;
  /* подписи верхней (снизу) и нижней (сверху) лент сходятся в центре */
  gap: 6px;
  margin-top: 4px;
}

.marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.marquee-track {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

/* верхний ряд: прижимаем к низу, чтобы подписи сходились с нижним рядом */
.marquee--left .marquee-track {
  align-items: flex-end;
  animation: marquee-left 64s linear infinite;
}

.marquee--right .marquee-track {
  animation: marquee-right 72s linear infinite;
}

.marquee--collage .marquee-track {
  /* нижний ряд: подписи сверху — flex-start; 10×2 — сдвиг на половину ленты */
  align-items: flex-start;
  animation-name: marquee-right-half;
  animation-duration: 110s;
  gap: 10px;
}

@keyframes marquee-left {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-33.333%, 0, 0);
  }
}

@keyframes marquee-right {
  from {
    transform: translate3d(-33.333%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

/* Нижняя лента: 2 копии → −50% */
@keyframes marquee-right-half {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.work-card {
  width: 168px;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  border: none;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  position: relative;
  flex-shrink: 0;
  transition: transform 0.35s ease;
  background: #0f172a;
}

.work-single-item .work-card:hover,
.work-collage-item .work-card:hover {
  transform: translateY(-2px);
}

.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Верхняя лента: подпись снаружи снизу */
.work-single-item {
  flex-shrink: 0;
  width: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.work-single-item .work-card {
  width: 100%;
}

/* Нижняя лента: один файл-коллаж 2×2, подпись сверху */
.work-collage-item {
  flex-shrink: 0;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* specificity выше .work-card width в media — иначе коллаж сжимается до ширины одиночной */
.work-card.work-card--collage {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: none;
  border-radius: 18px;
  display: block;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  background: #0f172a;
}

.work-card--collage .work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-caption {
  margin: 0;
  padding: 0 4px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--muted-fg);
  text-align: center;
  flex-shrink: 0;
  overflow: visible;
  /* без min-height: иначе у нижнего ряда пустота между текстом и карточкой */
  word-break: break-word;
  width: 100%;
}

.showcase-cta {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* Как это работает */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
}

.steps::before {
  content: none;
}

.step {
  text-align: left;
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 0;
}

.step h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  margin: 0 0 6px;
  color: var(--foreground);
  line-height: 1.25;
}

.step-badge {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--foreground);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.step-badge svg {
  display: block;
  width: 20px;
  height: 20px;
  overflow: visible;
}

.step p {
  margin: 0;
  padding-left: calc(36px + 12px);
  color: var(--muted-fg);
  line-height: 1.4;
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.glass {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.bento-card {
  padding: 22px;
  min-height: 160px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}

.bento-card.wide {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 0;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(142, 180, 255, 0.45), transparent 40%),
    #fff;
}

.icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--foreground);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0;
  line-height: 0;
  grid-column: 1;
  grid-row: 1;
}

.icon-tile svg {
  display: block;
  width: 22px;
  height: 22px;
}

.bento-card h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.25;
}

.bento-card p {
  grid-column: 1 / -1;
  color: var(--muted-fg);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 12px 0 0;
}

.save-line {
  grid-column: 1 / -1;
  margin-top: 14px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
}

.save-line em {
  color: var(--success);
  font-style: normal;
}

.mid-cta {
  margin: 28px auto 0;
  max-width: 760px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gift-tile {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--accent-strong);
  color: var(--primary);
  display: grid;
  place-items: center;
  transform: rotate(-6deg);
  flex-shrink: 0;
  line-height: 0;
}

.gift-tile svg {
  display: block;
  width: 28px;
  height: 28px;
}

/* Сравнение */
.compare-table {
  overflow: hidden;
}

.compare-table table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-fg);
}

.compare-table tr.best {
  background: rgba(142, 180, 255, 0.18);
  border-left: 4px solid var(--primary);
}

.bad {
  color: #dc2626;
  font-weight: 700;
}

.good {
  color: var(--success);
  font-weight: 700;
}

.compare-mobile {
  display: none;
  grid-template-columns: 1fr;
  gap: 14px;
}

.compare-card {
  padding: 20px;
}

.compare-card.best {
  border: 2px solid var(--primary);
  background: rgba(142, 180, 255, 0.16);
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.compare-notes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.note {
  padding: 18px;
}

.note h4 {
  margin: 10px 0 6px;
  font-size: 1rem;
}

.note p {
  color: var(--muted-fg);
  font-size: 0.92rem;
}

/* Инструменты */
.tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tool-card {
  padding: 28px 24px 24px;
  position: relative;
  overflow: visible;
}

.tool-card.featured {
  border: 2px solid var(--primary);
}

.tool-card.featured h3 {
  padding-right: 48px;
}

.ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tool-card h3 {
  font-size: 1.35rem;
  margin: 8px 0 12px;
  max-width: 16ch;
}

.tool-card ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--muted-fg);
}

.tool-card li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}

.tool-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.faq-item {
  padding: 8px 20px 8px 16px;
}

.faq-item[open] {
  border-color: rgba(0, 103, 255, 0.28);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--foreground);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.faq-ico svg {
  display: block;
  width: 20px;
  height: 20px;
}

.faq-item p {
  padding: 0 0 16px 54px;
  color: var(--muted-fg);
}

/* Telegram-блок */
.tg-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.tg-visual {
  min-height: auto;
}

.tg-copy {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}

.tg-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 158, 217, 0.1);
  color: var(--telegram);
  border: 1px solid rgba(34, 158, 217, 0.2);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.tg-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.tg-lead {
  margin: 0;
  color: var(--muted-fg);
  font-size: 1.1rem;
  line-height: 1.5;
}

.reason-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  width: 100%;
}

.reason {
  padding: 16px;
}

.reason h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.reason p {
  color: var(--muted-fg);
  font-size: 0.88rem;
}

.tg-cta {
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

/* Блог */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.blog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(0, 103, 255, 0.35);
}

.blog-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  height: auto;
  overflow: hidden;
  background: linear-gradient(135deg, #e7f6ff, #c5d8ff);
  flex-shrink: 0;
}

.blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.b-cover-1 { background: linear-gradient(135deg, #0067ff, #8eb4ff); }
.b-cover-2 { background: linear-gradient(135deg, #0f172a, #0067ff); }
.b-cover-3 { background: linear-gradient(135deg, #38bdf8, #0067ff); }

.blog-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  background: #fff;
  position: relative;
  z-index: 1;
}

.blog-body h3 {
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.35;
  color: var(--foreground);
  letter-spacing: -0.02em;
  margin: 0;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
  color: var(--muted-fg);
  font-size: 0.85rem;
  font-weight: 600;
}

.blog-meta time {
  margin-left: auto;
  white-space: nowrap;
}

.blog-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-views svg {
  flex-shrink: 0;
  opacity: 0.75;
  color: var(--muted-fg);
}

.more-link {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 28px;
  font-weight: 700;
  color: var(--primary);
}

/* Финальный CTA */
.final-cta {
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.final-cta p {
  color: var(--muted-fg);
  font-size: 1.15rem;
  margin-bottom: 24px;
}

.final-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Подвал */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h4 {
  margin-bottom: 12px;
}

.footer-grid a:not(.logo),
.footer-grid p {
  color: var(--muted-fg);
  display: block;
  margin-bottom: 8px;
}

/* Логотип в ряд: марка слева, VIZUAL PRO справа — как в шапке и блоге */
.site-footer .logo {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
  margin-bottom: 12px;
  white-space: nowrap;
}

.site-footer .logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.site-footer .logo-text {
  display: inline-flex;
  align-items: center;
}

.footer-bottom {
  margin-top: 32px;
  color: var(--muted-fg);
  font-size: 0.85rem;
}

/* Cookie — один баннер справа снизу; старый WP-попап скрыт */
#custom-cookie-popup,
#close-cookie-popup {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.cookie {
  position: fixed;
  left: auto;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 80;
  width: min(420px, calc(100% - 32px));
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 14px 16px;
  display: none;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  transform: none;
}

.cookie.is-visible {
  display: flex;
}

.cookie p {
  font-size: 0.8rem;
  color: var(--body);
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.cookie a {
  text-decoration: underline;
  font-weight: 700;
}

.cookie .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Мобильное меню */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  background: #fff;
  z-index: 40;
  padding: 12px 20px 24px;
  flex-direction: column;
  gap: 0;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
}

.mobile-nav .btn {
  margin-top: 14px;
  text-align: center;
  justify-content: center;
}

@media (max-width: 980px) {
  .nav,
  .header-cta .btn {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  /* В бургере и герое — без «Как это работает» */
  .hide-on-mobile,
  .mobile-nav a[href="#how"],
  .hero-actions .btn-secondary {
    display: none !important;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-actions .btn-primary {
    margin-inline: auto;
    width: min(100%, 320px);
    padding-inline: 20px;
  }

  .hero-gift {
    justify-content: center;
    text-align: left;
    margin-inline: auto;
  }

  .hero-gift-text {
    text-align: left;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-utp {
    margin-top: 18px;
    gap: 10px;
    max-width: none;
    text-align: left;
  }

  .hero-grid,
  .tg-grid,
  .footer-grid,
  .faq-grid,
  .tools,
  .blog-grid,
  .steps,
  .reason-grid {
    grid-template-columns: 1fr;
  }

  .hero-utp .utp {
    padding: 0;
    border: 0;
  }

  .hero-bot-img {
    width: min(100%, 380px);
    animation: none;
  }

  /* На мобилке сначала текст/УТП, телефон ниже */
  .hero-grid > .hero-copy {
    order: 1;
  }

  .hero-grid > .hero-visual {
    order: 2;
  }

  .tg-grid > .hero-visual,
  .tg-grid > .tg-visual {
    order: 2;
  }

  .tg-grid > .tg-copy {
    order: 1;
  }

  .tg-copy {
    padding-inline: 0;
  }

  .tg-badge,
  .tg-title,
  .tg-lead,
  .reason-grid,
  .tg-cta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .tg-cta {
    justify-content: center;
  }

  .tg-cta .btn {
    width: min(100%, 320px);
  }

  .showcase-cta .btn,
  .final-actions {
    justify-content: center;
  }

  .marquee-stack {
    gap: 4px;
  }

  .marquee {
    gap: 10px;
  }

  .marquee-track {
    gap: 10px;
  }

  .marquee--left .marquee-track {
    animation-duration: 48s;
  }

  .marquee--right .marquee-track {
    animation-duration: 54s;
  }

  .marquee--collage .marquee-track {
    animation-duration: 80s;
  }

  .work-card {
    width: 132px;
    border-radius: 14px;
  }

  .work-single-item {
    width: 132px;
    gap: 5px;
  }

  /* та же ширина/высота, что у верхнего ряда — без «дыры» между лентами */
  .work-collage-item {
    width: 132px;
    gap: 5px;
  }

  .work-card.work-card--collage {
    border-radius: 14px;
  }

  .work-caption {
    font-size: 0.6rem;
  }


  .final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-visual {
    min-height: 420px;
    padding: 12px 0 8px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }

  .tg-visual {
    min-height: 0;
  }

  .float-chip {
    transform: scale(0.86);
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento-card.wide {
    grid-column: span 2;
    grid-row: auto;
    min-height: auto;
  }

  .steps::before {
    display: none;
  }

  .phone {
    transform: none;
  }

  .mid-cta {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 40px 0;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .steps {
    gap: 14px;
  }

  .showcase-cta {
    margin-top: 12px;
  }

  .marquee-stack {
    gap: 2px;
  }

  .marquee {
    gap: 8px;
  }

  .marquee-track {
    gap: 8px;
  }

  .work-card {
    width: 112px;
    border-radius: 12px;
  }

  .work-single-item {
    width: 112px;
    gap: 3px;
  }

  .work-collage-item {
    width: 112px;
    gap: 3px;
  }

  .work-card.work-card--collage {
    border-radius: 12px;
  }

  .work-caption {
    font-size: 0.55rem;
    line-height: 1.2;
  }


  .hero-utp {
    margin-top: 14px;
    gap: 8px;
  }

  .bento {
    gap: 12px;
  }

  .mid-cta {
    margin-top: 20px;
    padding: 18px;
  }

  .container,
  .header-inner {
    width: min(100% - 24px, var(--container));
  }

  .btn-lg {
    padding: 14px 18px;
    font-size: 1rem;
  }

  .hero-gift {
    font-size: 0.88rem;
  }

  .bento,
  .reason-grid {
    grid-template-columns: 1fr;
  }

  .bento-card.wide {
    grid-column: auto;
  }

  .float-chip {
    transform: scale(0.8);
    transform-origin: center;
  }

  .chip-ctr {
    top: 8px;
    right: 0;
  }

  .chip-fast {
    bottom: 24px;
    left: 0;
  }

  .phone {
    width: min(260px, 72vw);
    height: auto;
    aspect-ratio: 260 / 540;
  }

  .cookie {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    padding: 12px 14px;
    gap: 10px;
  }

  .cookie p {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee,
  .marquee--left,
  .marquee--right,
  .marquee-track,
  .hero-bot-img {
    animation: none !important;
  }
}
