/* TaskBro — лендинг. Цвета и шрифт совпадают с приложением (frontend/src/styles.css). */

/* Manrope (SIL OFL, assets/fonts/OFL.txt) лежит рядом с сайтом, а не на Google Fonts:
   иначе браузер каждого посетителя отправлял бы его IP-адрес зарубежному сервису. */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1b1e2b;
  --ink-deep: #13161d;
  --ink-soft: #262a3a;
  --ink-line: rgba(255, 255, 255, 0.1);
  --bg: #eef0f4;
  --card: #ffffff;
  --text: #1b1e2b;
  --muted: #62687a;
  --line: #e4e7ee;
  --accent: #ffc400;
  --accent-soft: #fff4cc;
  --accent-ink: #1b1e2b;
  --on-dark: #f4f5f8;
  --on-dark-muted: rgba(244, 245, 248, 0.68);
  --ok: #1fa971;
  --ok-bg: #e7f6ee;
  --ok-text: #176b45;
  --wait-bg: #fff4cc;
  --wait-text: #8a5b00;
  --bad: #c9303f;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(23, 27, 43, 0.05), 0 10px 28px rgba(23, 27, 43, 0.08);
  --shadow-lg: 0 2px 4px rgba(23, 27, 43, 0.06), 0 28px 64px rgba(23, 27, 43, 0.16);
  --container: 1180px;
  --header-h: 68px;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
}

*,
*::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(--bg);
  color: var(--text);
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

fieldset {
  border: 0;
  min-width: 0;
}

a {
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

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

.ico {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

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

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

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px rgba(255, 196, 0, 0.28);
}

.btn--primary:hover {
  background: #ffd033;
  box-shadow: 0 12px 32px rgba(255, 196, 0, 0.4);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-dark);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.09);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 24px rgba(27, 30, 43, 0.22);
}

.btn--dark:hover {
  background: #2a2f42;
}

.btn--outline {
  border-color: #cfd4df;
  background: transparent;
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--ink);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.92rem;
  border-radius: 12px;
}

.btn--lg {
  padding: 16px 26px;
  font-size: 1.05rem;
  border-radius: 16px;
}

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

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.btn-busy {
  display: none;
}

.is-busy .btn-label {
  display: none;
}

.is-busy .btn-busy {
  display: inline;
}

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

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.header.is-stuck,
.header.is-open {
  background: rgba(19, 22, 29, 0.82);
  border-bottom-color: var(--ink-line);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--accent);
}

.brand b {
  color: var(--accent);
  font-weight: 800;
}

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

.nav > a {
  color: var(--on-dark-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav > a:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  gap: 10px;
  margin-left: 8px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}

.burger .ico {
  width: 22px;
  height: 22px;
}

.burger .ico--close,
.header.is-open .burger .ico--open {
  display: none;
}

.header.is-open .burger .ico--close {
  display: block;
}

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

.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 0;
  background:
    linear-gradient(180deg, var(--ink-deep) 0%, var(--ink) 62%, var(--ink) 100%);
  color: var(--on-dark);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(1100px, 120vw);
  height: 520px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(255, 196, 0, 0.22), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-dark-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 196, 0, 0.2);
}

