/* Qmetra — посадочная страница (landing7).
   Фирменная палитра из prod/public/css/styles.css: тёплый крем, терракотовый акцент,
   тёмный графит. Без скевоморфизма: только цвет, типографика, отбивки, состояния. */

:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --surface-2: #f4ede2;
  --surface-3: #efe5d6;
  --dark: #1c1816;
  --dark-deep: #14100f;
  --border: #e6dac6;
  --border-strong: #d3c1a0;
  --border-dark: #332c27;
  --text: #2b2420;
  --text-muted: #8c8074;
  --text-inverse: #f6efe6;
  --text-inverse-muted: #a99c8e;
  --accent: #b8542f;
  --accent-hover: #9c4526;
  --accent-soft: #f5dfce;
  --accent-soft-2: #fbeee2;
  --success: #3f7d5c;
  --success-soft: #dcefe1;

  --font-display: "Space Grotesk", "Manrope", system-ui, -apple-system, sans-serif;
  --font: "Manrope", system-ui, -apple-system, sans-serif;

  --radius: 12px;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(43, 36, 32, 0.07);
  --shadow: 0 6px 18px rgba(43, 36, 32, 0.09);
  --shadow-lg: 0 18px 44px rgba(43, 36, 32, 0.14);

  --max-w: 1180px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--dark);
  color: var(--text-inverse);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ───────────────────────── Кнопки ───────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background var(--ease) 0.16s, color var(--ease) 0.16s,
    border-color var(--ease) 0.16s, transform var(--ease) 0.16s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

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

.btn--quiet {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--quiet:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.88rem;
}

.btn--lg {
  padding: 15px 30px;
  font-size: 1rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* ───────────────────────── Шапка ───────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease) 0.2s, background var(--ease) 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(250, 246, 240, 0.94);
}

.site-header__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand img {
  height: 30px;
  width: auto;
}

.site-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 24px;
  font-size: 0.93rem;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--text-muted);
  transition: color var(--ease) 0.16s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transition: right var(--ease) 0.22s;
}

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

.site-nav a:hover::after {
  right: 0;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header__account {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  background: transparent;
  transition: background var(--ease) 0.16s;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 0;
  position: relative;
  transition: background var(--ease) 0.16s;
}

.site-header__account:hover,
.burger:hover {
  background: var(--surface);
}

.burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition: transform var(--ease) 0.2s;
}

.burger span:first-child {
  transform: translate(-50%, calc(-50% - 4px));
}

.burger span:last-child {
  transform: translate(-50%, calc(-50% + 4px));
}

