/* Сайт SDC HoReCa. Токены — те же, что в кабинете (Onda): холст, белые карточки, чёрный текст, один синий акцент. */
:root {
  --canvas: #f3f3f4;
  --surface: #fff;
  --fill: #ebebed;
  --ink: #18181b;
  --muted: #5f5f68;
  --line: #e2e2e5;
  --accent: #1455d9;
  --accent-ink: #0f44b0;
  --r-hero: 28px;
  --r-card: 24px;
  --r-ctl: 12px;
  --gutter: 16px;
  --max: 1240px;
  --shadow: 0 1px 2px rgba(24, 24, 27, .06), 0 18px 48px -18px rgba(24, 24, 27, .28);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1.1 inherit; font-family: inherit; text-decoration: none; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--blue { background: var(--accent); color: #fff; }
.btn--blue:hover { background: var(--accent-ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2c2c31; }
.btn--glass { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .26); }
.btn--line { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn--line:hover { border-color: #c9c9ce; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Шапка */
.top { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.top__logo img { height: 30px; width: auto; }
.top__nav { display: none; gap: 28px; font-weight: 500; font-size: 15px; }
.top__nav a, .lang { text-decoration: none; color: var(--muted); }
.top__nav a:hover, .lang:hover { color: var(--ink); }
.top__end { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.lang { font-weight: 600; font-size: 14px; padding: 8px 4px; }

/* Первый экран: фото как на экране входа, снизу заголовок */
.hero { padding-bottom: 8px; }
.hero__card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: min(82svh, 760px); border-radius: var(--r-hero); background: #1b2332; color: #fff;
}
.hero__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 18, 27, .15) 0%, rgba(14, 18, 27, 0) 35%, rgba(14, 18, 27, .45) 65%, rgba(14, 18, 27, .86) 100%);
}
.hero__body { padding: 28px 20px 24px; max-width: 760px; text-shadow: 0 1px 18px rgba(14, 18, 27, .35); }
.hero h1 { font-size: clamp(44px, 12vw, 112px); line-height: .95; letter-spacing: -.045em; }
.hero__lead { margin: 16px 0 24px; max-width: 34ch; font-size: 18px; line-height: 1.45; color: rgba(255, 255, 255, .86); }

/* Обзор кабинета под первым экраном */
.reveal { margin: 16px 0 0; padding: 8px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); }
.reveal__shot { border-radius: 16px; width: 100%; }
.reveal__phone, .media__phone { border-radius: 26px; border: 5px solid var(--ink); box-shadow: var(--shadow); background: var(--surface); }
.reveal__phone { display: none; }

/* Блоки возможностей */
.features { display: grid; gap: 72px; padding-top: 64px; }
.feature { display: grid; gap: 28px; align-items: center; }
.feature__text h2 { font-size: clamp(32px, 7.6vw, 52px); line-height: 1.02; }
.feature__text > p { margin-top: 16px; color: var(--muted); max-width: 54ch; }
.points { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 54ch; }
.points li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }

.media { position: relative; }
.media__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); }
.media--shot { padding-bottom: 18%; }
.media--shot .media__photo { width: 78%; }
.media__shot {
  position: absolute; right: 0; bottom: 0; width: 86%;
  border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); border: 6px solid var(--surface);
}
/* Телефон: вместо мелкого экрана компьютера — экран кабинета в телефоне, его можно прочитать */
@media (max-width: 767px) {
  .reveal { background: none; box-shadow: none; padding: 0; margin-top: 24px; }
  .reveal:has(.reveal__phone) .reveal__shot { display: none; }
  .reveal__phone { display: block; width: min(76%, 300px); margin-inline: auto; }
  .media--shot { padding-bottom: 0; }
  .media--shot .media__photo { width: 100%; aspect-ratio: 4 / 3; }
  .media--shot:has(.media__phone) .media__shot { display: none; }
  .media__phone { display: block; position: relative; width: 62%; margin: -34% 6% 0 auto; }
}