.hero h1 {
  max-width: 980px;
  margin-top: 26px;
  font-size: clamp(2.3rem, 6.2vw, 4.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hl {
  color: var(--accent);
}

.hero-lead {
  max-width: 680px;
  margin-top: 24px;
  color: var(--on-dark-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 28px;
  color: var(--on-dark-muted);
  font-size: 0.93rem;
  font-weight: 600;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-facts .ico {
  color: var(--accent);
  stroke-width: 2.6;
  width: 1.05em;
  height: 1.05em;
}

/* Макет интерфейса */

.mock-wrap {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin-top: 64px;
}

.mock {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: var(--bg);
  color: var(--text);
  text-align: left;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.08) inset,
    0 40px 120px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.mock-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
}

.mock-logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

.mock-crumb i {
  margin: 0 4px;
  color: rgba(255, 255, 255, 0.4);
  font-style: normal;
}

.mock-search {
  margin-left: auto;
  padding: 6px 60px 6px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.mock-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 18px 0;
  height: 348px;
}

.k-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 16px 16px 0 0;
  background: #e3e6ed;
}

.k-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 2px;
  font-size: 0.86rem;
}

.k-head span {
  padding: 1px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.k-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  font-size: 0.82rem;
  line-height: 1.35;
  box-shadow: 0 1px 2px rgba(23, 27, 43, 0.05);
}

.k-card p {
  font-weight: 600;
}

.k-card--active {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(255, 196, 0, 0.22),
    0 12px 24px rgba(23, 27, 43, 0.12);
  transform: rotate(-1.2deg);
}

.k-card--ghost {
  opacity: 0.7;
}

.k-card--done p {
  color: var(--muted);
}

.k-top,
.k-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.k-top {
  justify-content: space-between;
}

.k-code {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.k-urg,
.k-hours,
.k-act,
.tag,
.k-date {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.k-urg--high {
  background: #fde8ea;
  color: #a12632;
}

.k-hours {
  background: var(--accent-soft);
  color: var(--wait-text);
}

.k-act {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.tag {
  background: #eef0f4;
  color: #4a5160;
}

.tag--blue {
  background: #d4edfc;
  color: #0c5278;
}

.tag--violet {
  background: #ebe5fb;
  color: #50389a;
}

.tag--green {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.k-date {
  padding-inline: 0;
  color: var(--muted);
  font-weight: 600;
}

.k-date--hot {
  color: #a12632;
}

.k-meta .ava {
  margin-left: auto;
}

.k-progress {
  height: 4px;
  border-radius: 999px;
  background: #eef0f4;
  overflow: hidden;
}

.k-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.ava {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ava--y {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Всплывающие карточки у макета */

.toast {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(38, 42, 58, 0.92);
  color: #fff;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.3;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}

.toast b,
.toast small {
  display: block;
}

.toast small {
  color: var(--on-dark-muted);
  font-size: 0.78rem;
}

.toast-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
}

.toast-ico--ok {
  background: var(--ok);
  color: #fff;
}

.toast-ico .ico {
  stroke-width: 2.4;
}

.toast--act {
  right: -72px;
  top: 214px;
}

.toast--hours {
  left: -56px;
  bottom: 30px;
  animation-delay: -3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

.audience {
  background: var(--ink);
  color: var(--on-dark-muted);
  border-top: 1px solid var(--ink-line);
}

.audience-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 22px;
  font-size: 0.93rem;
  font-weight: 600;
}

.audience-title {
  color: #fff;
}

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

.audience li {
  padding: 5px 14px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

/* ───────── Секции ───────── */

.section {
  padding: 112px 0;
}

.section--tight {
  padding: 40px 0 112px;
}

.section--flush {
  padding-bottom: 0;
}

.section--dark {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(255, 196, 0, 0.1), transparent 70%),
    var(--ink-deep);
  color: var(--on-dark);
}

.section-head {
  max-width: 780px;
  margin-bottom: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.section--dark .eyebrow {
  color: var(--on-dark-muted);
}

.eyebrow--ink {
  color: rgba(27, 30, 43, 0.7);
}

.eyebrow--ink::before {
  background: var(--ink);
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.section-lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.1rem;
  text-wrap: pretty;
}

.section--dark .section-lead {
  color: var(--on-dark-muted);
}

/* ───────── Карточки возможностей ───────── */

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(23, 27, 43, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #d5d9e3;
  box-shadow: var(--shadow);
}

.card > p {
  color: var(--muted);
  font-size: 0.98rem;
}

.badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--accent);
}

.badge .ico {
  width: 22px;
  height: 22px;
}

.badge--accent {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.bento-a {
  grid-column: span 7;
}

.bento-b {
  grid-column: span 5;
}

.bento-c {
  grid-column: span 4;
}

.bento-d {
  grid-column: span 6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.chips li {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg);
  color: #3d4354;
  font-size: 0.85rem;
  font-weight: 600;
}

.ticks {
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}

.card .ticks {
  margin-top: auto;
  padding-top: 10px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5b00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.500 12.500l3.500 3.500 7.500-7.500'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.ticks--light li::before {
  background-color: rgba(255, 196, 0, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc400' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.500 12.500l3.500 3.500 7.500-7.500'/%3E%3C/svg%3E");
}

/* Мини-иллюстрации в карточках */

.viz {
  margin-top: auto;
  padding: 16px;
  border-radius: 16px;
  background: var(--bg);
}

.card .viz {
  margin-top: auto;
}

.viz-week {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
}

.bar {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex: 1;
  height: 100%;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.bar i {
  width: 100%;
  border-radius: 8px;
  background: var(--ink);
  transform-origin: bottom;
}

.bar--now i {
  background: var(--accent);
}

.bar--empty i {
  background: #d3d8e2;
}

.viz-total {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  margin-left: 6px;
  text-align: right;
  line-height: 1.2;
}

.viz-total b {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.viz-total small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.viz-confirm {
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.viz-confirm li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.st {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 700;
}

.st--ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.st--wait {
  background: var(--wait-bg);
  color: var(--wait-text);
}

.viz-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0;
  background: none;
}

.viz-stats div {
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  border-radius: 14px;
  background: var(--bg);
}

.viz-stats b {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
}

.viz-stats .bad {
  color: var(--bad);
}

.viz-stats .wait {
  color: #b07a00;
}

.viz-stats small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
}

.extras {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.extras li {
  display: flex;
  gap: 14px;
}

.extras .ico {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--accent);
}

.extras b {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 0.98rem;
}

/* ───────── Как работает ───────── */

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: none;
}

.flow-step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -21px;
  z-index: 1;
  width: 22px;
  height: 2px;
  background: repeating-linear-gradient(90deg, #b9bfcc 0 4px, transparent 4px 8px);
}

.flow-num {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.flow-step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.flow-step--final {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 18px 44px rgba(255, 196, 0, 0.3);
}

.flow-step--final .flow-num {
  background: var(--ink);
  color: var(--accent);
}

.flow-step--final p {
  color: rgba(27, 30, 43, 0.78);
}

/* ───────── Интеграция с 1С ───────── */

.tab-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--ink-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--on-dark-muted);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.tab:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.tab .ico {
  width: 24px;
  height: 24px;
}

.tab b,
.tab small {
  display: block;
}

.tab b {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.tab small {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.75;
}

.tab[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  margin-top: 16px;
  padding: 44px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel:not([hidden]) {
  animation: panel-in 0.35s ease both;
}

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

.tab-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.tab-text h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  text-wrap: balance;
}

.tab-text > p {
  color: var(--on-dark-muted);
}

.tab-text .btn {
  margin-top: 8px;
}

.code {
  border: 1px solid var(--ink-line);
  border-radius: 18px;
  background: #0d0f14;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-line);
  color: var(--on-dark-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.code-head i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.code-head span {
  margin-left: 8px;
}

.code pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  color: #d5d9e6;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.7;
}

.code code {
  font-family: inherit;
}

.c-k {
  color: var(--accent);
  font-weight: 700;
}

.c-s {
  color: #8fc7ff;
}

.c-v {
  color: #b9e6c9;
}

.c-n {
  color: #ffb38a;
}

.c-m {
  color: rgba(255, 255, 255, 0.4);
}

.c-ok {
  color: #5fe0a4;
  font-weight: 700;
}

.steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px 16px 64px;
  border: 1px solid var(--ink-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  transform: translateY(-50%);
}

.steps span {
  color: var(--on-dark-muted);
  font-size: 0.9rem;
}

/* ───────── Варианты поставки ───────── */

.plans {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  align-items: stretch;
  gap: 20px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.plan--featured {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-lg);
}

.plan-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.plan-head .badge {
  margin: 0;
}

.plan-head h3 {
  font-size: 1.35rem;
}

.plan-head p {
  color: var(--muted);
  font-size: 0.92rem;
}

.plan-flag {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--wait-text);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--bg);
}

.segmented button {
  padding: 9px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.segmented button.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(23, 27, 43, 0.12);
}

.segmented em {
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.74rem;
  font-style: normal;
}

.price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price b {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

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

.range {
  display: grid;
  gap: 12px;
}

.range-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.range-label output {
  display: inline-block;
  min-width: 2.4em;
  padding: 1px 9px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--accent);
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  --fill: 8%;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ink) var(--fill), #dfe3ea var(--fill));
}

input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #dfe3ea;
}

input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--ink);
}

input[type="range"]::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 10px rgba(23, 27, 43, 0.25);
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 10px rgba(23, 27, 43, 0.25);
}

.price-total {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.price-total b {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.plan .ticks {
  margin-bottom: auto;
}

.plan-note {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.9rem;
}

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

/* ───────── Демо-стенд ───────── */

.demo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 40px;
  padding: 56px;
  border-radius: 32px;
  background: var(--accent);
  color: var(--accent-ink);
  overflow: hidden;
}

.demo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(27, 30, 43, 0.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
  pointer-events: none;
}

.demo-text {
  position: relative;
}

.demo-text > p:not(.eyebrow) {
  max-width: 520px;
  margin-top: 16px;
  color: rgba(27, 30, 43, 0.8);
  font-size: 1.08rem;
  font-weight: 500;
}

.demo-text > p.demo-terms {
  margin-top: 22px;
  color: rgba(27, 30, 43, 0.7);
  font-size: 0.85rem;
  line-height: 1.45;
}

.demo-terms a {
  font-weight: 700;
  text-underline-offset: 3px;
}

.demo-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 30px;
}

.demo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.demo-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.demo-window {
  width: min(100%, 300px);
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 30px 60px rgba(27, 30, 43, 0.35);
  transform: rotate(3deg);
  overflow: hidden;
}

.demo-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ink-line);
  color: var(--on-dark-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.demo-window-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.demo-window-bar span {
  margin-left: 8px;
}

.demo-window-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 24px 28px;
  font-size: 0.9rem;
}

.demo-window-body img {
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent);
}

.demo-window-body b {
  margin: 6px 0 4px;
}

.demo-field,
.demo-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 11px;
}