.burger[aria-expanded="true"] span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.mobile-menu a {
  padding: 12px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.mobile-menu .btn {
  margin-top: 12px;
  border-bottom: 0;
}

.mobile-menu:not([hidden]) {
  display: flex;
}

/* ───────────────────────── Общие блоки секций ───────────────────────── */

section {
  position: relative;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow--inverse {
  color: #e0916f;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head--left {
  text-align: left;
  margin-left: 0;
}

.section-head--inverse {
  color: var(--text-inverse);
}

.section-title {
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
}

.section-lead {
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section-head--inverse .section-lead {
  color: var(--text-inverse-muted);
}

/* ───────────────────────── Hero ───────────────────────── */

.hero {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 7vw, 96px) 0 clamp(32px, 4vw, 56px);
  overflow: hidden;
}

.hero__copy {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hero .eyebrow {
  margin-bottom: 26px;
}

.hero__title {
  font-size: clamp(2.4rem, 5.2vw, 3.85rem);
  letter-spacing: -0.035em;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.flow .section-title em {
  font-style: normal;
  color: var(--accent);
}

.pricing .section-title em {
  font-style: normal;
  color: var(--accent);
}

.start .section-title em {
  font-style: normal;
  color: var(--accent);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 52px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  margin-top: 44px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero__facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.stage {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stage__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.stage__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stage__addr {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 4px;
}

.stage__chip {
  flex: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft-2);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--accent-soft);
}

.stage__body {
  position: relative;
  min-height: 280px;
}

.pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--ease) 0.35s, transform var(--ease) 0.35s;
}

.pane.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.pane__note {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tile {
  display: flex;
  align-items: flex-end;
  height: 66px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pane.is-active .tile {
  animation: tile-in 0.42s var(--ease) both;
  animation-delay: calc(var(--d) * 0.075s);
}

@keyframes tile-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

.meter {
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  overflow: hidden;
}

.meter__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
}

.pane.is-active .meter__fill {
  animation: meter 2.6s var(--ease) forwards;
}

@keyframes meter {
  to {
    width: 100%;
  }
}

.notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notes li {
  padding: 10px 12px;
  border-left: 2px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.86rem;
  color: #574c44;
}

.pane.is-active .notes li {
  animation: note-in 0.45s var(--ease) both;
}

.pane.is-active .notes li:nth-child(2) {
  animation-delay: 0.4s;
}

.pane.is-active .notes li:nth-child(3) {
  animation-delay: 0.8s;
}

@keyframes note-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
}

.skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton span {
  height: 9px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 45%, var(--surface-2) 90%);
  background-size: 220% 100%;
}

.skeleton span:nth-child(2) {
  width: 82%;
}

.skeleton span:nth-child(3) {
  width: 56%;
}

.pane.is-active .skeleton span {
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.draft {
  font-size: 0.94rem;
  color: #574c44;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: var(--radius);
}

.pane.is-active .draft {
  animation: note-in 0.5s var(--ease) both;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.chip--done {
  background: var(--success-soft);
  border-color: transparent;
  color: var(--success);
}

.pane.is-active .chip {
  animation: tile-in 0.4s var(--ease) both;
  animation-delay: 0.25s;
}

.pane.is-active .chip:nth-child(2) {
  animation-delay: 0.4s;
}

.pane.is-active .chip:nth-child(3) {
  animation-delay: 0.55s;
}

.pane.is-active .chip:nth-child(4) {
  animation-delay: 0.7s;
}

.stage__rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.rail__step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--ease) 0.2s;
}

.rail__step.is-active {
  color: var(--text);
}

.rail__num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--border-strong);
}

.rail__step.is-active .rail__num {
  color: var(--accent);
}

.rail__track {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  overflow: hidden;
  margin-top: 2px;
}

.rail__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

.rail__step.is-active .rail__fill {
  animation: rail 4.4s linear forwards;
}

@keyframes rail {
  to {
    width: 100%;
  }
}

/* ───────────────────────── Контраст до/после ───────────────────────── */

.contrast {
  background: var(--dark);
  color: var(--text-inverse);
  padding: clamp(64px, 8vw, 108px) 0;
}

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

.contrast__col {
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
}

.contrast__col--after {
  background: rgba(184, 84, 47, 0.1);
  border-color: rgba(184, 84, 47, 0.42);
}

.contrast__cap {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-inverse-muted);
}

.contrast__col--after .contrast__cap {
  color: #e0916f;
}

.contrast__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contrast__list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--text-inverse-muted);
  line-height: 1.5;
}

.contrast__list li::before {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.4;
}

.contrast__list--before li::before {
  content: "—";
  color: #6b5f56;
}

.contrast__list--after li {
  color: var(--text-inverse);
}

.contrast__list--after li::before {
  content: "✓";
  color: #e0916f;
}

/* ───────────────────────── Шаги ───────────────────────── */

.flow {
  padding: clamp(64px, 8vw, 112px) 0;
}

.flow__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.flow__stage {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  padding-right: 26px;
}

.flow__stage::before {
  content: "";
  position: absolute;
  inset: 26px 0 -26px 26px;
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  counter-reset: step;
}

.step {
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--ease) 0.2s, transform var(--ease) 0.2s,
    box-shadow var(--ease) 0.2s;
}

.step:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent-soft);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.step:hover .step__num {
  color: var(--accent);
}

.step__title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

.flow__principle {
  margin-top: 34px;
  padding: 22px 26px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem;
  color: #574c44;
}

/* ───────────────────────── Возможности ───────────────────────── */

.features {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--surface-2);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--ease) 0.2s, box-shadow var(--ease) 0.2s,
    border-color var(--ease) 0.2s;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.feature h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.feature--wide {
  grid-column: span 2;
}

.feature--accent {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--text-inverse);
}

.feature--accent h3 {
  color: #fff;
}

.feature--accent p {
  color: var(--text-inverse-muted);
}

/* ───────────────────────── Моушен-ролик ───────────────────────── */

.motion-section {
  padding: clamp(24px, 3vw, 40px) 0 clamp(56px, 6vw, 80px);
}

