/* запИИсь — premium selling landing (dynamic, no framework) */

/* fonts loaded via preload in HTML to eliminate render-blocking */

:root {
  --bg: #0a0806;
  --bg2: #120e0a;
  --surface: #1a1510;
  --surface2: #221c15;
  --text: #f5f0e8;
  --muted: #9c8f7e;
  --line: rgba(245, 240, 232, 0.08);
  --gold: #c9a86c;
  --gold-dim: rgba(201, 168, 108, 0.35);
  --gold-glow: rgba(201, 168, 108, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Outfit", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .stat:hover {
    transform: none;
  }
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 10001;
  padding: 0.5rem 1rem;
  background: var(--surface2);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus {
  clip-path: none;
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  outline: 2px solid rgba(201, 168, 108, 0.9);
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    display: none;
  }
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.narrow {
  max-width: 48rem;
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 8, 6, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
  color: var(--gold);
}

/* «ИИ» в названии — отсылка к искусственному интеллекту */
.brand-ii {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-panel a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease-out);
}
.nav-panel a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-panel a.is-active {
  color: var(--gold);
}

.nav-cta {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--gold) !important;
}
.nav-cta:hover {
  background: var(--gold-glow);
  color: var(--text) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  color: var(--text);
}
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease-out);
}
.nav-toggle::before {
  top: 14px;
}
.nav-toggle::after {
  bottom: 14px;
}
body.nav-open .nav-toggle::before,
.nav-toggle[aria-expanded="true"]::before {
  top: 21px;
  transform: rotate(45deg);
}
body.nav-open .nav-toggle::after,
.nav-toggle[aria-expanded="true"]::after {
  bottom: 21px;
  transform: rotate(-45deg);
}

@media (max-width: 1100px) {
  /* backdrop-filter у предка ломает position:fixed у дочерних панелей в WebKit/Chrome — меню «течёт» в контент */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 8, 6, 0.94);
  }
  /* Зерно не перекрывало шапку и выезжающее меню */
  body::after {
    z-index: 30;
    opacity: 0.025;
  }

  .nav-toggle {
    display: block;
    z-index: 2;
  }
  .nav-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 1.25rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    gap: 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(10, 8, 6, 0.98);
    border-bottom: 1px solid var(--line);
    z-index: 10050;
    transform: translate3d(0, -100%, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.3s ease, visibility 0.3s;
  }
  .nav-panel.is-open {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-panel a {
    font-size: 1.15rem;
  }
}

@media (min-width: 1101px) {
  .nav-toggle {
    display: none !important;
  }
  .nav-panel {
    position: static;
    inset: auto;
    flex-direction: row;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    padding: 0;
    margin-left: auto;
    gap: 2rem;
  }
}

/* Упрощённая шапка (юридические страницы): без бургера, ссылки всегда видны */
.site-header--simple .nav-toggle {
  display: none !important;
}
@media (max-width: 1100px) {
  .site-header--simple .nav-panel {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 0;
    margin-left: auto;
    max-width: 60%;
    gap: 0.75rem 1.25rem;
    background: transparent;
    border: none;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #d4b87a 0%, #a67c3d 50%, #8a6328 100%);
  color: #1a1208;
  box-shadow: 0 8px 32px rgba(201, 168, 108, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary::before {
    display: none;
  }
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(201, 168, 108, 0.35);
  color: #1a1208;
}

.btn-line {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-line:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 0.95rem;
}

.btn:focus-visible,
.nav-panel a:focus-visible,
.nav-toggle:focus-visible,
.faq-q:focus-visible,
.demo-chat-send:focus-visible,
.demo-chat-input:focus-visible,
.pricing-cta:focus-visible,
.lead-actions .btn:focus-visible {
  outline: 2px solid rgba(201, 168, 108, 0.85);
  outline-offset: 3px;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 5rem;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(70vw, 560px);
  height: min(70vw, 560px);
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 65%);
  pointer-events: none;
  animation: glow-pulse 10s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow {
    animation: none;
  }
}

.hero-layout {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 960px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
  }
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.hero .hl {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}

/* Hero intro text — не путать с .section-lead (финальный CTA) */
.hero .lead {
  font-size: 1.12rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.trust-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trust-row li {
  position: relative;
  padding-left: 1rem;
}
.trust-row li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

/* Иконки мессенджеров (Telegram / VK / MAX) */
.channel-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
  margin-bottom: 1.65rem;
}

.channel-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  user-select: none;
}

