/* ACM Systems — общие стили сайта. Палитра Brand Kit: graphite, teal, ivory, mint, slate. */

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-text-latin.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;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-text-rub.woff2") format("woff2");
  unicode-range: U+20BD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/geist-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/geist-mono-latin.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;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/geist-mono-rub.woff2") format("woff2");
  unicode-range: U+20BD;
}

/* Чередование фона секций: --bg и --bg-2 заметно различаются в обеих темах,
   дополнительно секция на --bg-2 отделена линиями сверху и снизу. */
:root {
  --bg: #f5f3ed;
  --bg-2: #e8e5da;
  --surface: #ffffff;
  --surface-2: #f8f7f2;
  --ink: #132b32;
  --ink-2: #475b60;
  --line: rgba(19, 43, 50, 0.14);
  --line-strong: rgba(19, 43, 50, 0.34);
  --accent-text: #00675d;
  --accent-bg: #007f73;
  --accent-bg-hover: #006b61;
  --on-accent: #ffffff;
  --accent-soft: #c8e9dd;
  --on-accent-soft: #0b4a43;
  --warn-text: #8a4b00;
  --warn-line: rgba(138, 75, 0, 0.5);
  --card-bg: #132b32;
  --card-ink: #f5f3ed;
  --card-ink-2: #b7c8c9;
  --card-line: rgba(245, 243, 237, 0.24);
  --focus: #007f73;
  --shadow: 0 28px 64px -36px rgba(19, 43, 50, 0.5);
  --font-sans: "Golos Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-pad: clamp(48px, 6vw, 88px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1d22;
    --bg-2: #173138;
    --surface: #21404a;
    --surface-2: #0b1c21;
    --ink: #eef1ec;
    --ink-2: #a9bdbe;
    --line: rgba(238, 241, 236, 0.16);
    --line-strong: rgba(238, 241, 236, 0.32);
    --accent-text: #62d1c0;
    --accent-bg: #007f73;
    --accent-bg-hover: #006b61;
    --on-accent: #ffffff;
    --accent-soft: #17433f;
    --on-accent-soft: #c8e9dd;
    --warn-text: #e8b068;
    --warn-line: rgba(232, 176, 104, 0.55);
    --card-bg: #f5f3ed;
    --card-ink: #132b32;
    --card-ink-2: #475b60;
    --card-line: rgba(19, 43, 50, 0.22);
    --focus: #62d1c0;
    --shadow: 0 32px 80px -32px rgba(0, 0, 0, 0.75);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0c1d22;
  --bg-2: #173138;
  --surface: #21404a;
  --surface-2: #0b1c21;
  --ink: #eef1ec;
  --ink-2: #a9bdbe;
  --line: rgba(238, 241, 236, 0.16);
  --line-strong: rgba(238, 241, 236, 0.32);
  --accent-text: #62d1c0;
  --accent-bg: #007f73;
  --accent-bg-hover: #006b61;
  --on-accent: #ffffff;
  --accent-soft: #17433f;
  --on-accent-soft: #c8e9dd;
  --warn-text: #e8b068;
  --warn-line: rgba(232, 176, 104, 0.55);
  --card-bg: #f5f3ed;
  --card-ink: #132b32;
  --card-ink-2: #475b60;
  --card-line: rgba(19, 43, 50, 0.22);
  --focus: #62d1c0;
  --shadow: 0 32px 80px -32px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  font-weight: 400;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

a {
  color: var(--accent-text);
  text-underline-offset: 0.18em;
}

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

/* Числа и даты набираются Golos Text с табличными цифрами: у моноширинной запятой
   слишком широкое поле, «31,8» распадается на части. Служебные подписи — обычный текст. */
.mono {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.no-js [data-js-only] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -200px;
  z-index: 50;
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid var(--focus);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

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

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.kicker {
  font: 600 0.875rem/1.3 var(--font-sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* Показ блоков под выбранную аудиторию: без выбора виден вариант отельера. */
:root[data-audience="vendor"] .for-owner,
:root:not([data-audience="vendor"]) .for-vendor {
  display: none !important;
}

/* ---------- кнопки и метки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent-bg);
  color: var(--on-accent);
}

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

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

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

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-small {
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.9375rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  font: 600 0.875rem/1.25 var(--font-sans);
  color: var(--ink-2);
  white-space: normal;
}

.badge-sample {
  color: var(--warn-text);
  border-color: var(--warn-line);
}

.badge-demo {
  color: var(--accent-text);
  border-color: currentColor;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.22em;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* ---------- шапка ---------- */

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

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  min-height: 76px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  flex: none;
  margin-inline-end: auto;
  border-radius: 6px;
}

/* Логотип — фон по теме: браузер загружает только файл, который виден
   (системная тема и явный выбор через data-theme). Текст виден в режиме
   принудительных цветов, где фоновые изображения не рисуются. */
.brand-logo {
  display: block;
  width: 168px;
  aspect-ratio: 3 / 1;
  background: url("../images/acm-logo-primary.svg") left center / contain no-repeat;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo {
    background-image: url("../images/acm-logo-inverse.svg");
  }
}

:root[data-theme="dark"] .brand-logo {
  background-image: url("../images/acm-logo-inverse.svg");
}

.brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (forced-colors: active) {
  .brand-logo {
    display: none;
  }
  .brand-text {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
    font-size: 1.5rem;
    font-weight: 600;
  }
}

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

.route,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: 600 0.9375rem/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
}

.route:hover,
.theme-toggle:hover {
  border-color: var(--ink);
}

.route[aria-current="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-text);
  color: var(--on-accent-soft);
}

.theme-toggle .theme-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  box-shadow: inset -6px 0 0 0 currentColor;
  flex: none;
}

@media (min-width: 641px) {
  .theme-label {
    min-width: 6.4em;
    text-align: start;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 160px;
  }
  .site-header .wrap {
    min-height: 0;
    padding-block: 8px;
    gap: 8px 12px;
  }
  .routes {
    order: 3;
    width: 100%;
  }
  .route {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 12px;
    font-size: 0.875rem;
  }
  .theme-toggle .theme-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .theme-toggle {
    padding: 0 13px;
  }
}

/* ---------- первый экран ---------- */

.hero {
  padding-block: clamp(20px, 3vw, 40px) clamp(32px, 5vw, 64px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(32px, 3.6vw, 56px);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.2rem + 3vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 400;
}

.hero h1 span {
  display: block;
  color: var(--accent-text);
}

.lead {
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.5;
  max-width: 40ch;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.hero-actions .btn-primary {
  min-height: 52px;
  padding-inline: 24px;
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.hero-contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.hero-visual {
  display: grid;
  min-width: 0;
}

/* Гостиничное фото V11 (ИИ-изображение, разрешено к публикации 15.09.2026) —
   кадр над превью, текст на фото не лежит. Только на широком экране: на телефоне
   и планшете фото не скачивается. */
.hero-photo {
  display: none;
}

/* На телефоне и планшете — свой кроп 750×1000 полосой под текстом: он легче
   (46 КБ) и текст на нём не лежит, поэтому подложка не нужна. */
@media (max-width: 960px) {
  .hero-photo {
    display: block;
    height: clamp(116px, 22vw, 168px);
    border-radius: 14px;
    border: 1px solid var(--line);
    background-color: var(--card-bg);
    background-image: url("../images/hospitality-context-mobile.webp");
    background-image: image-set(
      url("../images/hospitality-context-mobile.avif") type("image/avif"),
      url("../images/hospitality-context-mobile.webp") type("image/webp")
    );
    background-size: cover;
    background-position: 50% 42%;
    margin-bottom: 16px;
  }
}

@media (min-width: 961px) {
  .hero-photo {
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    border: 1px solid var(--line);
    background-color: var(--card-bg);
    background-image: url("../images/hospitality-context-desktop.webp");
    background-image: image-set(
      url("../images/hospitality-context-desktop.avif") type("image/avif"),
      url("../images/hospitality-context-desktop.webp") type("image/webp")
    );
    background-size: cover;
    background-position: 62% 62%;
  }

  .hero-visual .panel {
    position: relative;
    width: min(100% - 40px, 560px);
    margin-top: -104px;
    margin-inline-start: 24px;
  }
}

@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .lead {
    max-width: 60ch;
  }
}

@media (max-width: 400px) {
  .hero {
    padding-top: 16px;
  }
  .hero .wrap {
    gap: 20px;
  }
  .hero .kicker {
    letter-spacing: 0.02em;
  }
  .hero .lead {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-copy {
    gap: 12px;
  }
  .hero h1 {
    font-size: 2.375rem;
  }
  .lead {
    font-size: 1.0625rem;
  }
}

/* ---------- превью на первом экране ---------- */

.panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-where {
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--ink-2);
}

.panel-body {
  display: grid;
  gap: 8px;
  padding: 18px 22px 10px;
}

.pq-label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.pq-title {
  font-size: 1.1875rem;
  line-height: 1.3;
  text-wrap: balance;
}

.pq-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.pq-value .mono {
  font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--warn-text);
}

.pq-unit {
  color: var(--ink-2);
}

.pq-note {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.pq-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.22em;
}

.pq-link:hover {
  text-decoration-color: currentColor;
}

@media (max-width: 600px) {
  .panel-bar {
    padding: 10px 16px;
  }
  .panel-body {
    padding: 14px 16px 6px;
    gap: 6px;
  }
  .pq-title {
    font-size: 1.0625rem;
  }
}

/* ---------- секции ---------- */

.section {
  padding-block: var(--section-pad);
}

.section-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section-head h2 {
  font-size: clamp(1.875rem, 1.2rem + 2vw, 2.75rem);
  letter-spacing: -0.025em;
  font-weight: 400;
}

.section-head p:not(.kicker) {
  color: var(--ink-2);
  font-size: 1.125rem;
  max-width: 64ch;
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.section-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.note {
  font-size: 0.875rem;
  color: var(--ink-2);
  max-width: 72ch;
}

/* Заголовок слева, содержимое справа: короткие текстовые секции. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px clamp(32px, 5vw, 80px);
  align-items: start;
}

.split > .section-head {
  margin-bottom: 0;
}

.split-body {
  min-width: 0;
}

@media (max-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- что можно проверить ---------- */

.checks {
  list-style: none;
  padding: 0;
}

.check {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 4px clamp(20px, 3vw, 40px);
  padding-block: 20px 12px;
  border-top: 1px solid var(--line-strong);
}

.check:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.check h3 {
  grid-row: span 2;
  font-size: 1.25rem;
  line-height: 1.3;
}

.check .text-link {
  grid-column: 2;
}

.split-body > .note {
  margin-top: 16px;
}

@media (max-width: 640px) {
  .check {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 16px 8px;
  }
  .check h3 {
    grid-row: auto;
    margin-bottom: 4px;
  }
  .check .text-link {
    grid-column: 1;
  }
}

/* ---------- вендорам ---------- */

.vmap-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, 0.62fr) minmax(0, 1.1fr) minmax(128px, 0.62fr) minmax(0, 1fr);
  align-items: stretch;
}

.vnode {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}

.vnode-who {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Пока схема идёт в ряд, подпись стороны занимает две строки у всех узлов:
   иначе «Гостиничный клиент» переносится один и узлы расходятся по высоте. */
@media (min-width: 861px) and (max-width: 1200px) {
  .vnode-who {
    min-height: 2.6em;
  }
}

.vnode-what {
  font-size: 1.25rem;
  line-height: 1.3;
}

.vnode-role {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.vnode-acm {
  background: var(--card-bg);
  border-color: var(--card-bg);
  color: var(--card-ink);
}

.vnode-acm .vnode-who,
.vnode-acm .vnode-role {
  color: var(--card-ink-2);
}

.vnode-acm .vnode-role {
  border-top-color: var(--card-line);
}

.vlink {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding-inline: 12px;
  text-align: center;
}

.vlink-label {
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--ink-2);
}

.vlink-arrow {
  width: 64px;
  height: 16px;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Обратный путь идёт от клиента к системе вендора мимо ACM Systems:
   правки в PMS или CRM вносят сотрудники клиента. */
.vreturn {
  position: relative;
  height: 36px;
  margin-inline: 10.5%;
  margin-bottom: 2.2em;
  border: 2px dashed var(--line-strong);
  border-top: 0;
  border-radius: 0 0 14px 14px;
}

.vreturn::before {
  content: "";
  position: absolute;
  left: -8px;
  top: -2px;
  border-inline: 7px solid transparent;
  border-bottom: 10px solid var(--ink-2);
}

.vreturn-label {
  position: absolute;
  left: 50%;
  top: 100%;
  width: max-content;
  max-width: 90%;
  transform: translate(-50%, -50%);
  padding-inline: 12px;
  background: var(--bg-2);
  font-size: 0.9375rem;
  color: var(--ink-2);
  text-align: center;
}

.vnote {
  margin-top: 24px;
  color: var(--ink-2);
}

.vactions {
  margin-top: 16px;
}

@media (max-width: 860px) {
  .vmap-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .vlink {
    grid-template-columns: 40px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 12px;
    padding: 8px 0 8px 14px;
    text-align: start;
  }
  .vlink-label {
    grid-column: 2;
    grid-row: 1;
  }
  .vlink-arrow {
    grid-column: 1;
    grid-row: 1;
    width: 36px;
    transform: rotate(90deg);
  }
  .vreturn {
    height: auto;
    margin: 12px 0 0;
    padding: 12px 16px;
    border: 2px dashed var(--line-strong);
    border-radius: 12px;
  }
  .vreturn::before {
    display: none;
  }
  .vreturn-label {
    position: static;
    width: auto;
    max-width: none;
    transform: none;
    padding: 0;
    background: none;
    text-align: start;
  }
}

/* ---------- как начинаем ---------- */

.steps {
  --steps-gap: clamp(20px, 2.5vw, 36px);
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px var(--steps-gap);
}

.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.step-n {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-text);
  background: var(--bg);
  color: var(--accent-text);
  font-weight: 600;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 48px;
  right: calc(-1 * var(--steps-gap) + 8px);
  height: 2px;
  background: var(--line-strong);
}

.step h3 {
  margin-top: 6px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.step p {
  color: var(--ink-2);
}

.start-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: 24px 48px;
  align-items: end;
  margin-top: clamp(28px, 3.5vw, 44px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.start-need h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.start-need ul {
  margin-top: 8px;
  padding-inline-start: 1.2em;
  color: var(--ink-2);
}

.start-audit {
  margin-top: clamp(28px, 3.5vw, 44px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.start-audit h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.audit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px clamp(20px, 2.5vw, 36px);
  margin-top: 16px;
}

.audit-list dt {
  font-weight: 600;
}

.audit-list dd {
  margin: 4px 0 0;
  color: var(--ink-2);
}

.platform-list {
  gap: 28px clamp(20px, 2.5vw, 36px);
  margin-top: 24px;
}

.platform-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.start-cta {
  display: grid;
  gap: 12px;
  justify-items: start;
  max-width: 34rem;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px 16px;
  }
  .step-n {
    grid-row: span 2;
  }
  .step h3 {
    margin-top: 6px;
  }
  .step:not(:last-child)::after {
    top: 44px;
    bottom: -16px;
    left: 19px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .start-foot,
  .audit-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- вопросы ---------- */

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

.faq-group-h {
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.faq details {
  border-top: 1px solid var(--line-strong);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 12px;
  font-size: 1.125rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-inline-end: 6px;
  border-right: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(3px) rotate(-135deg);
}

.faq details p {
  max-width: 68ch;
  padding-bottom: 16px;
  color: var(--ink-2);
}

.faq details p + p {
  margin-top: -10px;
  padding-bottom: 8px;
}

/* ---------- контакты ---------- */

.contacts {
  display: grid;
  gap: 16px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: 16px 32px;
  align-items: center;
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.contact-text {
  display: grid;
  gap: 6px;
}

.contact h3 {
  font-size: 1.375rem;
}

.contact-text p {
  color: var(--ink-2);
}

.contact-actions {
  display: grid;
  gap: 8px;
  justify-items: start;
}

:root[data-audience="owner"] .contact[data-for="owner"],
:root[data-audience="vendor"] .contact[data-for="vendor"] {
  border-color: var(--accent-text);
  box-shadow: 0 0 0 1px var(--accent-text);
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
}

.email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 1rem/1.3 var(--font-sans);
  overflow-wrap: anywhere;
}

.contacts-email {
  padding-inline: 4px;
}

.copy-status {
  flex-basis: 100%;
  font-size: 0.875rem;
  color: var(--accent-text);
}

.copy-status:not(:empty) {
  margin-top: 4px;
}

@media (max-width: 640px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 32px;
}

/* ---------- отдельная страница схемы ---------- */

.page-head {
  padding-block: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 32px);
}

.page-head .wrap {
  display: grid;
  gap: 12px;
}

.page-head h1 {
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem);
  letter-spacing: -0.03em;
  font-weight: 400;
  max-width: 22ch;
}

.page-head p:not(.kicker) {
  color: var(--ink-2);
  font-size: 1.125rem;
  max-width: 64ch;
}

/* ---------- карта систем ---------- */

.map-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 20px;
}

.map-filter-h {
  color: var(--ink-2);
}

.map {
  --map-bg: var(--bg);
  position: relative;
  display: grid;
  gap: 0;
}

/* Слой связей: линии идут ЗА карточками, поэтому уровни поднимаются выше. */
.map-edges {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.map-edge {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.6;
  stroke-dasharray: 6 10;
  stroke-linecap: round;
  animation: map-flow 1.6s linear infinite;
}

.map-edge.is-flow {
  stroke: var(--accent-text);
  stroke-width: 2.4;
  animation-duration: 0.9s;
}

.map-edge.is-dim {
  stroke-dasharray: none;
  opacity: 0.16;
  animation: none;
}

@keyframes map-flow {
  to {
    stroke-dashoffset: -16;
  }
}

/* Уровень — прозрачная полоса: связи между карточками видны целиком,
   а не только в зазорах. Плотный фон есть у карточек. */
.map-tier {
  position: relative;
  display: grid;
  gap: 12px;
}

.map-tier > * {
  position: relative;
  z-index: 1;
}

.map-tier-acm .map-tier-h {
  color: var(--accent-text);
}

.map-tier-acm .map-tier-h span {
  color: var(--ink-2);
}

/* Заголовок и сноска стоят в полосе, по которой идут связи: подложка цвета
   секции не даёт пунктиру пересекать текст. */
.map-tier-h,
.map-note {
  background: var(--map-bg);
}

.map-tier-h {
  font-size: 1.25rem;
  line-height: 1.3;
  padding-block: 2px;
}

.map-tier-h span {
  color: var(--ink-2);
  font-size: 1rem;
}

.map-arrow {
  justify-self: center;
  width: 2px;
  height: 34px;
  background: var(--line-strong);
  position: relative;
}

.map-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--line-strong);
  border-bottom: 2px solid var(--line-strong);
  transform: translate(-50%, 2px) rotate(45deg);
}

.map-sources,
.map-metrics,
.map-decision {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.map-sources {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.map-metrics {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.map-decision {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.map-sources li,
.map-metrics li,
.map-decision li {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: opacity 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.map-sources li.is-active,
.map-metrics li.is-active,
.map-decision li.is-active {
  border-color: var(--accent-text);
  box-shadow: 0 0 0 1px var(--accent-text);
}

.map-sources li.is-dim,
.map-metrics li.is-dim,
.map-decision li.is-dim {
  opacity: 0.45;
}

.map-name {
  font-weight: 600;
  line-height: 1.3;
}

.map-code {
  font-size: 0.875rem;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-gives,
.map-formula,
.map-where {
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.35;
}

.map-where {
  color: var(--accent-text);
}

.map-metrics li {
  border-color: var(--accent-text);
}

.map-step {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.9375rem;
}

.map-note,
.map-legend {
  font-size: 0.9375rem;
  color: var(--ink-2);
  max-width: 88ch;
}

.map-note {
  padding-block: 2px;
  justify-self: start;
}

.map-legend {
  margin-top: 16px;
}

.directions {
  margin-top: clamp(28px, 3.5vw, 44px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.directions h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.directions-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(24px, 4vw, 56px);
  margin-top: 16px;
}

.directions-col h4 + .directions-list {
  margin-top: 8px;
}

.directions-list + h4 {
  margin-top: 20px;
}

.dir-status {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.dir-live { color: var(--accent-text); }
.dir-dev,
.dir-plan { color: var(--ink-2); }
.dir-plan { border-style: dashed; }

.directions-list {
  padding-inline-start: 1.2em;
  color: var(--ink-2);
}

.directions-list li + li {
  margin-top: 6px;
}

.directions-list strong {
  color: var(--ink);
  font-weight: 600;
}

.directions .map-note {
  margin-top: 16px;
}

@media (max-width: 860px) {
  .directions-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

.integrations {
  margin-top: clamp(28px, 3.5vw, 44px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.integrations h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.integrations-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(24px, 4vw, 56px);
  margin-top: 16px;
}

.integrations-col h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.integrations-list {
  margin-top: 8px;
  padding-inline-start: 1.2em;
  color: var(--ink-2);
}

.integrations-list li + li {
  margin-top: 6px;
}

.integrations-list strong {
  color: var(--ink);
  font-weight: 600;
}

.integrations-col > p {
  margin-top: 12px;
  color: var(--ink-2);
}

.integrations .map-note {
  margin-top: 16px;
}

@media (max-width: 860px) {
  .integrations-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: clamp(20px, 2.6vw, 28px);
}

/* Широкий экран: между уровнями есть место для линий, стрелки-заглушки не нужны. */
@media (min-width: 1000px) {
  .map {
    gap: 72px;
  }
  .map-arrow {
    display: none;
  }
}

/* Узкий экран: колонки встают друг под другом, линии не рисуются. */
@media (max-width: 999px) {
  .map-edges,
  .map-filter,
  .map-legend {
    display: none;
  }
}

@media (max-width: 1000px) {
  .map-sources,
  .map-decision {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .map-sources,
  .map-metrics,
  .map-decision {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-edge {
    animation: none;
    stroke-dasharray: none;
  }
}

/* ---------- изображения секций ---------- */

/* Иконка системы: файл Brand Kit с зашитым цветом подключается маской,
   поэтому знак берёт цвет текста и работает в обеих темах. */
.map-icon {
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  color: var(--accent-text);
}

.map-sources li {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
}

.map-sources li > .map-name,
.map-sources li > .map-code,
.map-sources li > .map-gives {
  grid-column: 2;
}

.map-icon {
  grid-row: 1 / span 3;
  margin-top: 2px;
}


/* Путь к иконке объявляется здесь: в var() он считается от файла стилей. */
.map-sources li[data-node="sys:pms"] .map-icon {
  --icon: url("../icons/portfolio.svg");
}

.map-sources li[data-node="sys:sip"] .map-icon {
  --icon: url("../icons/people.svg");
}

.map-sources li[data-node="sys:crm"] .map-icon {
  --icon: url("../icons/workflow.svg");
}

.map-sources li[data-node="sys:pos"] .map-icon {
  --icon: url("../icons/source.svg");
}

.map-sources li[data-node="sys:stock"] .map-icon {
  --icon: url("../icons/data-quality.svg");
}

.map-sources li[data-node="sys:ads"] .map-icon {
  --icon: url("../icons/analytics.svg");
}

.map-sources li[data-node="sys:hr"] .map-icon {
  --icon: url("../icons/operations.svg");
}

.map-sources li[data-node="sys:acc"] .map-icon {
  --icon: url("../icons/control.svg");
}

/* Контекстное фото полосой: текста на изображении нет, подпись под ним. */
.photo-band {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: 10px;
}

.photo-band-img {
  height: clamp(140px, 22vw, 280px);
  border-radius: 16px;
  border: 1px solid var(--line);
  background-color: var(--card-bg);
  background-size: cover;
}

.photo-band-kitchen {
  background-image: url("../images/restaurant-kitchen-mobile.webp");
  background-image: image-set(
    url("../images/restaurant-kitchen-mobile.avif") type("image/avif"),
    url("../images/restaurant-kitchen-mobile.webp") type("image/webp")
  );
  background-position: 50% 45%;
}

/* На широком экране полоса шире, чем высока: у кропа 1600×900 в кадр попадала
   тёмная стена слева, поэтому здесь отдельная полоса 1600×450 с линией выдачи. */
@media (min-width: 701px) {
  .photo-band-kitchen {
    background-image: url("../images/restaurant-kitchen-strip.webp");
    background-image: image-set(
      url("../images/restaurant-kitchen-strip.avif") type("image/avif"),
      url("../images/restaurant-kitchen-strip.webp") type("image/webp")
    );
    background-position: 50% 50%;
  }
}

.photo-band-cap {
  font-size: 0.9375rem;
  color: var(--ink-2);
  max-width: 88ch;
}

/* Полоса «Проверьте в примере»: три вертикальных фрагмента одной иллюстрации.
   На широком экране — три колонки, на узком — столбик. Фрагменты сделаны
   вертикальными, чтобы подписи внутри оставались читаемыми и на телефоне.
   На узком экране пункты «Откуда цифра» и «Решение принимает человек»
   скрыты: их текст и ссылки повторяют фрагменты 2 и 3. */
.proof {
  grid-column: 1 / -1;
  display: grid;
  gap: 20px;
  margin-top: clamp(28px, 3.5vw, 48px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}

.proof-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 24px;
}

.proof-head h3 {
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.proof-note {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.proof-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.proof-item {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.proof-text {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.proof-text h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.proof-text p {
  color: var(--ink-2);
  max-width: 52ch;
}

.proof-n {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-text);
  color: var(--accent-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.proof-text .proof-formula {
  margin-block: 4px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  font-variant-numeric: tabular-nums;
}

.proof-img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card-bg);
}

.proof-svg {
  background: #f5f3ed;
}

@media (max-width: 640px) {
  .check-dup {
    display: none;
  }
}

@media (min-width: 961px) {
  .proof-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px clamp(24px, 3vw, 40px);
  }

  .proof-item {
    grid-template-rows: auto 1fr;
  }
}

.static-figure {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

/* ---------- фото секции «Начинаем с одного процесса» ----------
   Только на широком экране: на узком блок скрыт и фон не задан, файл не скачивается. */
.start-photo {
  display: none;
}

@media (min-width: 961px) {
  .start-top {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 4vw, 56px);
    align-items: stretch;
    margin-bottom: clamp(28px, 3.5vw, 44px);
  }

  .start-top > .section-head {
    margin-bottom: 0;
    align-content: end;
  }

  .start-photo {
    display: block;
    min-width: 0;
    min-height: 240px;
    height: 100%;
    border-radius: 16px;
    border: 1px solid var(--line);
    background-color: var(--card-bg);
    background-image: url("../images/resort-start-wide.webp");
    background-image: image-set(
      url("../images/resort-start-wide.avif") type("image/avif"),
      url("../images/resort-start-wide.webp") type("image/webp")
    );
    background-size: cover;
    background-position: 50% 55%;
  }
}