.motion-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.motion-section__copy,
.motion-section__media {
  min-width: 0;
}

.motion-section__title {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1.14;
  text-wrap: balance;
}

.motion-section__lead {
  max-width: 42ch;
  margin-top: 22px;
  font-size: 1rem;
  line-height: 1.75;
  color: #73675d;
}

.motion-section__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.875rem;
  color: #73675d;
}

.motion-section__meta svg {
  flex: 0 0 auto;
}

.motion-section__demo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 8px 0;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
}

.motion-section__demo:hover,
.motion-section__error a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.motion-film {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--text);
}

.motion-film__cover,
.motion-film__video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
}

.motion-film__cover[hidden],
.motion-film__video[hidden],
.motion-section__error[hidden] {
  display: none;
}

.motion-film__cover {
  position: relative;
  color: #fff;
}

.motion-film__cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.22s var(--ease);
}

.motion-film__video {
  object-fit: contain;
}

.motion-film__cover:focus-visible {
  outline: 3px solid #faf6f0;
  outline-offset: -6px;
  border-radius: inherit;
}

.motion-film__play {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(64px, 6vw, 84px);
  height: clamp(64px, 6vw, 84px);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease);
}

.motion-film__cover:hover .motion-film__play,
.motion-film__cover:focus-visible .motion-film__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent);
  color: #fff;
}

.motion-film__cover:hover img,
.motion-film__cover:focus-visible img {
  filter: brightness(0.88);
}

.motion-film__play svg {
  width: 32px;
  height: 32px;
}

.motion-section__error {
  margin-top: 16px;
  color: var(--text);
  font-size: 0.95rem;
}

/* ───────────────────────── Демо: сервис в работе ───────────────────────── */

.result {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--surface-2);
  --demo-muted: #6e6258;
}

.result .section-head {
  margin-bottom: 34px;
}

.result__context {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 20px;
  color: var(--demo-muted);
  font-size: 0.92rem;
}

.result__context span {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent-hover);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tabs {
  max-width: 1060px;
  margin: 0 auto;
}

.tabs__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.tabs__bar--foot {
  margin-top: 35px;
  margin-bottom: 0;
}

.tabs__btn {
  padding: 11px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--demo-muted);
  transition: background var(--ease) 0.18s, color var(--ease) 0.18s,
    border-color var(--ease) 0.18s;
}

.tabs__btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.tabs__btn.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--text-inverse);
}

.tabs__panels {
  background: linear-gradient(145deg, #ffffff 0%, #fdfbf8 100%);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 12px 34px rgba(43, 36, 32, 0.08);
}

.tabs__panel {
  animation: fade-in 0.35s var(--ease) both;
}

.js .tabs__panel:not(.is-active) {
  display: none;
}

.no-js .tabs__bar {
  display: none;
}

.no-js .tabs__panel + .tabs__panel {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--border);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ── Общий каркас сцены ── */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.demo--draft {
  grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1fr);
}

.demo--photo {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.demo__chatcol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.demo--check,
.demo--pack {
  grid-template-columns: minmax(0, 1fr) minmax(0, 290px);
}

.demo__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.demo__side {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbf8f3;
}

.demo__side--photos {
  padding: 10px;
  border: 0;
}

.demo__chatcol .demo__side {
  border: 0;
}

.demo__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--demo-muted);
  margin-bottom: 14px;
}

.demo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.demo__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}

.demo__state {
  flex: none;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft-2);
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
}

.demo__state.is-done {
  background: var(--success-soft);
  border-color: transparent;
  color: var(--success);
}

.demo__note {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--demo-muted);
}

/* ── Сцена 1: черновик описания ── */

.demo__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.demo__thumbs figure {
  position: relative;
  overflow: hidden;
  height: 88px;
  margin: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.demo__thumbs figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
  height: auto;
}

.demo__thumbs figure:last-child {
  grid-column: span 3;
  height: 96px;
}

.demo__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease) 0.35s, opacity var(--ease) 0.4s;
}

.js .demo__thumbs figure:not(.is-ready) img {
  opacity: 0;
  transform: scale(1.06);
}

.js .demo__thumbs figure.is-ready img {
  opacity: 1;
}

.js .demo__thumbs figure:not(.is-ready)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: thumb-spin 0.7s linear infinite;
}

