/* Чёрный кот — главная страница.
   Палитра: чёрный, белый и один акцент — цвет кошачьих глаз. */
:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, .55);
  --faint: rgba(255, 255, 255, .32);
  --line: rgba(255, 255, 255, .12);
  --accent: #F2C14E;
  --accent-dim: rgba(242, 193, 78, .14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.215, .61, .355, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #000; }

/* ── типографика ── */
.kicker {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}
.h-xl, .h-xxl, .h-lg { font-family: var(--display); font-weight: 600; letter-spacing: -.045em; }
.h-xl  { font-size: clamp(34px, 5vw, 80px); line-height: 1; }
.h-xxl { font-size: clamp(52px, 11vw, 168px); line-height: .92; letter-spacing: -.055em; }
.h-lg  { font-size: clamp(32px, 5vw, 68px); line-height: 1.02; }
.lead  { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); line-height: 1.6; }
.small { font-size: 13px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ── кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn-white  { background: #fff; color: #000; }
.btn-white:hover { background: #e2e2e6; }
.btn-accent { background: var(--accent); color: #000; }
.btn-accent:hover { background: #ffd36a; }
.btn-ghost  { border: 1px solid rgba(255, 255, 255, .22); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }

/* ── навигация ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 80px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  opacity: 0; transition: opacity .8s var(--ease);
}
.nav.ready { opacity: 1; }
.nav-left { display: flex; gap: 8px; }
.pill {
  height: 48px; border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.logo-pill {
  display: flex; align-items: center; gap: 10px; padding: 0 18px;
  font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: -.02em;
  transition: background .2s, transform .2s;
}
.logo-pill:hover { background: rgba(255, 255, 255, .2); }
.logo { width: 20px; height: 20px; color: #fff; flex: none; }
.menu-pill {
  display: flex; align-items: center; overflow: hidden;
  width: 48px;
  transition: width .55s cubic-bezier(.34, 1.36, .5, 1);
}
.menu-pill.open { width: 380px; }
.burger {
  flex: none; position: relative; width: 48px; height: 48px;
  background: none; border: 0; cursor: pointer; border-radius: 14px;
}
.burger span {
  position: absolute; left: 15px; width: 18px; height: 1.5px; background: #fff;
  transition: transform .35s var(--ease), opacity .25s;
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 23.25px; }
.burger span:nth-child(3) { top: 28.5px; }
.open .burger span:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.open .burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.open .burger span:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }
.menu-links {
  display: flex; gap: 22px; padding: 0 18px 0 4px;
  font-family: var(--font); font-size: 14px; color: rgba(255, 255, 255, .8);
  opacity: 0; transform: translateX(14px);
  transition: opacity .3s, transform .4s var(--ease);
  white-space: nowrap;
}
.open .menu-links { opacity: 1; transform: none; transition-delay: .12s; }
.menu-links a:hover { color: #fff; }

/* ── сцена с котом ── */
.hero { position: relative; height: 200vh; }
.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.cat {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cat img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
/* Вступление: видео поверх картинки, после него — плавная смена на картинку с «живыми» глазами */
/* картинка = последний кадр видео, поэтому смена мгновенная и незаметная; «живые» глаза проявляются мягко */
.cat video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.cat img { opacity: 0; }
.cat.settled img { opacity: 1; }
.cat.settled video { opacity: 0; }
.eyes { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease-out; }
.cat.settled .eyes { opacity: 1; }
.cat .eye { pointer-events: auto; cursor: pointer; }
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 70% at 50% 45%, transparent 55%, rgba(0, 0, 0, .75) 100%),
    linear-gradient(to top, #000 0%, rgba(0, 0, 0, .65) 18%, transparent 42%);
}
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-copy { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.beat { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.beat.on { visibility: visible; }
.beat.on a { pointer-events: auto; }
.side-left, .side-right {
  position: absolute; top: 40%;
  transform: translateY(calc(-50% + var(--ty, 0px)));
  max-width: min(26vw, 420px);
}
.side-left  { left: var(--gutter); }
.side-right { right: var(--gutter); text-align: right; }
.ticks { list-style: none; font-family: var(--font); font-size: 13px; color: var(--muted); display: grid; gap: 14px; }
.ticks li::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 12px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
/* «Чёрный кот» и кнопки — внизу первого экрана, видны сразу */
.hero-final {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 7vh;
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.hero-final.in { opacity: 1; transform: none; }
.hero-final a { pointer-events: auto; }
.hero-final .h-xxl { font-size: clamp(48px, 8vw, 128px); }

/* ── глаз (рисуется кодом поверх картинки) ── */
.eye { position: absolute; transform: translate(-50%, -50%); --close: 0; --glow: 0; }
.footer-eyes .eye { aspect-ratio: 1; }
.eye-glow {
  position: absolute; inset: -120%; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 193, 78, .55) 0%, rgba(242, 193, 78, .14) 30%, transparent 62%);
  opacity: calc(var(--glow) * (1 - var(--close)));
  pointer-events: none;
}
.eye-ball {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  -webkit-mask-image: radial-gradient(circle, #000 84%, transparent 100%);
          mask-image: radial-gradient(circle, #000 84%, transparent 100%);
  background:
    radial-gradient(circle, transparent 0 50%, rgba(70, 42, 4, .45) 86%, rgba(18, 10, 0, .9) 100%),
    repeating-conic-gradient(rgba(255, 238, 170, .12) 0 2deg, rgba(110, 70, 8, .14) 2deg 5deg),
    radial-gradient(circle, #4e3207 0 18%, #a87b26 36%, #d3a446 60%, #b98b33 80%, #6a4710 100%);
}
.pupil {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--pw, .42) * 100%); height: calc(var(--ph, .78) * 100%);
  border-radius: 50%;
  background: radial-gradient(ellipse, #000 55%, #120a00 100%);
  box-shadow: 0 0 .35em .15em rgba(30, 16, 0, .55);
  transform: translate(-50%, -50%) translate(var(--px, 0px), var(--py, 0px));
  transition: width .45s var(--ease), height .45s var(--ease);
}
.glint {
  position: absolute; left: 24%; top: 20%; width: 26%; height: 18%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%);
  transform: rotate(-28deg);
}
.glint + .glint { left: 62%; top: 64%; width: 9%; height: 7%; opacity: .5; }
.lid { position: absolute; left: -15%; width: 130%; height: 100%; background: #050506; }
.lid-top {
  top: 0; border-radius: 0 0 50% 50% / 0 0 38% 38%;
  box-shadow: 0 .15em .3em rgba(0, 0, 0, .7);
  transform: translateY(calc(-101% + var(--close) * 59%));
}
.lid-bot {
  bottom: 0; border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  transform: translateY(calc(101% - var(--close) * 47%));
}
.purr {
  position: absolute; left: 50%; top: -10%; transform: translate(-50%, 0);
  font-family: var(--font); font-size: 13px; color: var(--accent); white-space: nowrap;
  opacity: 0; pointer-events: none;
  animation: purr 1.6s var(--ease) forwards;
}
@keyframes purr { 0% { opacity: 0; transform: translate(-50%, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60px); } }

/* ── манифест ── */
.manifesto { position: relative; height: 260vh; }
.manifesto-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px;
  padding: 0 var(--gutter);
  perspective: 600px;
}
.manifesto-text {
  max-width: 1100px; text-align: center;
  font-family: var(--display); font-size: clamp(24px, 3.4vw, 48px); line-height: 1.25; letter-spacing: -.035em; font-weight: 500;
  transform: rotateX(var(--rx, 20deg)) translateY(var(--ty, 40px));
  transform-origin: 50% 100%;
}
.manifesto-text .w { opacity: .14; transition: opacity .35s, color .35s; }
.manifesto-text .w.lit { opacity: 1; }
.manifesto-text .w.hot { color: var(--accent); }

/* ── общие секции ── */
.section { padding: clamp(96px, 14vh, 160px) var(--gutter); max-width: 1240px; margin: 0 auto; }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

.metrics .kicker { margin-bottom: 72px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.metric { text-align: center; }
.metric-val { font-family: var(--display); font-size: clamp(48px, 7vw, 100px); font-weight: 600; letter-spacing: -.05em; line-height: 1; white-space: nowrap; }
.metric-val b { font-weight: 600; }
.metric-val span { color: var(--faint); font-size: .6em; vertical-align: .25em; }
.metric-val .unit { font-size: .3em; letter-spacing: 0; margin-left: .25em; color: var(--accent); }
.metric p { margin-top: 16px; font-size: 14px; color: var(--faint); }

.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 80px; }
.split-head .muted { max-width: 360px; text-align: right; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 40px; }
.feature { border-top: 1px solid var(--line); padding-top: 24px; }
.feature .idx { font-size: 12px; font-weight: 600; color: var(--accent); }
.feature h3 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 14px 0 10px; letter-spacing: -.025em; }
.feature p { color: var(--faint); font-size: 15px; line-height: 1.6; }

.steps .h-lg { margin: 28px auto 64px; }
.steps-list { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.step {
  width: 100%; max-width: 520px; height: 76px; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 12px;
}
.step span { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.step b { font-weight: 600; font-size: 18px; }
.step:last-child { border-color: rgba(242, 193, 78, .4); }
.step:last-child b { color: var(--accent); }

.pricing .h-lg { margin: 28px auto 64px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 28px; border: 1px solid var(--line); border-radius: 18px;
  transition: border-color .3s, background .3s;
}
.plan:hover { border-color: rgba(255, 255, 255, .3); }
.plan .btn { margin-top: 24px; }
.plan-name { font-family: var(--font); font-size: 13px; color: var(--muted); }
.plan-name em { font-style: normal; color: var(--accent); margin-left: 6px; }
.plan-price { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 3.6vw, 52px); letter-spacing: -.045em; line-height: 1.1; margin-top: 12px; }
.plan-price small { font-size: .45em; color: var(--faint); }
.plan-per { font-size: 14px; color: var(--faint); }
.plan-best { border-color: rgba(242, 193, 78, .45); background: linear-gradient(180deg, var(--accent-dim), transparent 70%); }
.plan-badge {
  position: absolute; top: -12px; left: 28px; padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: #000; font-size: 11px; font-weight: 700;
}

.faq { max-width: 880px; }
.faq .h-lg { margin-bottom: 48px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 40px 26px 0; position: relative;
  font-size: clamp(16px, 1.5vw, 20px); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font); color: var(--accent); font-size: 22px; transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); line-height: 1.7; padding: 0 40px 28px 0; }

/* ── подвал ── */
.footer { position: relative; padding: 140px var(--gutter) 40px; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 50% 22%, rgba(242, 193, 78, .06), transparent 70%);
}
.footer-eyes { position: relative; height: 120px; margin: 0 auto 48px; max-width: 320px; }
.footer-eyes .eye { width: 64px; top: 50%; }
.footer-eyes .lid { background: #000; }
.footer .muted { margin: 20px auto 36px; }
.footer-bottom {
  margin-top: 140px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-family: var(--font); font-size: 12px; color: var(--faint);
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.footer-brand .logo { color: var(--muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: #fff; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-family: var(--font); font-size: 13px;
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── планшеты и телефоны ── */
@media (max-width: 1000px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); row-gap: 64px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}
@media (max-width: 760px), (max-aspect-ratio: 85/100) {
  .side-left, .side-right {
    max-width: none; left: var(--gutter); right: var(--gutter); text-align: left;
    transform: translateY(var(--ty, 0px));
  }
  /* на телефоне низ занят «Чёрным котом» и кнопками — тексты прокрутки сверху */
  .beat-1 .side-left  { top: 11vh; }
  .beat-1 .side-right { top: 11vh; margin-top: 2.3em; text-align: right; }
  .beat-2 .side-left  { top: 11vh; }
  .beat-2 .side-right { display: none; }
  .ticks li::after { display: none; }
  .ticks li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 12px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
}
@media (max-width: 640px) {
  .nav { height: 64px; }
  .pill, .btn-white { height: 40px; }
  .logo-pill { padding: 0 12px; font-size: 14px; border-radius: 12px; }
  .menu-pill { width: 40px; border-radius: 12px; }
  .menu-pill.open { width: calc(100vw - 2 * var(--gutter) - 8px - 96px); }
  .nav-left:has(.open) .logo-pill { display: none; }
  .burger { width: 40px; height: 40px; }
  .burger span { left: 12px; width: 16px; }
  .burger span:nth-child(1) { top: 14px; }
  .burger span:nth-child(2) { top: 19.25px; }
  .burger span:nth-child(3) { top: 24.5px; }
  .menu-links { gap: 16px; font-size: 13px; padding-right: 12px; }
  .btn-white { padding: 0 16px; font-size: 13px; }
  .features-grid, .plans { grid-template-columns: 1fr; }
  .split-head { flex-direction: column; align-items: flex-start; }
  .split-head .muted { text-align: left; }
  .metrics-grid { gap: 48px 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-final .cta-row { flex-direction: column; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
