/* ============================================================
   Полный зал — лендинг бэк-офиса площадки
   Палитра: тёплая бумага, чернила, золото.
   Шрифты: Playfair Display (заголовки) + Manrope (интерфейс).
   ============================================================ */

:root {
  --ink: #14110f;
  --ink-2: #1c1814;
  --ink-3: #2a241e;
  --cream: #f6f0e4;
  --cream-2: #efe5d5;
  --paper: #fffdf8;
  --gold: #c2a06a;
  --gold-2: #a9854f;
  --gold-3: #e6d3b0;
  --terra: #b4552d;
  --green: #2f5d46;
  --muted: #6f6558;
  --muted-2: #8b8072;
  --muted-light: rgba(246, 240, 228, 0.66);
  --line: rgba(20, 17, 15, 0.12);
  --line-strong: rgba(20, 17, 15, 0.24);
  --line-light: rgba(246, 240, 228, 0.16);
  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Manrope", -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 4px;
  --radius-lg: 10px;
  --header-h: 80px;
  --shadow: 0 30px 70px -38px rgba(20, 17, 15, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

::selection { background: var(--gold-3); color: var(--ink); }

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

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

/* Ссылки внутри пояснений (их добавляет облачная платформа): на лендинге
   ссылки наследуют цвет текста, поэтому подчёркиваем их явно. */
.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

button { font: inherit; color: inherit; }

h1, h2, h3, h4, p { margin-top: 0; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1 em, h2 em { font-style: italic; color: var(--gold-2); }

h3 { font-weight: 700; letter-spacing: -0.01em; }

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

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus { transform: none; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn .icon { width: 18px; height: 18px; }

.btn--gold {
  background: var(--gold);
  color: var(--ink);
}

.btn--gold:hover {
  background: var(--gold-3);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  background: rgba(20, 17, 15, 0.05);
  border-color: var(--ink);
}

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

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.header.is-scrolled {
  background: rgba(246, 240, 228, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -26px rgba(20, 17, 15, 0.5);
}

.header.is-menu-open { background: var(--cream); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  position: relative;
  z-index: 102;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--gold-2);
}

.brand__mark svg { width: 27px; height: 27px; }

.brand__text strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.23rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.brand__text small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav > a:not(.btn) {
  position: relative;
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
}

.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav > a:not(.btn):hover::after { transform: scaleX(1); }

.nav__cta { min-height: 44px; padding: 0 18px; font-size: 0.86rem; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  z-index: 103;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Герой ---------- */

.hero {
  position: relative;
  padding: clamp(44px, 6vw, 88px) 0 0;
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(20, 17, 15, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 17, 15, 0.05) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(66% 62% at 52% 34%, #000 0%, transparent 78%);
  mask-image: radial-gradient(66% 62% at 52% 34%, #000 0%, transparent 78%);
  opacity: 0.7;
}

.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -10%;
  width: 65vw;
  height: 65vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle at 50% 50%, rgba(194, 160, 106, 0.26), transparent 64%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__copy h1 {
  margin: 0 0 24px;
  font-size: clamp(2.8rem, 5.1vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
}

.hero__lead {
  max-width: 56ch;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.14rem);
  line-height: 1.62;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(194, 160, 106, 0.18);
}

.hero__inner > *,
.whitelabel__grid > *,
.demo__grid > *,
.faq__grid > *,
.modes__grid > *,
.pricing__grid > *,
.features__grid > *,
.problems__grid > * { min-width: 0; }

.hero__visual { position: relative; min-width: 0; }

.hero__visual::before {
  content: "";
  position: absolute;
  inset: -14%;
  z-index: 0;
  background: radial-gradient(circle at 58% 42%, rgba(194, 160, 106, 0.22), transparent 62%);
  filter: blur(6px);
}

.browser {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  background: #f1e7d7;
  border-bottom: 1px solid var(--line);
}

.browser__dots { display: flex; gap: 5px; }

.browser__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(20, 17, 15, 0.18);
}

.browser__url {
  margin-left: 8px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.01em;
}

.browser { min-width: 0; }

.browser__zoom {
  position: relative;
  display: block;
  cursor: zoom-in;
}

.browser img { width: 100%; max-width: 100%; }

.browser__caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* ---------- Цифры ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(44px, 6vw, 76px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats li {
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--line);
}

.stats li:last-child { border-right: 0; padding-right: 0; }

.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  color: var(--gold-2);
}

.stats span {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

.stats small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

/* ---------- Секции ---------- */

.section { padding: clamp(64px, 9vw, 116px) 0; }

.section--ink { background: var(--ink); color: var(--cream); }

.section--paper { background: var(--paper); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--gold-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  flex: none;
  background: currentColor;
  opacity: 0.8;
}

.section--ink .eyebrow { color: var(--gold-3); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.04;
}

.section-head p:not(.eyebrow) {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.section--ink .section-head p:not(.eyebrow) { color: var(--muted-light); }

.section-head--split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: end;
  max-width: none;
}

.section-head--split .section-head__note {
  max-width: 32ch;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.section--ink .section-head__note { color: var(--muted-light); }

.lead {
  max-width: 56ch;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.section--ink .lead { color: var(--muted-light); }

/* ---------- Проблемы ---------- */

.problems__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: 4px;
}

.problem {
  padding: clamp(24px, 3.2vw, 40px);
  background: var(--ink);
}

.problem__num {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--gold);
}

.problem h3 {
  margin: 18px 0 10px;
  font-size: 1.16rem;
}

.problem p {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.94rem;
  line-height: 1.65;
}

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

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

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

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(194, 160, 106, 0.55);
  box-shadow: 0 20px 44px -34px rgba(20, 17, 15, 0.5);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-2);
}

.feature__icon .icon { width: 20px; height: 20px; }

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

.features__note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.features__note code,
.faq__answer code {
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(20, 17, 15, 0.06);
  font-family: var(--mono);
  font-size: 0.82em;
}

/* ---------- Галерея ---------- */

.gallery__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.gallery__tab {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.gallery__tab:hover { border-color: var(--gold); color: var(--ink); }

.gallery__tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.gallery__panel[hidden] { display: none; }

.gallery__panel.is-active { animation: panelIn 0.35s var(--ease) both; }

.gallery__caption {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Реальные экраны ---------- */

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

.screen { margin: 0; }

.screen__frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 50px -38px rgba(20, 17, 15, 0.45);
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.screen__frame::after,
.browser__zoom::after {
  content: "Увеличить";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 99px;
  background: rgba(20, 17, 15, 0.78);
  color: var(--cream);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}

.screen__frame:hover::after,
.screen__frame:focus-visible::after,
.browser__zoom:hover::after,
.browser__zoom:focus-visible::after {
  opacity: 1;
  transform: none;
}

.screen:hover .screen__frame {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -40px rgba(20, 17, 15, 0.55);
}

.screen__frame img { width: 100%; display: block; }

.screen figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.screen__num {
  flex: none;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1;
  color: var(--gold-2);
}

.screen figcaption strong {
  margin-right: 4px;
  color: var(--ink);
  font-weight: 700;
}

.screens__note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---------- Просмотр скриншота ---------- */

.lightbox {
  width: min(1400px, 94vw);
  max-width: none;
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  overflow: visible;
}

.lightbox::backdrop { background: rgba(20, 17, 15, 0.93); }

.lightbox__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid rgba(246, 240, 228, 0.16);
  border-radius: 10px;
  box-shadow: 0 40px 100px -40px #000;
}

.lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 74vh;
  margin: 0 auto;
  border-radius: 4px;
  background: #0b0908;
}

.lightbox__caption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 4px 2px;
  color: var(--muted-light);
  font-size: 0.86rem;
  line-height: 1.5;
}

.lightbox__caption strong {
  color: var(--cream);
  font-size: 0.96rem;
}

.lightbox__count {
  margin-left: auto;
  color: var(--gold-3);
  font-size: 0.78rem;
  white-space: nowrap;
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(246, 240, 228, 0.3);
  border-radius: 50%;
  background: rgba(20, 17, 15, 0.78);
  color: var(--cream);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(246, 240, 228, 0.3);
  border-radius: 50%;
  background: rgba(20, 17, 15, 0.78);
  color: var(--cream);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

.lightbox[open] .lightbox__inner { animation: lightboxIn 0.25s var(--ease); }

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: none; }
}

body.lightbox-open { overflow: hidden; }

/* ---------- White-label ---------- */

.whitelabel__grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.whitelabel__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone {
  position: relative;
  width: min(300px, 82%);
  padding: 9px;
  border: 1px solid #3a322a;
  border-radius: 38px;
  background: #2a241e;
  box-shadow: 0 44px 90px -42px rgba(0, 0, 0, 0.85);
}

.phone__speaker {
  position: absolute;
  top: 15px;
  left: 50%;
  z-index: 2;
  width: 88px;
  height: 20px;
  border-radius: 0 0 14px 14px;
  background: #2a241e;
  transform: translateX(-50%);
}

.phone__zoom { display: block; cursor: zoom-in; }

.phone img {
  width: 100%;
  border-radius: 29px;
}

.whitelabel .browser__caption {
  color: var(--muted-light);
  text-align: center;
}

.whitelabel__copy h2 {
  margin: 0 0 20px;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 1.06;
  overflow-wrap: break-word;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  line-height: 1.55;
}

.checklist .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--gold-2);
}