.demo-field {
  border: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-dark-muted);
}

.demo-btn {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-align: center;
}

/* ───────── Формы ───────── */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 56px;
}

.next {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  counter-reset: next;
}

.next li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 56px;
  counter-increment: next;
}

.next li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--accent);
  font-weight: 800;
}

.next span {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.form {
  display: grid;
  gap: 18px;
}

.form[hidden] {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 18px;
}

.field {
  display: grid;
  align-content: start;
  gap: 7px;
}

.field > span,
.field > legend {
  font-size: 0.88rem;
  font-weight: 700;
}

.field > legend {
  margin-bottom: 9px;
}

.field i {
  color: var(--bad);
  font-style: normal;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: #f7f8fa;
  font-size: 1rem;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

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

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

.field input:hover,
.field textarea:hover {
  border-color: #cfd4df;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 196, 0, 0.35);
}

.field.is-invalid input:not([type="checkbox"]),
.field.is-invalid textarea {
  border-color: var(--bad);
  background: #fff7f7;
}

.field-error {
  color: var(--bad);
  font-size: 0.82rem;
  font-weight: 600;
}

.field-error:empty {
  display: none;
}

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

.choice label {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: inline-block;
  padding: 9px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #f7f8fa;
  font-size: 0.92rem;
  font-weight: 600;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.choice label:hover span {
  border-color: #cfd4df;
}

.choice input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--accent);
}

.choice input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  cursor: pointer;
}