.js .demo__thumbs figure:first-child:not(.is-ready)::after {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
}

@keyframes thumb-spin {
  to {
    transform: rotate(360deg);
  }
}

.demo__thumbs figure.is-ready:hover img {
  transform: scale(1.05);
}

.demo__meta {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #fbf8f3;
}

.demo__meta-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
}

.demo__meta-main i {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.demo__meta-address {
  margin-top: 4px;
  color: var(--demo-muted);
  font-size: 0.82rem;
}

.demo__meta-features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.demo__meta-features span {
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--demo-muted);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.35;
}

.demo__replay {
  flex: none;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--accent-soft-2);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-hover);
  transition: background var(--ease) 0.18s, color var(--ease) 0.18s;
}

.demo__replay:hover {
  background: var(--accent);
  color: #fff;
}

.demo__body {
  min-height: 154px;
}

.demo__skeleton:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo__skeleton span {
  height: 11px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #efe5d6 0%, #f7f0e4 42%, #fbf6ee 50%, #f7f0e4 58%, #efe5d6 100%);
  background-size: 220% 100%;
  animation: shimmer 1.7s linear infinite;
}

.demo__skeleton span:nth-child(2) {
  width: 92%;
}

.demo__skeleton span:nth-child(3) {
  width: 76%;
}

.demo__skeleton span:nth-child(4) {
  width: 52%;
}

.demo__draft {
  font-size: 1.02rem;
  line-height: 1.7;
}

.demo__draft.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.14em;
  background: var(--accent);
  animation: caret 1.1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.demo__foot {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  border-top: 1px solid transparent;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    max-height 0.55s var(--ease),
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    padding-top 0.55s var(--ease),
    border-color 0.45s var(--ease);
}

.demo__foot.is-shown {
  max-height: 140px;
  opacity: 1;
  padding-top: 18px;
  border-top-color: var(--border);
  transform: none;
  pointer-events: auto;
}

.demo__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), margin-top 0.5s var(--ease);
}

.demo__chips.is-shown {
  margin-top: 14px;
  max-height: 96px;
}

.demo__chips .chip {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.demo__chips.is-shown .chip {
  opacity: 1;
  transform: none;
}

.demo__chips.is-shown .chip:nth-child(2) {
  transition-delay: 0.09s;
}

.demo__chips.is-shown .chip:nth-child(3) {
  transition-delay: 0.18s;
}

.tabs__panel.is-resetting .demo__chips,
.tabs__panel.is-resetting .demo__foot,
.tabs__panel.is-resetting .demo__chips .chip {
  transition: none;
}

.demo__footrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.result .chip {
  border-color: transparent;
  background: var(--surface-2);
  color: var(--demo-muted);
}

/* ── Сцена 2: редактор кадра ── */

.shot {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: 0 10px 24px rgba(43, 36, 32, 0.12);
  transition: box-shadow var(--ease) 0.3s, transform var(--ease) 0.3s;
}

.shot__images {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 896;
  background: var(--surface-2);
}

.shot__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.shot__image.is-active {
  opacity: 1;
  transform: none;
}

.shot__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(28, 24, 22, 0.74);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
}

.shot__scan {
  position: absolute;
  inset: 0 -45%;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 34%, rgba(255, 255, 255, 0.6) 50%, transparent 66%);
  transition: opacity var(--ease) 0.25s;
}

.shot.is-working {
  box-shadow: 0 0 0 2px var(--accent-soft), 0 0 28px rgba(184, 84, 47, 0.25);
  transform: scale(0.995);
}

.shot.is-working .shot__scan {
  opacity: 1;
  animation: shot-sweep 1.15s linear infinite;
}

@keyframes shot-sweep {
  from {
    transform: translateX(-55%);
  }
  to {
    transform: translateX(55%);
  }
}

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

.shot__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.shot__vers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.shot__replay {
  width: 26px;
  height: 26px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--border-strong);
}

.shot__replay svg {
  width: 15px;
  height: 15px;
  display: block;
  transition: transform var(--ease) 0.22s;
}

.shot__replay:hover {
  color: var(--accent);
}

.shot__replay:hover svg {
  transform: rotate(-45deg);
}

.ver {
  width: 26px;
  height: 26px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
}

.ver::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background var(--ease) 0.18s, transform var(--ease) 0.18s;
}