.channel-icon svg,
.channel-icon__img {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

/* Палитра под тёмный золотой лендинг: мягкие оттенки, не кислотные бренды */
.channel-icon--tg svg {
  color: #8ebdd4;
}
.channel-icon--tg .channel-icon__label {
  color: rgba(160, 205, 220, 0.92);
}

.channel-icon--vk svg {
  color: #8fa6cf;
}
.channel-icon--vk .channel-icon__label {
  color: rgba(168, 188, 220, 0.92);
}

/* MAX: знак-облако из бренда max.ru (SVG images/max-logo.svg) */
.channel-icon--max .channel-icon__img--max {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.channel-icon--max .channel-icon__label {
  color: rgba(154, 182, 255, 0.94);
}

.channel-icon__label {
  line-height: 1;
}

@media (max-width: 480px) {
  .wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .channel-icons {
    gap: 0.6rem 1rem;
  }
  .channel-icon {
    font-size: 0.7rem;
  }
  .demo-msg--user {
    margin-left: 0.5rem;
  }
  .demo-msg--bot {
    margin-right: 0.5rem;
  }
}

.footer-channel-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.35rem;
  margin: 0.35rem 0 1rem;
}

.footer-channel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.88;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.footer-channel-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-channel-icon--tg svg {
  color: #8ebdd4;
}
.footer-channel-icon--vk svg {
  color: #8fa6cf;
}
.footer-channel-icon--max .channel-icon__img--max {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
/* Phone mock */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(100%, 320px);
  background: linear-gradient(165deg, #2a2319 0%, #16120e 100%);
  border-radius: 2.25rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: rotate(-2deg);
  transition: transform 0.6s var(--ease-out);
}

.phone-frame:hover {
  transform: rotate(0deg) translateY(-4px);
}

.phone-notch {
  height: 24px;
  border-radius: 1.5rem 1.5rem 0 0;
}

.chat-flow {
  padding: 0.75rem 0.65rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bubble {
  max-width: 92%;
  padding: 0.55rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  animation: bubble-in 0.6s var(--ease-out) backwards;
}
.bubble:nth-child(1) {
  animation-delay: 0.1s;
}
.bubble:nth-child(2) {
  animation-delay: 0.25s;
}
.bubble:nth-child(3) {
  animation-delay: 0.4s;
}
.bubble:nth-child(4) {
  animation-delay: 0.55s;
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bubble.user {
  align-self: flex-end;
  background: rgba(201, 168, 108, 0.18);
  color: var(--text);
  border-bottom-right-radius: 0.25rem;
}
.bubble.bot {
  align-self: flex-start;
  background: var(--surface2);
  color: var(--muted);
  border-bottom-left-radius: 0.25rem;
}
.bubble.bot.success {
  color: #c8e6c9;
  border: 1px solid rgba(129, 199, 132, 0.35);
}

/* —— Reveal —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Stats —— */
.stats {
  padding: 3.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 50%, var(--bg2) 100%);
}

.stats-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }
}

.stat {
  text-align: center;
  padding: 1.5rem 1.15rem 1.6rem;
  background: linear-gradient(165deg, var(--surface2) 0%, var(--surface) 42%, rgba(18, 14, 10, 0.98) 100%);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition:
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-out),
    opacity 0.6s var(--ease-out);
}

/* Staggered reveal delays */
.stats-grid .stat:nth-child(1) { transition-delay: 0s; }
.stats-grid .stat:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .stat:nth-child(3) { transition-delay: 0.2s; }

.stat:hover {
  border-color: var(--gold-dim);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(201, 168, 108, 0.08);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .stat {
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
  }
  .stat:hover {
    transform: none;
  }
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 600;
  color: var(--gold);
  display: block;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(201, 168, 108, 0.12);
}

.stat-suffix {
  font-size: 0.65em;
  opacity: 0.9;
}