.consent > span {
  font-weight: 500;
  font-size: inherit;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.consent .field-error {
  grid-column: 2;
}

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

.form-fail {
  padding: 12px 16px;
  border-radius: 12px;
  background: #fde8ea;
  color: #a12632;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 36px 12px;
  text-align: center;
}

.form-done[hidden] {
  display: none;
}

.form-done:focus {
  outline: none;
}

.form-done h3 {
  font-size: 1.5rem;
}

.form-done p {
  max-width: 380px;
  color: var(--muted);
}

.form-done .btn {
  margin-top: 10px;
}

.done-ico {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok-text);
  animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.done-ico .ico {
  width: 32px;
  height: 32px;
  stroke-width: 2.6;
}

@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}

/* ───────── Вопросы ───────── */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 56px;
}

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

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: #cfd4df;
}

.faq summary {
  position: relative;
  padding: 22px 64px 22px 26px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1e2b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  transform: translateY(-50%);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease;
}

.faq details[open] summary::after {
  background-color: var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 0.98rem;
}

.faq details a {
  color: var(--text);
  font-weight: 700;
  text-underline-offset: 3px;
}

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

.footer {
  padding: 36px 0;
  background: var(--ink-deep);
  color: var(--on-dark-muted);
  font-size: 0.9rem;
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-left: auto;
}

