/* Отдельный лендинг /chatgpt-view (index.html рядом). Белые листы на сером, шрифт Golos Text, шаг отступов —
   4 px. Цвета — в духе ChatGPT: нейтральный серый без оттенка, чёрные кнопки (в тёмной теме — белые) и один
   зелёный акцент; красный — только отказы. Тема — как на устройстве. Файл отдаётся как есть, без сборки;
   шрифт — общий для лендингов (/fonts).
   Движение — окно чата с примерами, бегущие вопросы, история по прокрутке, две дорожки — в общих для лендингов
   /lp-motion.css и /lp-motion.js; этот файл подключён после общих стилей и поправляет их под страницу. */

@font-face {
  font-family: 'Golos Text Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/fonts/golos-text-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/fonts/golos-text-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f3f3f3;
  --surface: #ffffff;
  --surface-2: #efefef;
  --line: rgba(13, 13, 13, 0.08);
  --line-strong: rgba(13, 13, 13, 0.16);
  --text: #0d0d0d;
  --text-2: #424242;
  --text-3: #6b6b6b;
  --icon: #8f8f8f;
  --accent: #10a37f;
  --accent-hover: #0e8f6f;
  --accent-ink: #0a7d61;
  --accent-soft: #e1f4ee;
  --accent-soft-ink: #0b4f3f;
  --on-accent: #ffffff;
  /* Кнопки — не акцентные, а чёрные. */
  --btn: #0d0d0d;
  --btn-hover: #2f2f2f;
  --on-btn: #ffffff;
  --press: rgba(13, 13, 13, 0.06);
  --error: #b3261e;
  --ok: #0a7d61;
  --photo: #cfcfcf;
  --shadow: 0 1px 2px rgba(13, 13, 13, 0.04), 0 8px 24px rgba(13, 13, 13, 0.06);
  --sheet: 0 1px 2px rgba(13, 13, 13, 0.06), 0 1px 1px rgba(13, 13, 13, 0.03);
  color-scheme: light;

  --ui: 'Golos Text Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}

/* Тёмная тема — по настройке устройства. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171717;
    --surface: #212121;
    --surface-2: #2f2f2f;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #ececec;
    --text-2: #b4b4b4;
    --text-3: #8f8f8f;
    --icon: #7d7d7d;
    --accent: #19c37d;
    --accent-hover: #3bd092;
    --accent-ink: #3fd49b;
    --accent-soft: #14352b;
    --accent-soft-ink: #bdecd9;
    --on-accent: #0b1f18;
    --btn: #f4f4f4;
    --btn-hover: #d9d9d9;
    --on-btn: #0d0d0d;
    --press: rgba(255, 255, 255, 0.08);
    --error: #f28b82;
    --ok: #3fd49b;
    --photo: #3a3a3a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --sheet: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color-scheme: dark;
  }
}

/* --- основа --- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

body {
  margin: 0;
  font-family: var(--ui);
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* бегущие строки шире страницы — без горизонтальной прокрутки */
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
ol,
ul,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a {
  color: var(--accent-ink);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- кнопки --- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 150ms var(--ease),
    transform 150ms var(--ease);
}

.button.primary {
  background: var(--btn);
  color: var(--on-btn);
}

.button.primary:hover {
  background: var(--btn-hover);
}

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

.button.small {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 8px;
}

.quiet-link {
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  padding: 8px 4px;
  transition: color 150ms var(--ease);
}

.quiet-link:hover {
  color: var(--text);
}

/* --- шапка --- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.top-row {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
}

/* Марка: значок чата на акценте и название. */
.brand {
  gap: 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
}

.mark svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.top-nav {
  display: flex;
  gap: 24px;
}

.top-nav a {
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.top-nav a:hover {
  color: var(--text);
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- первый экран --- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 64px;
  min-height: min(calc(100svh - 64px), 840px);
  padding-top: 48px;
  padding-bottom: 64px;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.h1-line {
  display: block;
}

/* Единственное появление при загрузке: первый экран поднимается по очереди. */
.hero-text > *,
.demo {
  animation: rise 480ms var(--ease) both;
}

.hero-text > :nth-child(2) {
  animation-delay: 60ms;
}

.hero-text > :nth-child(3) {
  animation-delay: 120ms;
}

.demo {
  animation-delay: 120ms;
}

.lead {
  margin-top: 24px;
  max-width: 34rem;
  font-size: 19px;
  line-height: 29px;
  color: var(--text-2);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
}

.note {
  font-size: 14px;
  color: var(--text-3);
}

/* Окно чата из общих стилей — с формами этой страницы: круглое поле с тенью и круглая кнопка, как в чате. */
.demo-win {
  border-radius: 20px;
}

.msg-user {
  padding: 10px 16px;
  border-radius: 18px;
}

.demo-input {
  margin: 4px 16px 16px;
  padding: 6px 6px 6px 20px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.demo-ghost {
  inset: 0 52px 0 20px;
}

.demo-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.demo-send svg {
  stroke-width: 2;
}

.ticker {
  padding-bottom: 16px;
}

/* --- разделы --- */

.section {
  padding: 48px 0;
}

/* Белый лист на сером — главный приём «Холста». */
.canvas {
  padding: 56px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--sheet);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 26px;
}

.features {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
}

.features .icon {
  width: 24px;
  height: 24px;
  color: var(--text-3);
}

.features h3 {
  margin-top: 16px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
}

.features p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 23px;
}

/* --- тарифы --- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--sheet);
}

.plan.featured {
  border-color: var(--accent);
}

.plan h3 {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-2);
}

.price {
  margin-top: 8px;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.plan-sub {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 14px;
  line-height: 20px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.checks li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-2);
}

/* Галочка — линией, цветом акцента для ссылок; рисуется маской, чтобы не дублировать svg в каждой строке. */
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--accent-ink);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.plan .button {
  align-self: stretch;
}

/* Вторая кнопка рядом с главной — контуром, чтобы не спорить с ней. */
.button.secondary {
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.button.secondary:hover {
  background: var(--press);
}

/* --- вопросы --- */

.faq-canvas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 48px;
}

.faq-canvas .section-head {
  margin-bottom: 0;
}

.faq details {
  border-bottom: 1px solid var(--line-strong);
}

.faq details:first-child {
  border-top: 1px solid var(--line-strong);
}

.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-size: 17px;
  line-height: 24px;
  font-weight: 500;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 24px;
  width: 16px;
  height: 16px;
  background: var(--icon);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 180ms var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(180deg);
}