.ver:hover::before {
  background: var(--accent-soft);
}

.ver.is-active::before {
  background: var(--accent);
  transform: scale(1.35);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat__msg {
  max-width: 92%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.87rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.chat__msg.is-shown {
  opacity: 1;
  transform: none;
}

.chat__msg--me {
  align-self: flex-end;
  background: var(--dark);
  color: var(--text-inverse);
  border-bottom-right-radius: 5px;
}

.chat__msg--ai {
  align-self: flex-start;
  background: var(--surface-2);
  color: #463d37;
  border-bottom-left-radius: 5px;
}

.chat__msg.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: currentColor;
  animation: caret 1.1s steps(1) infinite;
}

.demo--photo .demo__note {
  margin: 0 4px;
  text-align: center;
}

/* ── Сцена 3: анализ объявления ── */

.findings-skel:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.findings-skel p {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 16px;
  border-left: 2px solid var(--accent-soft);
}

.findings-skel span {
  display: block;
  height: 11px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 45%, var(--surface-2) 90%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}

.findings-skel p:nth-child(1) span:last-child,
.findings-skel p:nth-child(3) span:last-child {
  width: 78%;
}

.findings-skel p:nth-child(2) span:last-child {
  width: 86%;
}

.findings-skel p:nth-child(4) span:last-child {
  width: 64%;
}

.findings {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.findings[hidden] {
  display: none;
}

.findings li {
  padding-left: 16px;
  border-left: 2px solid var(--accent-soft);
  font-size: 0.95rem;
  color: var(--demo-muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.findings li.is-shown {
  opacity: 1;
  transform: none;
}

.findings b {
  color: var(--text);
}

.scorecard {
  padding: 22px 18px;
  border-radius: var(--radius);
  background: var(--accent-soft-2);
  border: 1px solid var(--accent-soft);
  text-align: center;
}

.scorecard.is-loading .scorecard__value {
  display: inline-block;
  min-width: 2.4em;
  color: transparent;
  background: linear-gradient(90deg, var(--accent-soft) 0%, #f8e8d8 45%, var(--accent-soft) 90%);
  background-size: 220% 100%;
  border-radius: 8px;
  animation: shimmer 1.5s linear infinite;
}

.scorecard.is-loading .stars__on {
  width: 0 !important;
}

.scorecard.is-loading + .scorerows .badge:not(.is-shown) {
  opacity: 1;
  min-width: 72px;
  height: 22px;
  color: transparent;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 45%, var(--surface-2) 90%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}

.scorecard__value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-hover);
}

.stars {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: #e3d3bd;
}

.stars__on {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--w, 0%);
  overflow: hidden;
  white-space: nowrap;
  color: #d99a3a;
}

.scorecard__cap {
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--demo-muted);
}

.scorerows {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}

.scorerows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 2px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.scorerows li:last-child {
  border-bottom: 0;
}

.badge {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.badge.is-shown {
  opacity: 1;
}

.badge--warn {
  background: #fbe7d5;
  color: #a4611f;
}

.badge--ok {
  background: var(--success-soft);
  color: var(--success);
}

.badge--neutral {
  background: var(--surface-3);
  color: var(--demo-muted);
}

/* ── Сцена 4: материалы ── */

.sheet {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sheet__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sheet__brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.sheet__addr {
  font-size: 0.8rem;
  color: var(--demo-muted);
}

.sheet__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sheet__grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.sheet__lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet__lines span {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
}

.sheet__lines span:nth-child(2) {
  width: 88%;
}

.sheet__lines span:nth-child(3) {
  width: 72%;
}

.sheet__lines span:nth-child(4) {
  width: 44%;
}

.sheet__grid img,
.sheet__lines span {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  transition-delay: calc(var(--d) * 0.12s);
}

.sheet__lines span {
  transition-delay: calc(0.5s + var(--d) * 0.1s);
}

.sheet.is-built .sheet__grid img,
.sheet.is-built .sheet__lines span {
  opacity: 1;
  transform: none;
}

.sheet__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--demo-muted);
}

.sheet__foot b {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
}

.pack {
  display: flex;
  flex-direction: column;
}

.pack li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--demo-muted);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.pack li::before {
  content: "✓";
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 700;
}

.pack li:last-child {
  border-bottom: 0;
}