.stat-num--static {
  display: inline-block;
}

.stat-label {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.45;
  max-width: 13rem;
  margin-left: auto;
  margin-right: auto;
}

/* —— Sections —— */
#main {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

.section {
  padding: 5rem 0;
  max-width: 100%;
  box-sizing: border-box;
}

.section.alt {
  background: var(--bg2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 1.1rem;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 3rem;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Демо-чат: на ПК на всю ширину .wrap, акцент «премиум» */
.demo-chat-layout {
  max-width: 72rem;
}

.demo-chat-section .section-sub {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.demo-chat-section .demo-chat-tip {
  max-width: 42rem;
  margin: 0.85rem auto 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.demo-chat-section .demo-chat-tip a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.demo-chat-section .demo-chat-tip a:hover {
  color: var(--text);
}

.demo-chat-panel {
  position: relative;
  max-width: min(100%, 36rem);
  margin-inline: auto;
  padding: 1.5rem 1.35rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(201, 168, 108, 0.14);
  background: linear-gradient(160deg, #1e1914 0%, var(--surface) 42%, #14110d 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 28px 56px rgba(0, 0, 0, 0.38),
    0 0 80px rgba(201, 168, 108, 0.06);
  overflow: hidden;
}

.demo-chat-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 168, 108, 0.35) 22%,
    var(--gold) 50%,
    rgba(201, 168, 108, 0.35) 78%,
    transparent 100%
  );
  opacity: 0.95;
  pointer-events: none;
}

.demo-chat-status {
  position: relative;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
  min-height: 1.35em;
}

.demo-chat-status:empty {
  display: none;
  margin: 0;
  min-height: 0;
}

.demo-chat-messages {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: min(40vh, 280px);
  overflow-y: auto;
  margin-bottom: 1.15rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(18, 14, 10, 0.45) 100%);
  border: 1px solid rgba(245, 240, 232, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 108, 0.35) rgba(0, 0, 0, 0.2);
}

.demo-chat-messages::-webkit-scrollbar {
  width: 8px;
}

.demo-chat-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.demo-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 108, 0.35);
  border-radius: 4px;
}

.demo-chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 168, 108, 0.5);
}

/* Пустой чат: не показываем пустую «ленту», ширина блока как у текста над ним */
.demo-chat-messages:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
  min-height: 0;
  max-height: none;
  background: none;
  box-shadow: none;
}

.demo-chat-panel:has(.demo-chat-messages:empty) {
  max-width: min(100%, 42rem);
  padding: 1.35rem 1.5rem 1.45rem;
}