.checklist--light li { color: rgba(246, 240, 228, 0.82); }
.checklist--light .icon { color: var(--gold-3); }

/* ---------- Коробка или облако ---------- */

.modes__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mode-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mode-card--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.mode-card .feature__icon { margin-bottom: 18px; }

.mode-card--dark .feature__icon {
  border-color: var(--line-light);
  color: var(--gold-3);
}

.mode-card h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.mode-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.mode-card--dark p { color: var(--muted-light); }

.mode-list {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.mode-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.91rem;
  line-height: 1.5;
}

.mode-list .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--gold-2); }
.mode-card--dark .mode-list .icon { color: var(--gold-3); }

.mode-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.mode-card--dark .btn--gold { color: var(--ink); }

.modes__note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---------- Как запустить ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.steps__num {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold-2);
}

.steps h3 {
  margin: 18px 0 8px;
  font-size: 1.08rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

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

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan--featured {
  border-color: var(--gold);
  box-shadow: 0 24px 60px -42px rgba(194, 160, 106, 0.8);
}

.plan__badge {
  position: absolute;
  top: -11px;
  left: 32px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
}

.plan__sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.87rem;
}

.plan__price {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
}

.plan ul {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.5;
}

.plan li .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--gold-2); }

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

.pricing__note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---------- Для кого ---------- */