.footer-nav a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: #fff;
}

/* Второй ряд подвала: копирайт и документы. */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  flex-basis: 100%;
  padding-top: 18px;
  border-top: 1px solid var(--ink-line);
  font-size: 0.85rem;
}

.footer-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-docs a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-docs a:hover,
.footer-docs a[aria-current="page"] {
  color: #fff;
}

/* Подпись разработчика — отдельным рядом по центру под документами: подпись сверху, логотип
   «Ассистента» под ней. Логотип в фирменных цветах на светлой плашке — его тёмно-синяя надпись
   на тёмном подвале иначе не видна. */
.footer-dev {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-basis: 100%;
  padding-top: 22px;
  border-top: 1px solid var(--ink-line);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-dev img {
  display: block;
  box-sizing: content-box;
  width: auto;
  height: 26px;
  padding: 9px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.footer-dev:hover {
  color: #fff;
}

.footer-dev:hover img {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18), 0 8px 22px rgba(0, 0, 0, 0.4);
}

.footer-dev:focus-visible {
  outline: none;
}

.footer-dev:focus-visible img {
  box-shadow: 0 0 0 3px var(--accent, #ffc400);
}

/* ───────── Документы: соглашение, политика, согласие ───────── */

.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--ink-deep);
  border-bottom: 1px solid var(--ink-line);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on-dark-muted);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.legal-back:hover {
  color: #fff;
}

.legal-back .ico {
  transform: scaleX(-1);
}

.legal {
  padding: 56px 0 88px;
}

