/* Лендинг /claude-view — отдельный от сайта, без его названия и логотипа; раскладка как у «Холста» (web/src/index.css): светлые листы на фоне потемнее, шрифт Golos Text; цвета — тёплые,
   в духе Claude: кремовый фон и один терракотовый акцент. Красный — только отказы, зелёный — только «пустили». Отдельный файл: CSP сайта (deploy/Caddyfile) запрещает встроенные стили.
   Движение — окно чата с примерами, бегущие вопросы, история по прокрутке, две дорожки — в общих для лендингов
   /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: #ebe8df;
  --surface: #fbfaf7;
  --surface-2: #f0eee6;
  --line: rgba(20, 20, 19, 0.08);
  --line-strong: rgba(20, 20, 19, 0.16);
  --text: #141413;
  --text-2: #3d3d3a;
  --text-3: #65635c;
  --accent: #b9552f;
  --accent-hover: #a74a27;
  --accent-ink: #9f4521;
  --accent-soft: #f4e2d6;
  --accent-soft-ink: #6a2f14;
  --on-accent: #ffffff;
  --press: rgba(20, 20, 19, 0.06);
  --sheet: 0 1px 2px rgba(20, 20, 19, 0.06), 0 1px 1px rgba(20, 20, 19, 0.03);
  --header: rgba(235, 232, 223, 0.86);
  --error: #b0202e;
  --ok: #2f6f44;
  --photo: #cdc8ba;
  --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);
  color-scheme: light;
}

/* Тёмная тема — по настройке устройства. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #1a1918;
    --surface: #262624;
    --surface-2: #30302e;
    --line: rgba(240, 238, 230, 0.08);
    --line-strong: rgba(240, 238, 230, 0.16);
    --text: #f5f4ee;
    --text-2: #c2c0b6;
    --text-3: #9c9a92;
    --accent: #d97757;
    --accent-hover: #e28a6c;
    --accent-ink: #e8956f;
    --accent-soft: #3b2a21;
    --accent-soft-ink: #f3d5c4;
    --on-accent: #1f1410;
    --press: rgba(240, 238, 230, 0.08);
    --sheet: 0 1px 2px rgba(0, 0, 0, 0.3);
    --header: rgba(26, 25, 24, 0.86);
    --error: #f08a8f;
    --ok: #86c596;
    --photo: #3a3835;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #1a1918;
  --surface: #262624;
  --surface-2: #30302e;
  --line: rgba(240, 238, 230, 0.08);
  --line-strong: rgba(240, 238, 230, 0.16);
  --text: #f5f4ee;
  --text-2: #c2c0b6;
  --text-3: #9c9a92;
  --accent: #d97757;
  --accent-hover: #e28a6c;
  --accent-ink: #e8956f;
  --accent-soft: #3b2a21;
  --accent-soft-ink: #f3d5c4;
  --on-accent: #1f1410;
  --press: rgba(240, 238, 230, 0.08);
  --sheet: 0 1px 2px rgba(0, 0, 0, 0.3);
  --header: rgba(26, 25, 24, 0.86);
  --error: #f08a8f;
  --ok: #86c596;
  --photo: #3a3835;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: var(--accent-ink);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  top: 8px;
}

.mark {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--accent);
  box-shadow: inset 0 0 0 5px var(--accent-soft);
}

/* --- кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.btn-lg {
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-quiet {
  color: var(--text);
}
.btn-quiet:hover {
  background: var(--press);
}

/* --- шапка --- */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--header);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1120px;
  height: 56px;
  margin: 0 auto;
  padding: 0 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.nav a {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
}
.nav a:hover {
  background: var(--press);
  color: var(--text);
}
.top-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

/* --- первый экран --- */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
/* Заголовок слева, маскот справа (уходит в поле страницы, если оно есть), главная кнопка под заголовком ближе к
   маскоту. Экран вместе с бегущими строками под ним занимает высоту окна. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  grid-template-areas:
    'text art'
    'cta art';
  gap: 64px 40px;
  align-content: center;
  min-height: calc(100svh - 56px - 176px);
  padding: 56px 0 48px;
}
.hero-text {
  grid-area: text;
  /* справка «о Claude» — поверх кнопки: появление при загрузке делает из каждой части свой слой */
  position: relative;
  z-index: 2;
}
.kicker {
  margin-bottom: 16px;
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 500;
}
h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: wrap;
}
.h1-line {
  display: block;
}