.demo-chat-panel:has(.demo-chat-messages:empty) .demo-chat-form {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.demo-chat-panel:has(.demo-chat-messages:empty) .demo-chat-input {
  width: 100%;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.demo-chat-panel:has(.demo-chat-messages:empty) .demo-chat-send {
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .demo-chat-section .section-sub,
  .demo-chat-section .demo-chat-tip {
    max-width: min(100%, 64rem);
  }

  .demo-chat-panel {
    max-width: 100%;
    width: 100%;
    padding: 2rem 2.25rem 2.1rem;
    border-radius: 1.35rem;
  }

  .demo-chat-panel:has(.demo-chat-messages:empty) {
    max-width: min(100%, 64rem);
    padding: 1.85rem 2rem 1.95rem;
  }

  .demo-chat-messages {
    max-height: min(52vh, 420px);
    padding: 1.2rem 1.25rem 1.3rem;
    gap: 0.85rem;
  }

  .demo-msg {
    font-size: 0.96rem;
  }
}

@media (min-width: 1200px) {
  .demo-chat-panel {
    padding: 2.15rem 2.5rem 2.2rem;
  }

  .demo-chat-panel:has(.demo-chat-messages:empty) {
    padding: 2rem 2.35rem 2.1rem;
  }

  .demo-chat-messages {
    max-height: min(54vh, 460px);
  }
}

.demo-msg {
  padding: 0.7rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: min(95%, 52rem);
  word-break: break-word;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.demo-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(201, 168, 108, 0.22) 0%, rgba(201, 168, 108, 0.12) 100%);
  color: var(--text);
  margin-left: 2rem;
  border: 1px solid rgba(201, 168, 108, 0.2);
}

.demo-msg--bot {
  align-self: flex-start;
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid rgba(245, 240, 232, 0.07);
  margin-right: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.demo-msg--rich strong {
  font-weight: 600;
  color: var(--text);
}

/* ATX-заголовки из ответа модели (# …, ## …) */
.demo-msg--rich .demo-msg__mdh {
  margin: 0 0 0.35rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--text);
}

.demo-msg--rich .demo-msg__mdh:first-child {
  margin-top: 0;
}

.demo-msg--rich .demo-msg__mdh--1 {
  font-size: 1.05em;
  margin-top: 0.15rem;
}

.demo-msg--rich .demo-msg__mdh--2 {
  font-size: 0.98em;
  opacity: 0.96;
}

.demo-msg--rich .demo-msg__mdh--3,
.demo-msg--rich .demo-msg__mdh--4,
.demo-msg--rich .demo-msg__mdh--5,
.demo-msg--rich .demo-msg__mdh--6 {
  font-size: 0.94em;
  opacity: 0.92;
}

.demo-msg__table-wrap {
  overflow-x: auto;
  margin: 0.4rem 0 0.6rem;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.demo-msg__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88em;
  line-height: 1.35;
}

.demo-msg__table th,
.demo-msg__table td {
  border: 1px solid rgba(245, 240, 232, 0.14);
  padding: 0.35rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.demo-msg__table th {
  color: var(--text);
  font-weight: 600;
  background: rgba(201, 168, 108, 0.08);
}

.demo-msg__table td {
  color: var(--muted);
}

.demo-msg__table .demo-msg__link {
  word-break: break-all;
}

/* Ссылки в ответе ИИ — как обычные гиперссылки (синие), не сливаются с strong */
.demo-msg--rich .demo-msg__link {
  color: #5b9fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.demo-msg--rich .demo-msg__link:visited {
  color: #8eb6ff;
}

.demo-msg--rich .demo-msg__link:hover {
  color: #b8d4ff;
}

/* Inline code */
.demo-msg__code {
  background: rgba(201, 168, 108, 0.15);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-family: "SF Mono", "Consolas", "Monaco", monospace;
  font-size: 0.88em;
  color: var(--gold);
}

/* Lists */
.demo-msg__list {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}
.demo-msg__list li {
  margin-bottom: 0.25rem;
  color: var(--muted);
}
.demo-msg__list li::marker {
  color: var(--gold);
}

/* Blockquotes */
.demo-msg__quote {
  margin: 0.5rem 0;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--gold-dim);
  background: rgba(201, 168, 108, 0.08);
  color: var(--muted);
  font-style: italic;
}

/* Emphasis */
.demo-msg--rich em {
  font-style: italic;
  color: var(--text);
}

.demo-chat-form {
  position: relative;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}

.demo-chat-input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 240, 232, 0.1);
  background: rgba(10, 8, 6, 0.65);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.demo-chat-input:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.demo-chat-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.demo-chat-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.demo-chat-section .demo-chat-send {
  padding: 0.82rem 1.45rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Pain */
.pain-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 700px) {
  .pain-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pain-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.35rem;
  position: relative;
  padding-left: 2.5rem;
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease;
}

.pain-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 90, 74, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .pain-card:hover {
    transform: none;
  }
}

.pain-icon {
  position: absolute;
  left: 1rem;
  top: 1.35rem;
  color: #8b5a4a;
  font-size: 0.85rem;
}

.pain-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.pain-outcome {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}
.pain-outcome strong {
  color: var(--gold);
  font-weight: 600;
}

/* Features */
.feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.feature:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.feature:hover::before {
  opacity: 0.85;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 300;
}

/* Process */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .process-list {
    gap: 2.5rem;
  }
}

.process-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.process-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.process-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-dim);
  line-height: 1;
}

.process-list h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
}

/* Отзывы */
.testimonials .section-head {
  margin-bottom: 2.75rem;
}

.testimonials-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 72rem;
  margin-inline: auto;
}