.faq details p {
  padding-bottom: 20px;
  max-width: 40rem;
  color: var(--text-2);
  font-size: 16px;
  line-height: 25px;
}

/* --- призыв и подвал --- */

.closing {
  padding: 80px 0 96px;
}

.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.closing h2 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.closing p {
  color: var(--text-2);
  font-size: 17px;
}

.closing .button {
  margin-top: 16px;
}

.foot {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
}

.foot-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.foot-brand {
  font-weight: 500;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot-links a {
  color: var(--text-3);
  font-size: 14px;
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--text-2);
}

.disclaimer {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 20px;
}

/* --- узкие экраны --- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 48px;
    padding-top: 48px;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-canvas {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 16px;
  }

  .top-row {
    gap: 16px;
  }

  .top-nav {
    display: none;
  }

  .brand {
    font-size: 15px;
  }

  /* На телефоне название, «Войти» и кнопка в одну строку не помещаются; «Войти» есть в подвале. */
  .top-actions .quiet-link {
    display: none;
  }

  .hero {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .lead {
    font-size: 17px;
    line-height: 26px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .demo-win {
    border-radius: 16px;
  }

  .demo-input {
    margin: 4px 12px 12px;
  }

  .section {
    padding: 32px 0;
  }

  .canvas {
    padding: 32px 20px;
    border-radius: 16px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .features,
  .plans {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .plans {
    gap: 16px;
  }

  .plan {
    padding: 24px;
  }

  .closing {
    padding: 48px 0 64px;
  }

  .closing h2 {
    font-size: 30px;
  }
}