.pack li.is-shown {
  opacity: 1;
  transform: none;
  color: var(--text);
}

/* ───────────────────────── Тарифы ───────────────────────── */

.pricing {
  padding: clamp(64px, 8vw, 112px) 0;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--ease) 0.2s, box-shadow var(--ease) 0.2s;
}

.plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.plan--featured {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--text-inverse);
  box-shadow: var(--shadow);
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.plan__name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
}

.plan--featured .plan__name {
  color: #e0916f;
}

.plan__price {
  margin-top: 12px;
  font-family: var(--font-display);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan__price b {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan__price span {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.plan--featured .plan__price span {
  color: var(--text-inverse-muted);
}

.plan__hint {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan--featured .plan__hint {
  color: var(--text-inverse-muted);
}

.plan__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 22px 0 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

.plan--featured .plan__list {
  border-top-color: var(--border-dark);
}

.plan__list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  color: var(--text);
}

.plan--featured .plan__list li {
  color: var(--text-inverse);
}

.plan__list li::before {
  content: "✓";
  color: var(--accent);
  font-size: 0.88rem;
  line-height: 1.5;
}

.plan--featured .plan__list li::before {
  color: #e0916f;
}

.plan__list li.is-off {
  color: var(--text-muted);
}

.plan__list li.is-off::before {
  content: "—";
  color: var(--border-strong);
}

.plan .btn {
  margin-top: auto;
}

.pricing__cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.pricing__foot {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 34px;
}

.pricing__note {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 46em;
}

.pricing__agency {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  font-size: 0.94rem;
}

.pricing__agency p {
  flex: 1 1 200px;
  color: var(--text-muted);
}

.pricing__agency b {
  color: var(--text);
}

/* ───────────────────────── FAQ ───────────────────────── */

.faq {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--surface-2);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.faq .section-head {
  margin-bottom: 0;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.faq__list {
  border-top: 1px solid var(--border);
}

.qa {
  border-bottom: 1px solid var(--border);
}

.qa summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color var(--ease) 0.16s;
}

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

.qa summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
  transition: transform var(--ease) 0.2s;
}

.qa[open] summary::after {
  transform: rotate(45deg);
}

.qa summary:hover {
  color: var(--accent);
}

.qa p {
  padding: 0 0 22px;
  max-width: 46em;
  color: var(--text-muted);
  animation: fade-in 0.3s var(--ease) both;
}

/* ───────────────────────── Форма / CTA ───────────────────────── */

.start {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--dark);
  color: var(--text-inverse);
}

.start__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.start .section-title {
  color: var(--text-inverse);
}

.start__lead {
  margin-top: 22px;
  font-size: 1.05rem;
  color: var(--text-inverse-muted);
  max-width: 34em;
}

.start__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--text-inverse-muted);
}

.start__facts li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.start__facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e0916f;
}

.start__form {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  color: var(--text);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.field label span {
  font-weight: 500;
  color: var(--text-muted);
}

.field input,
.field select {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease) 0.16s, background var(--ease) 0.16s;
}

.field input::placeholder {
  color: var(--text-muted);
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  background: var(--surface);
  outline: none;
}

.field.has-error input {
  border-color: #c0392b;
  background: #fbe3e0;
}

.field--agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.field--agree input {
  width: auto;
  padding: 0;
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.field--agree label {
  margin: 0;
  font-weight: 500;
  line-height: 1.45;
}

.field--agree a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field__error {
  margin-top: 7px;
  font-size: 0.83rem;
  color: #c0392b;
}

.form-errors {
  margin: 0 0 16px;
}

.form-errors__item {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.4;
  color: #c0392b;
}

.form-errors__item + .form-errors__item {
  margin-top: 6px;
}

.start__form-lead {
  margin: 0 0 22px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.start__form.is-done .start__form-body,
.start__form:has([data-done]:not([hidden])) .start__form-body {
  display: none;
}

.start__done[hidden] {
  display: none;
}

.start__done:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fade-in 0.35s var(--ease) both;
}

.start__done p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.start__done-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text) !important;
}

.start__done-title::before {
  content: "✓";
  color: var(--success);
  margin-right: 10px;
}

/* ───────────────────────── Подвал ───────────────────────── */

.site-footer {
  background: var(--dark-deep);
  color: var(--text-inverse-muted);
  padding: 56px 0 40px;
  border-top: 1px solid var(--border-dark);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}

