/* uiim.kz — лендинг. Палитра и знак: DESIGN.md. Порядок файла повторяет страницу:
   токены → основа → общие компоненты → секции → адаптив. */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --soft: #f2efe8;
  --line: #e7e2d8;
  --line-strong: #dbd5c9;
  --ink: #1c1a17;
  --muted: #6b665d;
  --yellow: #f3c945;
  --yellow-hover: #e5b82f;
  --yellow-soft: #fcf0c7;
  --yellow-ink: #6b5000;
  --focus: #846500;
  --new: #fcf0c7;
  --new-ink: #6b5000;
  --progress: #e8eef8;
  --progress-ink: #2e518b;
  --done: #e6f2ea;
  --done-ink: #256140;
  --danger-ink: #a2402f;
  --thing: #e6f2ea;
  --service: #e8eef8;
  --rent: #fcf0c7;
  --dark: #1c1a17;
  --dark-muted: #b9b2a5;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px #2b28230d, 0 12px 32px #2b282314;
  --shadow-lg: 0 2px 6px #2b28230f, 0 28px 60px #2b28231f;
  font-size: 16px;
  color-scheme: light;
}

/* ---------- Основа ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  border: 0;
  background: none;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
p,
h1,
h2,
h3,
h4,
ul,
ol,
figure,
fieldset {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
p {
  color: var(--muted);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.05em;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}
h3 {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
h4 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.lead {
  font-size: 1.125rem;
  line-height: 1.7;
}
.muted {
  color: var(--muted);
}
.micro {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}
.wrap {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}
.section {
  padding-block: 104px;
}
.tinted {
  background: var(--soft);
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: 10px;
}
.skip:focus {
  top: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ---------- Общие компоненты ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.3;
  transition:
    background 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
.button:hover {
  background: var(--yellow-hover);
  transform: translateY(-1px);
}
.button:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}
.button.secondary {
  background: var(--surface);
  border-color: var(--line-strong);
}
.button.secondary:hover {
  background: var(--soft);
}
.button.small {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.875rem;
}
.button.full {
  width: 100%;
}
.button .icon {
  width: 18px;
  height: 18px;
}
.text-button {
  display: inline-block;
  padding: 8px 0;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
}
.text-button:hover {
  text-decoration-color: var(--ink);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.875rem;
  font-weight: 750;
  color: var(--yellow-ink);
}
.eyebrow.pill {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--yellow-soft);
}
.highlight {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}
h1 .highlight {
  display: inline-block;
}
.highlight::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -4px;
  bottom: 0.06em;
  height: 0.28em;
  border-radius: 6px;
  background: var(--yellow);
  z-index: -1;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 750;
  white-space: nowrap;
}
.status .icon {
  width: 14px;
  height: 14px;
}
.status.new {
  background: var(--new);
  color: var(--new-ink);
}
.status.progress {
  background: var(--progress);
  color: var(--progress-ink);
}
.status.done {
  background: var(--done);
  color: var(--done-ink);
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow-soft);
  color: var(--yellow-ink);
  font-size: 0.75rem;
  font-weight: 800;
}
.benefit-icon,
.row-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--yellow-soft);
  color: var(--yellow-ink);
}
.row-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
}
.row-icon .icon {
  width: 18px;
  height: 18px;
}
.card-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 750;
}
.card-kicker .icon {
  width: 15px;
  height: 15px;
}
.section-heading {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-heading.center {
  margin-inline: auto;
  text-align: center;
}
.section-heading .lead {
  margin-top: 18px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
}
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  font-size: 1rem;
  font-weight: 500;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
}

/* Телефон — общий каркас для всех демо */
.phone {
  width: 300px;
  padding: 14px 16px 16px;
  border: 7px solid #2f2c27;
  border-radius: 40px;
  background: #fbfaf7;
  box-shadow: var(--shadow-lg);
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 0 8px 12px;
  font-size: 0.75rem;
  font-weight: 800;
}
.app-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.app-heading img {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.app-heading b {
  display: block;
  font-size: 0.95rem;
}
.app-heading span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}
.news-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #f6e3a3;
  border-radius: 16px;
  background: var(--yellow-soft);
}
.news-card .card-kicker {
  color: var(--yellow-ink);
}
.news-card b {
  font-size: 0.95rem;
}
.news-card p {
  font-size: 0.85rem;
  color: var(--yellow-ink);
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.brand img {
  width: 92px;
  height: 46px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.desktop-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 600;
}
.desktop-nav a:hover,
.footer a:hover {
  color: var(--focus);
}
.menu-toggle {
  display: none;
  padding: 12px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}
.mobile-nav {
  display: grid;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav a {
  padding: 12px 0;
  font-weight: 650;
}

/* ---------- 1. Первый экран ---------- */

.hero {
  overflow: hidden;
  padding-block: 72px 96px;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .lead {
  max-width: 520px;
  margin: 24px 0 32px;
}
.hero-points {
  display: grid;
  gap: 10px;
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-points li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-points .icon {
  width: 18px;
  height: 18px;
  color: var(--done-ink);
}
.hero-visual {
  position: relative;
  min-height: 560px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 40px -40px 0 40px;
  border-radius: 40px;
  background: radial-gradient(circle at 70% 30%, #f7dc80 0, transparent 55%), var(--soft);
  z-index: -1;
}
.board {
  position: absolute;
  top: 0;
  left: 0;
  width: min(380px, calc(100% - 250px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.board-top b {
  display: block;
  font-size: 1.05rem;
}
.board-top span:not(.avatar) {
  font-size: 0.8rem;
  color: var(--muted);
}
.board-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.board-stats div {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg);
}
.board-stats b {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
}
.board-stats span {
  font-size: 0.75rem;
  color: var(--muted);
}
.board-list {
  display: grid;
}
.board-list li,
.request-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.board-list b,
.request-item b {
  display: block;
  font-size: 0.9rem;
}
.board-list div span,
.request-item div span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}
.hero-phone {
  position: absolute;
  right: -16px;
  top: 72px;
  width: 260px;
  transform: rotate(3deg);
}
.my-request {
  display: grid;
  justify-items: start;
  gap: 4px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.my-request b {
  font-size: 0.9rem;
}
.phone-button {
  min-height: 44px;
  padding-inline: 12px;
  white-space: nowrap;
  margin-top: 14px;
  font-size: 0.85rem;
}
.hero-toast {
  position: absolute;
  left: 24px;
  bottom: 40px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero-toast b {
  display: block;
  font-size: 0.9rem;
}
.hero-toast span:not(.toast-icon) {
  font-size: 0.8rem;
  color: var(--muted);
}
.toast-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--done);
  color: var(--done-ink);
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

/* ---------- 2. Сравнение с чатом ---------- */

.compare {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: 0.6fr 1fr 1fr;
}
.compare-head span {
  padding: 18px 28px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare-head .compare-uiim,
.compare-good {
  background: #fffbea;
}
.compare-head .compare-uiim {
  color: var(--yellow-ink);
}
.compare-row {
  border-top: 1px solid var(--line);
}
.compare-row > * {
  padding: 24px 28px;
}
.compare-row p {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
}
.compare-row .icon {
  margin-top: 3px;
}
.compare-chat .icon {
  color: var(--danger-ink);
}
.compare-good {
  color: var(--ink) !important;
}
.compare-good .icon {
  color: var(--done-ink);
}

/* ---------- 3. Председателю ОСИ ---------- */

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.benefits article,
.privacy-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.benefits p,
.privacy-grid p {
  font-size: 0.92rem;
}
.demo-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 72px 0 20px;
}
.dashboard {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.dashboard-sidebar {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 24px 16px;
  border-right: 1px solid var(--line);
  background: #fcfbf8;
}
.dashboard-sidebar img {
  margin: 0 8px 4px;
  mix-blend-mode: multiply;
}
.dashboard-sidebar p {
  margin: 0 8px 14px;
  font-size: 0.85rem;
}
.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--muted);
}
.side-item.selected {
  background: var(--yellow-soft);
  color: var(--ink);
}
.side-item .icon {
  width: 18px;
  height: 18px;
}
.dashboard-content {
  min-width: 0;
  padding: 28px 32px 32px;
}
.dash-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.dash-heading h3 {
  font-size: 1.35rem;
}
.dashboard-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.dashboard-tabs button {
  padding: 10px 0 12px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}
.dashboard-tabs button[aria-selected="true"] {
  border-color: var(--yellow);
  color: var(--ink);
}
.dashboard-tabs span {
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 0.78rem;
}
#notice-form {
  display: grid;
  gap: 14px;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.recipients {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 0.9rem;
}
.recipients span:last-child {
  margin-left: auto;
  color: var(--muted);
}
.notice-actions {
  display: flex;
  justify-content: flex-end;
}
.push-preview {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #f6e3a3;
  border-radius: 16px;
  background: var(--yellow-soft);
}
.push-preview img {
  border-radius: 8px;
}
.push-preview p {
  color: var(--ink);
}
.request-intro {
  margin-bottom: 8px;
}
.status-select {
  width: auto;
  min-height: 36px;
  padding: 4px 30px 4px 12px;
  border: 0;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 750;
}
.status-select.new {
  background-color: var(--new);
  color: var(--new-ink);
}
.status-select.progress {
  background-color: var(--progress);
  color: var(--progress-ink);
}
.status-select.done {
  background-color: var(--done);
  color: var(--done-ink);
}

/* ---------- 4. Жителям ---------- */

.resident-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.resident-copy .lead {
  margin: 20px 0 32px;
}
.feature-list {
  display: grid;
  gap: 20px;
  margin-bottom: 36px;
}
.feature-list li {
  display: flex;
  gap: 16px;
}
.feature-list p {
  font-size: 0.92rem;
}
.resident-stage {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 32px 0;
  border-radius: 36px;
  background: var(--soft);
}
.demo-hint {
  font-size: 0.85rem;
  font-weight: 650;
}
.resident-phone {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 580px;
}
.phone-screen {
  display: grid;
  align-content: start;
  gap: 12px;
}
.phone-screen h3 {
  font-size: 1.35rem;
}
#resident-home,
#resident-form,
#resident-result {
  display: grid;
  align-content: start;
  gap: 12px;
}
.sample-issue {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.sample-issue b {
  font-size: 0.9rem;
}
.sample-issue p {
  font-size: 0.82rem;
}
.form-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-title h3 {
  font-size: 1.15rem;
}
.photo-attach {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 650;
}
.photo-attach[aria-pressed="true"] {
  border-style: solid;
  border-color: var(--done-ink);
  background: var(--done);
  color: var(--done-ink);
}
.success-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--done);
  color: var(--done-ink);
}
.submitted-issue {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}
.timeline li {
  padding-top: 8px;
  border-top: 4px solid var(--line);
}
.timeline li.current {
  border-color: var(--yellow);
  color: var(--ink);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips span {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 650;
}
.chips .selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}
.listing {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.listing b {
  display: block;
  font-size: 0.88rem;
}
.listing p {
  font-size: 0.78rem;
}
.listing-art {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
}
.listing-art.thing,
.tag.thing {
  background: var(--thing);
  color: var(--done-ink);
}
.listing-art.service,
.tag.service {
  background: var(--service);
  color: var(--progress-ink);
}
.listing-art.rent,
.tag.rent {
  background: var(--rent);
  color: var(--yellow-ink);
}
.tag {
  display: inline-block;
  margin-bottom: 2px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
}
.phone-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px -8px 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.phone-nav button {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 6px 0;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.phone-nav button[aria-pressed="true"] {
  background: var(--yellow-soft);
  color: var(--ink);
}

/* ---------- 5. Как подключить дом ---------- */

.launch-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.launch-steps li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
}
.step-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 800;
}
.launch-steps p {
  font-size: 0.92rem;
}
.onboarding {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-top: 72px;
  padding: 48px;
  border-radius: 32px;
  background: var(--surface);
}
.onboarding-guide h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.join-steps {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}
.join-steps li {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  transition: background 0.2s;
}
.join-steps li > span {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
}
.join-steps li.active {
  background: var(--yellow-soft);
}
.join-steps li.active > span {
  color: var(--yellow-ink);
}
.join-steps p {
  font-size: 0.88rem;
}
.join-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-height: 560px;
  padding: 24px;
  border-radius: 28px;
  background: var(--soft);
}
.door-qr-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 168px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.door-qr-card b {
  font-size: 0.85rem;
}
.door-qr-card img {
  mix-blend-mode: multiply;
}
.join-stage.joined .door-qr-card {
  opacity: 0;
  transform: rotate(-4deg) translateX(-24px);
}
.qr-code {
  width: 112px;
  height: 112px;
  fill: var(--ink);
}
.join-phone {
  width: 280px;
  min-height: 500px;
}
.join-panel {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
}
.join-panel > * {
  justify-self: stretch;
}
.join-panel > .status,
.join-panel > .approval-icon {
  justify-self: start;
}
.join-panel h3 {
  font-size: 1.3rem;
  outline: none;
}
.join-panel p {
  font-size: 0.875rem;
}
.camera-preview {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px 12px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--surface);
}
.viewfinder {
  position: relative;
  padding: 10px;
  border: 2px solid var(--yellow);
  border-radius: 14px;
  background: var(--surface);
}
.scan-line {
  position: absolute;
  inset: 10px 10px auto;
  height: 2px;
  background: var(--yellow);
  opacity: 0;
}
.join-stage.scanning .scan-line {
  opacity: 1;
  animation: scan 1.2s ease-in-out infinite;
}
@keyframes scan {
  50% {
    transform: translateY(110px);
  }
}
.camera-caption {
  font-size: 0.8rem;
  color: var(--dark-muted);
}
.role-choice {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
}
.role-choice label {
  display: block;
  cursor: pointer;
}
.role-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.role-choice label > span {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
}
.role-choice .icon {
  grid-row: span 2;
}
.role-choice small {
  font-weight: 500;
  color: var(--muted);
}
.role-choice input:checked + span {
  border-color: var(--yellow-hover);
  background: var(--yellow-soft);
}
.role-choice input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.join-fields {
  display: grid;
  gap: 10px;
}
.approval-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--progress);
  color: var(--progress-ink);
}
.join-summary {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 650;
}
.approval-note,
.welcome-home {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.approval-note b,
.welcome-home b {
  display: block;
  font-size: 0.875rem;
}
.approval-note p,
.welcome-home span {
  font-size: 0.8rem;
  color: var(--muted);
}
.welcome-home img {
  border-radius: 12px;
}

/* ---------- 6. Приватность ---------- */

.privacy-layout {
  display: grid;
  gap: 40px;
}
.privacy-layout > div:first-child {
  max-width: 640px;
}
.privacy-layout .lead {
  margin-top: 18px;
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ---------- 7. Вопросы ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.faq-list details {
  border-bottom: 1px solid var(--line-strong);
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list p {
  max-width: 620px;
  padding-bottom: 20px;
}

/* ---------- 8. Заявка на пилот ---------- */

.pilot-section {
  padding-block: 104px;
  background: var(--dark);
  color: var(--surface);
}
.pilot-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.pilot-copy .eyebrow {
  color: var(--yellow);
}
.pilot-copy p {
  margin: 20px 0 28px;
  font-size: 1.1rem;
  color: var(--dark-muted);
}
.pilot-points {
  display: grid;
  gap: 12px;
}
.pilot-points li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 650;
}
.pilot-points .icon {
  color: var(--yellow);
}
.pilot-form {
  display: grid;
  gap: 14px;
  padding: 32px;
  border-radius: 28px;
  background: var(--surface);
  color: var(--ink);
}
.pilot-form h3 {
  font-size: 1.35rem;
}
.form-disclaimer {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 0.85rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.optional {
  font-weight: 500;
  color: var(--muted);
}
.form-result {
  padding: 14px;
  border-radius: 14px;
  background: var(--done);
  color: var(--done-ink);
}
.form-result p {
  color: inherit;
}

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

.footer {
  padding-block: 32px;
  border-top: 1px solid var(--line);
}
.footer-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 600;
}
.footer-meta {
  text-align: right;
  font-size: 0.85rem;
}

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

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 20px;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-copy {
    max-width: 680px;
  }
  .hero-visual {
    width: min(100%, 640px);
    margin-inline: auto;
  }
  .benefits,
  .launch-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .onboarding {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .section,
  .pilot-section {
    padding-block: 72px;
  }
  .desktop-nav {
    display: none;
  }
  .nav-cta {
    margin-left: auto;
  }
  .menu-toggle {
    display: block;
  }
  .resident-layout,
  .pilot-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .dashboard {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    display: none;
  }
  .compare-head {
    display: none;
  }
  .compare-row {
    grid-template-columns: 1fr;
  }
  .compare-row > * {
    padding: 0 20px;
  }
  .compare-row h3 {
    padding-top: 22px;
    padding-bottom: 10px;
  }
  .compare-row p {
    padding-block: 10px;
  }
  .compare-row .compare-good {
    margin: 4px 12px 16px;
    padding: 12px;
    border-radius: 14px;
  }
  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .nav {
    height: 64px;
    gap: 12px;
  }
  .brand img {
    width: 80px;
    height: 40px;
  }
  .nav-cta {
    padding-inline: 14px;
  }
  .hero {
    padding-block: 40px 64px;
  }
  .highlight {
    white-space: normal;
  }
  .actions .button {
    flex: 1 1 100%;
  }
  .hero-visual {
    min-height: 0;
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 24px 12px;
  }
  .hero-visual::before {
    inset: 0;
    border-radius: 28px;
  }
  .board,
  .hero-phone,
  .hero-toast {
    position: static;
    transform: none;
  }
  .board {
    width: 100%;
  }
  .hero-phone {
    display: none;
  }
  .hero-toast {
    justify-self: start;
  }
  .benefits,
  .launch-steps {
    grid-template-columns: 1fr;
  }
  .dashboard-content {
    padding: 20px;
  }
  .filter-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .recipients {
    flex-wrap: wrap;
  }
  .request-item {
    grid-template-columns: auto 1fr;
  }
  .request-item select {
    grid-column: 2;
    justify-self: start;
  }
  .resident-stage {
    padding: 24px 8px;
    border-radius: 28px;
  }
  .phone {
    width: min(300px, 100%);
  }
  .onboarding {
    padding: 16px;
  }
  .join-stage {
    min-height: 0;
    padding: 20px 8px;
  }
  .door-qr-card {
    display: none;
  }
  .pilot-form {
    padding: 22px;
  }
  .footer-meta {
    text-align: left;
  }
}

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