/* Интеграции */
.integrations { padding-top: 96px; }
.integrations__card { display: grid; background: var(--surface); border-radius: var(--r-card); overflow: hidden; }
.integrations__text { padding: 28px 20px; }
.integrations h2 { font-size: clamp(30px, 7vw, 44px); line-height: 1.04; }
.integrations__text > p { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.systems { margin: 24px 0 0; display: grid; gap: 0; }
.systems div { display: grid; align-content: start; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.systems dt { font-weight: 700; }
.systems dd { margin: 0; color: var(--muted); font-size: 15px; }
.integrations__photo { width: 100%; height: 280px; object-fit: cover; }

/* Частые вопросы: ответы на сомнения перед заявкой */
.faq { padding-top: 96px; }
.faq h2 { font-size: clamp(34px, 8vw, 56px); line-height: 1; }
.faq__list { margin-top: 32px; background: var(--surface); border-radius: var(--r-card); padding: 4px 20px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-weight: 700; font-size: 18px; letter-spacing: -.01em; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px);
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 64ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Подключение: настоящая последовательность шагов */
.start { padding-top: 96px; padding-bottom: 96px; }
.start h2 { font-size: clamp(34px, 8vw, 56px); line-height: 1; }
.steps { list-style: none; counter-reset: step; margin: 32px 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--r-card); padding: 24px 20px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 20px;
  border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
}
.steps h3 { font-size: 20px; letter-spacing: -.02em; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Подвал */
.foot { position: relative; display: grid; gap: 12px; padding-top: 32px; padding-bottom: 48px; color: var(--muted); font-size: 15px; }
.foot::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.foot img { height: 24px; width: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot__links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.foot__links a:hover { text-decoration: underline; }
.foot__credit a { color: var(--muted); }

@media (max-width: 479px) {
  .actions .btn { flex: 1 1 100%; }
  .top .btn--sm { padding: 0 14px; }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  body { font-size: 18px; }
  .top { min-height: 88px; }
  .top__nav { display: flex; }
  .hero__body { padding: 48px; }
  .hero__lead { font-size: 20px; }
  .reveal { margin-top: 20px; padding: 10px; }
  .features { gap: 120px; padding-top: 128px; }
  .media__phone { position: absolute; left: 4%; bottom: 0; width: 22%; border-radius: 22px; }
  .media--shot:has(.media__phone) .media__shot { width: 74%; }
  .integrations__text { padding: 48px; }
  .integrations__photo { height: 360px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .steps li { padding: 28px; }
  .faq__list { padding: 8px 32px; }
}

@media (min-width: 1024px) {
  .hero__card { min-height: min(86svh, 820px); }
  .hero__body { padding: 64px 64px 168px; max-width: 980px; }
  /* Слева стена светлая: затемняем сторону с текстом, правая часть фото остаётся чистой */
  .hero__card::after {
    background:
      linear-gradient(90deg, rgba(14, 18, 27, .74) 0%, rgba(14, 18, 27, .52) 40%, rgba(14, 18, 27, 0) 70%),
      linear-gradient(180deg, rgba(14, 18, 27, .1) 0%, rgba(14, 18, 27, 0) 40%, rgba(14, 18, 27, .5) 100%);
  }
  .hero h1 { font-size: clamp(72px, 7.4vw, 108px); }
  /* Обзор наплывает на фото, как продолжение первого экрана */
  .reveal { width: 86%; margin: -96px auto 0; position: relative; }
  .feature { grid-template-columns: 7fr 5fr; gap: 64px; }
  .feature--flip { grid-template-columns: 5fr 7fr; }
  .feature--flip .media { order: 2; }
  .media:not(.media--shot) .media__photo { aspect-ratio: 5 / 4; }
  .integrations__card { grid-template-columns: 7fr 5fr; }
  .integrations__text { padding: 56px; }
  .systems { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .integrations__photo { height: 100%; min-height: 100%; }
  .foot { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 32px; }
  .foot__credit { grid-column: 1 / -1; }
}

/* Планшет: блоки в одну колонку, поэтому фото ниже, чтобы экран не был сплошной картинкой */
@media (min-width: 768px) and (max-width: 1023px) {
  .media__photo { aspect-ratio: 3 / 2; }
  .media--shot .media__photo { aspect-ratio: 4 / 3; }
}