.forwhom {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}

.forwhom__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.forwhom__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 17, 15, 0.94) 0%, rgba(20, 17, 15, 0.66) 52%, rgba(20, 17, 15, 0.18) 100%),
    linear-gradient(0deg, rgba(20, 17, 15, 0.86) 0%, transparent 62%);
}

.forwhom__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(64px, 9vw, 112px) 0;
  color: var(--cream);
}

.forwhom h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.05;
}

.forwhom__lead {
  max-width: 56ch;
  margin: 0 0 28px;
  color: rgba(246, 240, 228, 0.78);
  font-size: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 8px 14px;
  border: 1px solid var(--line-light);
  border-radius: 99px;
  color: rgba(246, 240, 228, 0.86);
  font-size: 0.79rem;
}

/* ---------- FAQ ---------- */

.faq__grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.faq__head { position: sticky; top: calc(var(--header-h) + 24px); }

.faq__head h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.3vw, 3rem);
  line-height: 1.05;
}

.faq__head p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.faq__head a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

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

.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

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

.faq__item summary span {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.faq__item summary span::before,
.faq__item summary span::after {
  content: "";
  position: absolute;
  background: var(--gold-2);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.faq__item summary span::before {
  top: 50%;
  left: 0;
  width: 14px;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq__item summary span::after {
  top: 50%;
  left: 6.25px;
  width: 1.5px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq__item[open] summary span::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__answer {
  max-width: 70ch;
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq__answer p { margin: 0; }

/* ---------- Демо и форма ---------- */

.demo__grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.demo__copy h2 {
  margin: 0 0 20px;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 1.06;
  overflow-wrap: break-word;
}

.demo__contacts {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.demo__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-size: 0.96rem;
  font-weight: 600;
}

.demo__contacts .icon { color: var(--gold-3); }

.demo__note {
  margin: 28px 0 0;
  color: var(--muted-light);
  font-size: 0.84rem;
}

.form {
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--paper);
  border-radius: 6px;
  color: var(--ink);
  box-shadow: 0 30px 80px -44px rgba(0, 0, 0, 0.55);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field__optional {
  color: var(--muted-2);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: #a79c8e; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(194, 160, 106, 0.18);
}

.field.is-error input,
.field.is-error select,
.field.is-error textarea { border-color: var(--terra); }

.field__error {
  color: var(--terra);
  font-size: 0.74rem;
  line-height: 1.4;
}

.field__error:empty { display: none; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox input {
  flex: none;
  margin-top: 3px;
  accent-color: var(--gold-2);
}

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

.checkbox.is-error { color: var(--terra); }

.checkbox.is-error input {
  outline: 2px solid rgba(180, 85, 45, 0.45);
  outline-offset: 2px;
}

.form__submit { margin-top: 16px; }

.form__status {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.form__status.is-success { color: var(--green); }
.form__status.is-error { color: var(--terra); }
.form__status.is-info { color: var(--muted); }

.form__hint {
  margin: 8px 0 0;
  color: var(--muted-2);
  font-size: 0.72rem;
  line-height: 1.5;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.footer {
  padding: 64px 0 28px;
  background: var(--ink);
  color: var(--cream);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.15fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-light);
}

.brand--footer .brand__mark {
  border-color: var(--line-light);
  color: var(--gold-3);
}

.brand--footer .brand__text small { color: var(--muted-light); }

.footer__brand p {
  max-width: 36ch;
  margin: 20px 0 0;
  color: var(--muted-light);
  font-size: 0.86rem;
}

.footer h4 {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  color: rgba(246, 240, 228, 0.78);
  font-size: 0.88rem;
  transition: color 0.2s var(--ease);
}

.footer a:hover { color: var(--cream); }

.footer__mail {
  display: block;
  color: var(--cream) !important;
  font-family: var(--serif);
  font-size: 1.25rem !important;
  line-height: 1.2;
}

.footer__tg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.footer__tg .icon { width: 17px; height: 17px; color: var(--gold-3); }

.footer__work {
  margin: 16px 0 0;
  color: var(--muted-light);
  font-size: 0.78rem;
  line-height: 1.5;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  color: var(--muted-light);
  font-size: 0.76rem;
}

.footer__bottom a { font-size: 0.76rem; }

/* ---------- Юридические страницы ---------- */

.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }

.legal__inner { max-width: 820px; margin: 0 auto; }

.legal h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.05;
  overflow-wrap: break-word;
}

.legal__meta {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 0.82rem;
}

.legal h2 {
  margin: 36px 0 12px;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.25;
  overflow-wrap: break-word;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.legal p { margin: 0 0 14px; }

.legal ul,
.legal ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

.legal li { margin-bottom: 6px; }

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

.legal__summary {
  margin: 0 0 32px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.legal__note {
  margin-top: 40px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- Анимации появления ---------- */

.js [data-reveal] {
  transform: translateY(12px);
  transition: transform 0.7s var(--ease);
}

.js [data-reveal].is-visible { transform: none; }

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

@media (hover: none) {
  .screen__frame::after,
  .browser__zoom::after { opacity: 1; transform: none; }
}

@media (max-width: 1120px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 820px; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .whitelabel__grid { grid-template-columns: 1fr; }
  .whitelabel__visual { order: 2; }
  .whitelabel__copy { order: 1; }
  .modes__grid { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
  .plan--featured { box-shadow: none; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .demo__grid { grid-template-columns: 1fr; }
  .section-head--split { grid-template-columns: 1fr; gap: 20px; }
  .section-head--split .section-head__note { max-width: 56ch; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: var(--cream);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
      visibility 0.28s var(--ease);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav > a:not(.btn) {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 400;
    line-height: 1.1;
    padding: 4px 0;
  }

  .nav > a:not(.btn)::after { display: none; }

  .nav__cta {
    width: 100%;
    min-height: 52px;
    margin-top: 12px;
    font-size: 0.95rem;
  }

  .menu-toggle { display: flex; }

  .stats { grid-template-columns: 1fr 1fr; }

  .stats li {
    padding: 20px 20px 20px 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .stats li:nth-child(2n) { border-right: 0; padding-right: 0; }
  .stats li:nth-last-child(-n + 2) { border-bottom: 0; }

  .problems__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .forwhom { min-height: 520px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

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

@media (max-width: 680px) {
  .lightbox { width: 96vw; }
  .lightbox__inner { padding: 8px; }
  .lightbox__image { max-height: 68vh; }
  .lightbox__caption { flex-wrap: wrap; gap: 4px 10px; font-size: 0.8rem; }
  .lightbox__count { margin-left: 0; }
  .lightbox__nav { width: 38px; height: 38px; font-size: 17px; }
  .lightbox__close { width: 36px; height: 36px; font-size: 22px; }
  .features__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .hero__copy h1 { font-size: clamp(2.5rem, 11vw, 3.6rem); }
  .phone { width: min(270px, 88%); }
  .field input,
  .field select,
  .field textarea { font-size: 16px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 10px; }
  .forwhom { min-height: 560px; }
  .chips li { font-size: 0.75rem; }
}

@media (max-width: 460px) {
  :root { --header-h: 70px; }
  .header__inner--legal { gap: 10px; }
  .header__inner--legal .brand__text small { display: none; }
  .header__inner--legal .brand__text strong { font-size: 1.1rem; }
  .header__inner--legal .btn { padding: 0 12px; font-size: 0.8rem; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__text strong { font-size: 1.1rem; }
  .stats li { padding: 18px 12px 18px 0; }
  .stats strong { font-size: 2.2rem; }
  .section { padding: 56px 0; }
  .browser__url { font-size: 9px; }
  .gallery__tabs { gap: 6px; }
  .gallery__tab { padding: 8px 12px; font-size: 0.8rem; }
  .plan { padding: 26px; }
  .form { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { transform: none; }
}