@media (min-width: 700px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.testimonial-card {
  margin: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--surface) 0%, rgba(26, 21, 16, 0.6) 100%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dim);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(201, 168, 108, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-card {
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
  }
  .testimonial-card:hover {
    transform: none;
  }
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dim), transparent);
  opacity: 0.85;
}

.testimonial-card blockquote {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.testimonial-card blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 1.1rem;
}

.testimonial-card figcaption {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
}

/* FAQ */
.faq-list {
  margin-top: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

.faq-item:hover {
  background: rgba(201, 168, 108, 0.03);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.25rem 2.5rem 1.25rem 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.faq-q:hover {
  color: var(--gold);
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--gold);
  transition: transform 0.3s ease;
}
.faq-item.is-open .faq-q::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-a {
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}

.faq-a p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.98rem;
  padding-right: 1rem;
}

/* Финальный CTA — id="lead" для якоря «Получить демо» */
.section-lead {
  padding: 5rem 0 6rem;
}

.lead-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  padding: 3.5rem clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--gold-dim);
  border-radius: 1rem;
  background: radial-gradient(ellipse at 50% 0%, var(--gold-glow), transparent 55%);
  max-width: 40rem;
  margin-inline: auto;
  box-sizing: border-box;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.lead-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px rgba(201, 168, 108, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .lead-card:hover {
    transform: none;
  }
}

.lead-copy {
  width: 100%;
}

.lead-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.lead-copy p {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  color: var(--muted);
  font-weight: 300;
}

.lead-copy .lead-channels {
  font-size: 0.92rem;
  margin-top: -0.35rem;
  margin-bottom: 1.35rem;
  opacity: 0.95;
}

/* Footer */
.site-footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}