.site-footer__brand img {
  height: 30px;
  width: auto;
  margin-bottom: 16px;
}

.site-footer__brand p {
  max-width: 30em;
  font-size: 0.92rem;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}

.site-footer__nav a:hover {
  color: var(--text-inverse);
}

.site-footer__legal {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-top: 28px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.82rem;
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__legal a:hover {
  color: var(--text-inverse);
}

/* ───────────────────────── Текстовая страница ───────────────────────── */

.doc {
  padding: clamp(48px, 7vw, 88px) 0 96px;
}

.doc__inner {
  max-width: 880px;
}

.doc h1 {
  margin-bottom: 28px;
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
}

.doc h2 {
  margin: 44px 0 16px;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}

.doc p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.doc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc ul {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding-left: 24px;
  color: var(--text-muted);
}

.doc__meta {
  color: var(--text-muted);
  font-size: 0.9rem !important;
}

.doc__missing {
  color: #b3261e;
  font-weight: 600;
}

.doc blockquote {
  margin: 28px 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
}

.doc__notice {
  margin-bottom: 40px !important;
}

.doc blockquote p {
  margin: 0;
}

/* ───────────────────────── Модалка входа ───────────────────────── */

body.login-modal-open {
  overflow: hidden;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-modal[hidden] {
  display: none;
}

.login-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 24, 22, 0.42);
}

.login-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.login-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.login-modal__close:hover {
  color: var(--text);
  background: var(--surface-2);
}

.login-modal__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.login-modal__remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 16px;
  font-size: 0.9rem;
}

.login-modal__remember label {
  margin: 0;
}

.login-modal__message {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.login-modal__message[hidden] {
  display: none;
}

.login-modal__register {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.login-modal__register a {
  color: var(--accent);
  font-weight: 600;
}

/* ───────────────────────── Cookies ───────────────────────── */

.cookie-toast[hidden] {
  display: none;
}

.cookie-toast:not([hidden]) {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: min(380px, calc(100vw - 40px));
  padding: 14px 14px 14px 18px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: cookie-in 0.35s var(--ease) both;
}

.cookie-toast p {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.cookie-toast a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-toast .btn {
  flex: none;
}

.cookie-toast.is-leaving {
  animation: cookie-out 0.22s var(--ease) forwards;
}

@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes cookie-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ───────────────────────── Появление при скролле ───────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ───────────────────────── Адаптив ───────────────────────── */

@media (max-width: 1080px) {
  .site-nav {
    gap: 18px;
    font-size: 0.88rem;
  }

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

  .plan--featured {
    order: -1;
  }

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

  .feature--wide {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .motion-section__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .motion-section__copy {
    max-width: 640px;
  }

  .motion-section__media {
    width: 100%;
    max-width: 720px;
    justify-self: center;
  }

  .site-header__inner {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    gap: 12px;
  }

  .site-nav,
  .site-header__actions {
    display: none;
  }

  .burger {
    display: block;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .brand {
    display: flex;
    align-items: center;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .site-header__account {
    display: flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .start__grid,
  .faq__grid,
  .flow__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow__stage {
    position: relative;
    top: auto;
    padding-right: 14px;
  }

  .flow__stage::before {
    inset: 18px 0 -18px 18px;
  }

  .faq .section-head {
    position: static;
  }

  .contrast__grid,
  .pricing__foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo,
  .demo--photo,
  .demo--check,
  .demo--pack {
    grid-template-columns: minmax(0, 1fr);
  }

  .tabs__panels {
    min-height: 0;
  }

  .chat {
    min-height: 0;
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 620px) {
  .shell {
    padding: 0 18px;
  }

  .cookie-toast:not([hidden]) {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
  }

  .hero {
    padding-top: 36px;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .features__grid,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature--wide {
    grid-column: span 1;
  }

  .stage {
    padding: 18px;
  }

  .stage__body {
    min-height: 330px;
  }

  .stage__rail {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .rail__step {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .rail__track {
    flex: 1;
    margin-top: 0;
  }

  .tabs__btn {
    flex: 1 1 auto;
  }

  .tabs__bar--foot .tabs__btn[data-tab="photo"] {
    flex: 1 1 100%;
  }

  .contrast__col,
  .feature,
  .step {
    padding: 24px 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