/* «о Claude» раскрывает короткую справку поверх страницы, «Что умеет Claude» ведёт к окну чата. */
.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 40px;
  margin-top: 24px;
}
.about {
  position: relative;
}
.about summary,
.hero-link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}
.about summary {
  color: var(--text-2);
  list-style: none;
  transition: color 0.15s;
}
.about summary::-webkit-details-marker {
  display: none;
}
.about summary:hover,
.about[open] summary {
  color: var(--text);
}
.about svg {
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.about svg .dot {
  fill: var(--accent);
  stroke: none;
}
.about-pop {
  position: absolute;
  z-index: 2;
  top: calc(100% + 8px);
  left: 0;
  width: min(440px, calc(100vw - 32px));
  padding: 16px 18px;
  color: var(--text-2);
  font-size: 15px;
  box-shadow:
    var(--sheet),
    0 12px 32px rgba(20, 20, 19, 0.12);
  animation: rise 200ms var(--ease) both;
}
.hero-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.hero-link:hover {
  color: var(--accent-ink);
}

.hero-cta {
  grid-area: cta;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.btn-xl {
  height: 80px;
  padding: 0 44px;
  border-radius: 18px;
  font-size: 26px;
  font-weight: 500;
}
.note {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 14px;
}

/* --- маскот --- */
/* Пиксельный зверёк, повёрнутый к кнопке, с тёмной копией позади — объём. Раз в несколько секунд «стучит». */
.clawd {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.clawd-front {
  fill: var(--accent);
}
.clawd-back {
  fill: color-mix(in srgb, var(--accent) 48%, #000);
}
.clawd-cta {
  grid-area: art;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  margin-right: calc(-1 * clamp(0px, (100vw - 1200px) / 2, 240px));
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}
.clawd-say {
  padding-right: 6%;
  font-size: clamp(20px, 1.6vw, 27px);
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: right;
  text-transform: uppercase;
}
.clawd-say em {
  color: var(--accent-ink);
  font-style: normal;
}
.clawd-hop {
  display: block;
  width: 100%;
  transition: transform 260ms var(--ease);
}
.clawd-cta:hover .clawd-hop {
  transform: translateY(-8px);
}
.clawd-cta .clawd {
  --turn: perspective(1400px) rotateY(-16deg);
  transform: var(--turn);
  transform-origin: 50% 0;
  animation: knock 5.6s var(--ease) 1.2s infinite;
}
@keyframes knock {
  0%,
  82%,
  100% {
    transform: var(--turn);
  }
  85% {
    transform: var(--turn) translateX(-10px);
  }
  88% {
    transform: var(--turn);
  }
  91% {
    transform: var(--turn) translateX(-10px);
  }
  94% {
    transform: var(--turn);
  }
}

/* Единственное появление при загрузке: первый экран поднимается по очереди. */
.hero-text > *,
.clawd-cta,
.hero-cta {
  animation: rise 480ms var(--ease) both;
}
.hero-text > :nth-child(2) {
  animation-delay: 50ms;
}
.hero-text > :nth-child(3) {
  animation-delay: 100ms;
}
.clawd-cta {
  animation-delay: 150ms;
}
.hero-cta {
  animation-delay: 200ms;
}

/* --- окно чата с маскотом «Попробуй» --- */
/* Маскот слева у края раздела, «Попробуй» со стрелкой — вплотную к окну. Нажатие ставит курсор в поле окна. */
.try-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  align-items: end;
  gap: 24px;
}
.try {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: text;
}
.try-say {
  display: flex;
  align-items: center;
  gap: 14px;
  align-self: flex-end;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.try-say svg {
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.try-clawd {
  width: min(220px, 60%);
  transform: perspective(900px) rotateY(-14deg);
  transform-origin: 50% 0;
}

.sheet {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--sheet);
}

/* --- разделы --- */
.block {
  padding: 40px 0;
}
.block-head {
  max-width: 720px;
  margin-bottom: 24px;
}
.block-head h2,
.final h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
}
.block-head p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 17px;
}

.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
tbody tr:last-child > * {
  border-bottom: 0;
}
thead th {
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
}
tbody th {
  font-weight: 600;
  white-space: nowrap;
}
td {
  color: var(--text-2);
}
.compare td:last-child {
  color: var(--text);
}
.compare thead th:last-child {
  color: var(--accent-ink);
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px 32px;
  margin: 24px 0 0;
  padding: 32px;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 28px;
  color: var(--text-2);
  font-size: 15px;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 6px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.checks strong {
  color: var(--text);
  font-weight: 600;
}

.faq {
  max-width: 820px;
  padding: 4px 24px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 0;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.faq details p {
  padding-bottom: 18px;
  color: var(--text-2);
  font-size: 15px;
}

.final {
  padding-bottom: 72px;
}
.final-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 56px 24px;
  text-align: center;
}
.final-in p {
  color: var(--text-2);
  font-size: 17px;
}
.final-in .btn {
  margin-top: 8px;
}

/* --- подвал --- */
.foot {
  border-top: 1px solid var(--line);
}
.foot-in {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  color: var(--text-3);
  font-size: 13px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.foot-links a {
  color: var(--text-2);
  text-decoration: none;
}
.foot-links a:hover {
  color: var(--text);
  text-decoration: underline;
}
.foot-note {
  max-width: 720px;
}

/* --- узкие экраны --- */
/* Одна колонка: заголовок, кнопка, маскот. Окно чата — во всю ширину, «Попробуй» над ним со стрелкой вниз. */
@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'text' 'cta' 'art';
    gap: 36px;
    min-height: 0;
    padding: 40px 0 32px;
  }
  .hero-cta {
    justify-self: start;
    align-items: flex-start;
  }
  .clawd-say {
    white-space: normal;
  }
  .clawd-cta {
    justify-self: center;
    width: min(100%, 360px);
    margin-right: 0;
  }
  .try-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .try {
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: flex-end;
  }
  .try-say {
    align-self: auto;
    padding-bottom: 4px;
  }
  .try-say svg {
    transform: rotate(90deg);
  }
  .try-clawd {
    width: 96px;
  }
}
@media (max-width: 600px) {
  .block {
    padding: 28px 0;
  }
  .hero {
    gap: 28px;
    padding-top: 28px;
  }
  .hero-links {
    column-gap: 24px;
  }
  .hero-cta {
    align-self: stretch;
    justify-self: stretch;
  }
  .btn-xl {
    width: 100%;
    height: 60px;
    padding: 0 24px;
    border-radius: 14px;
    font-size: 20px;
  }
  .clawd-cta {
    width: min(100%, 300px);
  }
  .checks {
    padding: 24px 20px;
  }
  .faq {
    padding: 4px 20px;
  }
  th,
  td {
    padding: 12px 14px;
  }
  tbody th {
    white-space: normal;
  }
}