.legal-doc {
  max-width: 860px;
  margin-inline: auto;
  padding: 56px 64px 64px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.legal-doc h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.legal-meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-doc h2 {
  margin-top: 44px;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.legal-doc h3 {
  margin-top: 28px;
  font-size: 1.05rem;
}

.legal-doc p,
.legal-doc li {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.legal-doc ul {
  margin-top: 4px;
}

.legal-doc ul li {
  position: relative;
  margin-top: 8px;
  padding-left: 22px;
}

.legal-doc ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-doc a {
  font-weight: 700;
  text-underline-offset: 3px;
}

.legal-lead {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.legal-doc .legal-lead p:first-child {
  margin-top: 0;
}

.legal-purpose {
  margin-top: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.legal-purpose h3 {
  margin-top: 0;
}

.legal-purpose dl {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px 18px;
  margin: 14px 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.legal-purpose dt {
  color: var(--muted);
  font-weight: 700;
}

.legal-purpose dd {
  margin: 0;
}

.legal-req {
  margin-top: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.legal-doc .legal-req p {
  margin-top: 4px;
}

/* Части реквизитов, которые нельзя разрывать переносом («помещение 7-Н»). */
.nobr {
  white-space: nowrap;
}

/* Реквизиты, которые ещё нужно вписать. Найти все: grep -n 'class="fill"' *.html */
.fill {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--wait-bg);
  color: var(--wait-text);
  font-weight: 700;
}

/* ───────── Окно демо ───────── */

.dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 36px;
  border: 0;
  border-radius: 28px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
  overflow-y: auto;
}

.dialog::backdrop {
  background: rgba(19, 22, 29, 0.66);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dialog[open] {
  animation: dialog-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}

.dialog h3 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.dialog .eyebrow {
  margin-bottom: -6px;
}

.dialog-lead {
  margin-top: -8px;
  color: var(--muted);
}

.dialog-close {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.dialog-close:hover {
  background: #dfe3ea;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

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

/* Карточки сохраняют собственный hover после появления */
.js .card.reveal.is-visible:hover {
  transform: translateY(-4px);
  transition-delay: 0ms;
  transition-duration: 0.25s;
}

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

@media (max-width: 1160px) {
  .toast--act {
    right: -8px;
  }

  .toast--hours {
    left: -8px;
  }
}

@media (max-width: 1024px) {
  .section {
    padding: 88px 0;
  }

  .section--tight {
    padding: 24px 0 88px;
  }

  .section--flush {
    padding-bottom: 0;
  }

  .bento-a,
  .bento-b,
  .bento-d {
    grid-column: span 12;
  }

  .bento-c {
    grid-column: span 6;
  }

  .bento-c:nth-of-type(5) {
    grid-column: span 12;
  }

  .extras,
  .flow,
  .tab-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }

  .tab-panel {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }

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

  .plan--featured {
    grid-column: span 2;
  }

  .contact,
  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .mock-board {
    grid-template-columns: repeat(4, 232px);
    -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
  }
}

@media (max-width: 900px) {
  .burger {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100dvh - var(--header-h));
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--ink-line);
    background: var(--ink-deep);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s;
  }

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

  .nav > a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--ink-line);
    color: #fff;
    font-size: 1.05rem;
  }

  .nav-actions {
    flex-direction: column;
    margin: 16px 0 0;
  }

  .nav-actions .btn {
    padding: 14px 20px;
    font-size: 1rem;
  }

  .demo {
    grid-template-columns: 1fr;
    padding: 40px 32px;
  }

  .demo-art {
    display: none;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .legal {
    padding: 20px 0 56px;
  }

  .legal-doc {
    padding: 28px 20px 36px;
    border-radius: 20px;
  }

  .legal-purpose {
    padding: 16px;
  }

  .legal-purpose dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .legal-purpose dd + dt {
    margin-top: 8px;
  }

  .container {
    padding-inline: 16px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 40px);
  }

  .hero-cta {
    flex-direction: column;
    align-self: stretch;
  }

  .hero-facts {
    flex-direction: column;
    align-items: center;
  }

  .mock-wrap {
    margin-top: 76px;
  }

  .mock-search {
    display: none;
  }

  .mock-top .ava {
    margin-left: auto;
  }

  .mock-board {
    grid-template-columns: repeat(4, 210px);
    gap: 10px;
    padding: 12px 12px 0;
    height: 310px;
  }

  .toast {
    padding: 9px 14px 9px 9px;
    font-size: 0.8rem;
  }

  .toast-ico {
    width: 30px;
    height: 30px;
  }

  .toast--act {
    right: 8px;
    top: -44px;
  }

  .toast--hours {
    left: 8px;
    bottom: 22px;
  }

  .section {
    padding: 64px 0;
  }

  .section--tight {
    padding: 16px 0 64px;
  }

  .section--flush {
    padding-bottom: 0;
  }

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

  .card,
  .plan,
  .flow-step {
    padding: 22px;
  }

  .bento {
    gap: 14px;
  }

  .bento-c {
    grid-column: span 12;
  }

  .extras,
  .flow,
  .plans,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .extras {
    padding: 22px;
  }

  .flow,
  .plans {
    gap: 14px;
  }

  .plan--featured {
    grid-column: auto;
  }

  .plan-flag {
    display: none;
  }

  .tab-list {
    gap: 8px;
  }

  .tab {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
  }

  .tab small {
    display: none;
  }

  .tab-panel {
    padding: 22px;
  }

  .code pre {
    padding: 16px;
    font-size: 0.76rem;
  }

  .demo {
    padding: 32px 22px;
    border-radius: 24px;
  }

  .demo-cta .btn {
    width: 100%;
  }

  .form-card,
  .dialog {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .faq summary {
    padding: 18px 56px 18px 20px;
    font-size: 1rem;
  }

  .faq summary::after {
    right: 16px;
  }

  .faq details p {
    padding: 0 20px 20px;
  }

  .footer-nav {
    margin-inline: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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