.footer-tagline {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-inner .footer-channel-icons {
  margin-top: 0.15rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.7;
}

.footer-legal {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.85rem;
}
.footer-legal a {
  color: var(--muted);
}
.footer-legal a:hover {
  color: var(--gold);
}
.footer-dot {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* Сравнение — сетка, фиксированные колонки, центрирование */
.compare-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.compare-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--gold-dim);
  border-radius: 1rem;
  background: linear-gradient(165deg, var(--surface2) 0%, var(--surface) 42%, rgba(26, 21, 16, 0.98) 100%);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.compare-table {
  width: 100%;
  min-width: 860px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.compare-col--feature {
  width: 36%;
}
.compare-col--product {
  width: 21.33%;
}
.compare-col--alt {
  width: 21.33%;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  transition: background 0.2s var(--ease-out);
}

/* Вертикальные линии сетки */
.compare-table thead th:not(:last-child),
.compare-table tbody th:not(:last-child),
.compare-table tbody td:not(:last-child) {
  border-right: 1px solid rgba(245, 240, 232, 0.06);
}

.compare-table thead th {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  background: rgba(201, 168, 108, 0.07);
  border-bottom: 1px solid var(--gold-dim);
}

.compare-th-feature {
  text-align: left;
  padding-left: 1.15rem;
}

.compare-th-muted {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare-th-product {
  text-align: center;
  background: linear-gradient(180deg, rgba(201, 168, 108, 0.2) 0%, rgba(201, 168, 108, 0.07) 100%) !important;
  box-shadow: inset 1px 0 0 rgba(201, 168, 108, 0.35), inset -1px 0 0 rgba(201, 168, 108, 0.2);
  color: var(--text);
}

.compare-th-alt {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.compare-th-wrap {
  display: inline-block;
  max-width: 9.5rem;
  margin: 0 auto;
  text-align: center;
}

.compare-table tbody th {
  text-align: left;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.9);
  font-size: 0.84rem;
  line-height: 1.45;
  padding-left: 1.15rem;
  padding-right: 0.85rem;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.compare-table tbody td {
  text-align: center;
}

.compare-table tbody tr:nth-child(even) th,
.compare-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.compare-table tbody tr:hover th,
.compare-table tbody tr:hover td {
  background: rgba(201, 168, 108, 0.05);
}

.compare-td-product {
  background: linear-gradient(90deg, rgba(201, 168, 108, 0.11) 0%, rgba(201, 168, 108, 0.03) 100%);
  box-shadow: inset 2px 0 0 rgba(201, 168, 108, 0.38);
}

.compare-table tbody tr:hover .compare-td-product {
  background: linear-gradient(90deg, rgba(201, 168, 108, 0.16) 0%, rgba(201, 168, 108, 0.06) 100%);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  max-width: max-content;
  white-space: nowrap;
  margin: 0 auto;
  border: 1px solid transparent;
  text-align: center;
  box-sizing: border-box;
}

.cmp-ico {
  flex-shrink: 0;
  opacity: 0.95;
}

.compare-chip--ok {
  color: #a8e0c0;
  background: rgba(125, 202, 154, 0.1);
  border-color: rgba(125, 202, 154, 0.28);
}
.compare-chip--ok .cmp-ico {
  color: #7dca9a;
}

.compare-chip--bad {
  color: #d9a8a8;
  background: rgba(201, 125, 125, 0.1);
  border-color: rgba(201, 125, 125, 0.25);
}
.compare-chip--bad .cmp-ico {
  color: #c97d7d;
}

.compare-chip--mid {
  color: #e4d4b8;
  background: rgba(201, 168, 108, 0.1);
  border-color: var(--gold-dim);
}
.compare-chip--mid .cmp-ico {
  color: var(--gold);
}

@media (max-width: 720px) {
  .compare-table {
    min-width: 680px;
  }
  .compare-chip {
    font-size: 0.72rem;
    padding: 0.38rem 0.5rem;
  }
  .cmp-ico {
    width: 14px;
    height: 14px;
  }
}

/* Тарифы */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  max-width: 68rem;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
  }
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.pricing-card--featured {
  border-color: var(--gold-dim);
  background: linear-gradient(165deg, rgba(201, 168, 108, 0.1) 0%, var(--surface) 45%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.pricing-card--featured::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(201, 168, 108, 0.5) 0%,
    rgba(201, 168, 108, 0.1) 25%,
    rgba(201, 168, 108, 0.5) 50%,
    rgba(201, 168, 108, 0.1) 75%,
    rgba(201, 168, 108, 0.5) 100%
  );
  background-size: 300% 300%;
  animation: shimmer 6s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

@keyframes shimmer {
  0% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-card--featured::after {
    animation: none;
    background: var(--gold-dim);
    opacity: 0.5;
  }
}

.pricing-badge {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.pricing-price {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  color: var(--text);
}
.pricing-price strong {
  font-weight: 600;
  color: var(--gold);
}

.pricing-period {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.25rem;
}

.pricing-note {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 300;
}

.pricing-list {
  margin: 0 0 1.5rem;
  padding: 0 0 0 1.25rem;
  flex: 1;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pricing-list li {
  margin-bottom: 0.5rem;
}

.pricing-cta {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
}

.pricing-disclaimer {
  text-align: center;
  max-width: 40rem;
  margin: 2rem auto 0;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Доверие + первая неделя */
.trust-week-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 68rem;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .trust-week-grid {
    grid-template-columns: 1fr;
  }
}

.trust-list {
  margin: 1rem 0 1.25rem;
  padding: 0 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.trust-list li {
  margin-bottom: 0.85rem;
}
.trust-list strong {
  color: var(--text);
  font-weight: 500;
}

.trust-legal {
  font-size: 0.9rem;
  margin: 0;
}

.week-card {
  border: 1px solid var(--gold-dim);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  background: radial-gradient(ellipse at 50% 0%, var(--gold-glow), transparent 50%);
}

.week-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1rem;
  font-weight: 600;
}

.week-card__list {
  margin: 0;
  padding: 0 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.week-card__list li {
  margin-bottom: 0.65rem;
}

.section-note {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
  font-style: italic;
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Юридические страницы */
.legal-page {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
}

.legal-doc {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-doc h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.legal-doc .legal-meta {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.legal-doc h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  font-weight: 600;
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal-doc ul {
  padding-left: 1.25rem;
}

.legal-doc li {
  margin-bottom: 0.5rem;
}

.legal-doc .legal-placeholder {
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--gold-dim);
  background: var(--surface);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--gold);
  font-size: 0.9rem;
  margin: 1rem 0;
}

/* —— Combo section (Bot + Landing offer) —— */
.combo-section {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
}

.combo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 3rem 2rem;
  border: 1px solid var(--gold-dim);
  border-radius: 1.25rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 108, 0.08), transparent 60%);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 800px) {
  .combo-card {
    flex-direction: row;
    text-align: left;
    padding: 3.5rem 3rem;
    gap: 3rem;
  }
}

.combo-icon {
  flex-shrink: 0;
  color: var(--gold);
  opacity: 0.85;
  transition: transform 0.5s var(--ease-out);
}

.combo-card:hover .combo-icon {
  transform: scale(1.1) rotate(5deg);
}

@media (prefers-reduced-motion: reduce) {
  .combo-card:hover .combo-icon {
    transform: none;
  }
}

.combo-content {
  flex: 1;
}

.combo-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 1.25rem;
  line-height: 1.2;
}

.combo-benefits {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.combo-benefits li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.combo-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.combo-benefits strong {
  color: var(--text);
  font-weight: 500;
}

.combo-note {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

.combo-cta {
  display: inline-flex;
}

@media (max-width: 799px) {
  .combo-card {
    padding: 2rem 1.5rem;
  }
  .combo-icon svg {
    width: 64px;
    height: 64px;
  }
}

/* —— ROI Calculator section —— */
.roi-section {
  padding: 5rem 0;
  background: var(--bg2);
}

.roi-card {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  border-radius: 1rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.roi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .roi-card:hover {
    transform: none;
  }
}

.roi-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .roi-form {
    grid-template-columns: 1fr;
  }
}

.roi-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.roi-field label {
  font-size: 0.9rem;
  color: var(--muted);
}

.roi-field input {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--gold-dim);
  border-radius: 0.5rem;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.roi-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .roi-field input:focus {
    transform: none;
  }
}

.roi-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gold-dim);
}

.roi-metric {
  text-align: center;
  padding: 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(165deg, var(--surface2) 0%, transparent 100%);
  transition: transform 0.3s var(--ease-out), background 0.3s ease;
}

.roi-metric:hover {
  transform: scale(1.05);
  background: linear-gradient(165deg, rgba(201, 168, 108, 0.1) 0%, transparent 100%);
}

@media (prefers-reduced-motion: reduce) {
  .roi-metric:hover {
    transform: none;
  }
}

.roi-metric__value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.25rem;
  transition: transform 0.3s var(--ease-out);
}

.roi-metric:hover .roi-metric__value {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .roi-metric:hover .roi-metric__value {
    transform: none;
  }
}

.roi-metric__label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* —— Audit Promo Section —— */
.audit-promo {
  padding: 4rem 0;
  background: var(--bg2);
}

.audit-promo-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3rem clamp(1.5rem, 5vw, 3rem);
  border: 2px solid var(--gold-dim);
  border-radius: 1.25rem;
  background: radial-gradient(ellipse at 30% 0%, var(--gold-glow) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 100%, rgba(201, 168, 108, 0.06) 0%, transparent 50%);
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .audit-promo-card {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }
}

.audit-promo-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.audit-promo-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text);
}

.audit-promo-desc {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.audit-promo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
}

@media (max-width: 600px) {
  .audit-promo-list {
    grid-template-columns: 1fr;
  }
}

.audit-promo-list li {
  font-size: 0.95rem;
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
}

.audit-promo-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

.audit-promo-cta {
  text-align: center;
}

@media (min-width: 900px) {
  .audit-promo-cta {
    padding-left: 2rem;
    border-left: 1px solid var(--gold-dim);
  }
}

.audit-promo-cta .btn {
  width: 100%;
  max-width: 280px;
  justify-content: center;
}

.audit-promo-note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.7;
}

@media (max-width: 899px) {
  .audit-promo {
    padding: 3rem 0;
  }
  .audit-promo-card {
    padding: 2rem 1.25rem;
    gap: 1.75rem;
  }
  .audit-promo-title {
    font-size: 1.5rem;
  }
  .audit-promo-desc {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  .audit-promo-cta {
    padding-top: 1.5rem;
    border-top: 1px solid var(--gold-dim);
  }
  .audit-promo-cta .btn {
    max-width: 100%;
  }
}

