/* Ordanio Horeca · презентация продукта.
   Одна светлая тема. Цвета, шрифты и характер взяты с лендинга продукта:
   static_src/tokens.css и static_src/landing.css. */

:root {
  --page: #f4f4f2;
  --card: #ffffff;
  --ink: #0a0a09;
  --mute: #61615b;
  --line: #e5e5e1;
  --accent: #1c5a45;
  --success: #166534;
  --tile-1: linear-gradient(135deg, #e6f0eb, #f8e3ef);
  --tile-2: linear-gradient(135deg, #fff7ed, #ebf8e3);
  --tile-3: linear-gradient(135deg, #e9f4ff, #f8e3ef);
  --font-display: Onest, system-ui, sans-serif;
  --font-body: "Inter Tight", system-ui, sans-serif;
  --radius: 22px;
  --gutter: 16px;
  --top: 60px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top); background: var(--card); }
body {
  margin: 0;
  background: var(--card);
  color: var(--ink);
  font: 400 16.5px/1.55 var(--font-body);
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.13;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ——— Шапка ——— */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--top);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.wordmark { font: 700 20px/1 var(--font-display); letter-spacing: -1px; text-decoration: none; white-space: nowrap; }
.top-nav { display: flex; gap: 30px; font-size: 15px; }
.top-nav a:not(:last-child) { display: none; }
.top-nav a { text-decoration: none; }
.top-nav a:hover { color: var(--mute); }
.top-nav a:last-child { border: 1px solid var(--line); padding: 8px 14px; border-radius: 99px; font-size: 14px; }

/* ——— Общие ——— */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 14px;
}
.num {
  display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 8px;
  border-radius: 99px; background: var(--ink); color: var(--card);
  font-size: 11px; letter-spacing: 0.04em;
}
.wrap { max-width: 1192px; margin: 0 auto; padding: 0 var(--gutter); }

/* ——— История: сцена с телефоном ——— */
.story { position: relative; }
.stage {
  position: sticky; top: var(--top); z-index: 0;
  height: calc(100svh - var(--top));
  overflow: hidden;
  pointer-events: none;
}
.stage-tiles { position: absolute; inset: 10px 10px 39% 10px; border-radius: 24px; overflow: hidden; }
.tile { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.tile-1 { background: var(--tile-1); }
.tile-2 { background: var(--tile-2); }
.tile-3 { background: var(--tile-3); }
.stage[data-tile="1"] .tile-1, .stage:not([data-tile]) .tile-1,
.stage[data-tile="2"] .tile-2,
.stage[data-tile="3"] .tile-3 { opacity: 1; }
.stage-view { position: absolute; inset: 0 0 40% 0; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-shadow {
  position: absolute; left: 50%; bottom: calc(40% + 2px); width: 200px; height: 34px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(10, 10, 9, 0.22), transparent);
  filter: blur(8px);
}
.phone-css {
  position: absolute; left: 50%; top: 4%;
  height: 52%; aspect-ratio: 78 / 163.4;
  transform: translateX(-50%) rotate(-2deg);
  /* ровная чёрная рамка 2% ширины, внешний радиус 13%, внутренний концентрический */
  border-radius: 13% / 6.2%;
  background: #121315;
  padding: 2%;
  box-shadow: 0 40px 80px -30px rgba(10, 10, 9, 0.35), 0 12px 30px -18px rgba(10, 10, 9, 0.25);
}
.phone-css-screen { position: relative; width: 100%; height: 100%; border-radius: 11.46% / 5.35%; overflow: hidden; background: #fff; }
.phone-css-img { width: 100%; height: 100%; object-fit: cover; transition: opacity .28s ease; }
.phone-css-img.is-swapping { opacity: 0; }
.stage.is-3d .phone-css { visibility: hidden; }
.stage-caption { display: none; }

.steps { position: relative; z-index: 1; margin-top: calc(-100svh + var(--top)); }
.step {
  min-height: 80svh;
  display: flex; align-items: flex-end;
  padding: 0 var(--gutter) 22px;
}
.step:first-child { min-height: calc(100svh - var(--top)); }
.step-head { min-height: 92svh; }
.step-card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  box-shadow: 0 18px 40px -26px rgba(10, 10, 9, 0.35);
}
.step-card h1 { font-size: 30px; line-height: 1.04; letter-spacing: -0.052em; margin-bottom: 12px; }
.step-card h2 { font-size: 26px; line-height: 1.09; letter-spacing: -0.045em; margin-bottom: 10px; }
.step-card h3 { font-size: 20px; line-height: 1.2; margin-bottom: 6px; }
.step-card h2 + h3 { margin-top: 14px; }
.step-card p + p { margin-top: 10px; }
.step-card p { color: var(--mute); }
.step-card .lead { color: var(--ink); font-size: 16px; line-height: 1.5; }
.step-card .note { font-size: 14px; line-height: 1.5; }
.scroll-hint {
  margin-top: 14px; font-size: 13px; color: var(--mute);
  display: flex; align-items: center; gap: 8px;
}
.scroll-hint::before { content: ""; width: 18px; height: 1px; background: currentColor; }

.start-list { list-style: none; margin: 14px 0 12px; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.start-list li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; }
.start-list li::before {
  content: counter(s); grid-row: span 2;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--page); font: 600 13px/1 var(--font-display);
}
.start-list strong { font-weight: 600; font-family: var(--font-display); letter-spacing: -0.015em; }
.start-list span { color: var(--mute); font-size: 15.5px; }

/* Без JS: телефона нет, кадры стоят в тексте. */
html:not(.js) .stage { display: none; }
html:not(.js) .steps { margin-top: var(--top); }
html:not(.js) .step { min-height: 0; padding-top: 16px; }
html:not(.js) .shot { display: block; max-width: 260px; }

/* ——— Тарифы ——— */
.pricing { position: relative; z-index: 2; background: var(--card); padding: 64px 0 56px; border-top: 1px solid var(--line); }
.pricing h2, .contact h2 { font-size: 36px; line-height: 1.09; letter-spacing: -0.045em; }
.pricing-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.cur-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--page); white-space: nowrap; }
.cur-switch button {
  font: 400 14px/1 var(--font-body); color: var(--ink);
  border: 0; background: transparent; padding: 10px 14px; border-radius: 99px; cursor: pointer;
}
.cur-switch button[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.pricing .kzt { display: none; }
.pricing[data-cur="kzt"] .kzt { display: inline; }
.pricing[data-cur="kzt"] .rub { display: none; }

.plans { display: grid; gap: 12px; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 20px; display: flex; flex-direction: column;
}
.plan h3 { font-size: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.tag { font: 400 12px/1 var(--font-body); letter-spacing: 0; padding: 5px 10px; border-radius: 99px; background: var(--ink); color: var(--card); }
.plan-main { background: var(--page); border-color: var(--page); }
.price { font: 600 36px/1.05 var(--font-display); letter-spacing: -0.04em; margin-top: 16px; white-space: nowrap; }
.per { color: var(--mute); font-size: 13.5px; margin-top: 4px; }
.year { font-size: 13.5px; margin-top: 2px; color: var(--mute); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 15px; }
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.plan li::before { content: ""; width: 10px; height: 2px; background: currentColor; margin-top: 11px; opacity: .45; border-radius: 2px; }
.limits { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.plan-main .limits { border-top-color: #dcdcd7; }

.packs-title { font-size: 25px; margin: 44px 0 12px; }
.packs { border-top: 1px solid var(--line); }
.pack { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pack h4 { font-size: 17px; }
.pack p { color: var(--mute); font-size: 15px; }
.pack .pack-price { color: var(--ink); font: 600 17px/1.3 var(--font-display); letter-spacing: -0.02em; }
.pack-price small { display: block; font: 400 14px/1.4 var(--font-body); letter-spacing: 0; color: var(--mute); margin-top: 2px; }
.pricing-note { margin-top: 18px; color: var(--mute); font-size: 14.5px; }

/* ——— Контакт и подвал ——— */
.contact { position: relative; z-index: 2; background: var(--card); padding: 8px 0 40px; }
.contact-box { background: var(--tile-3); padding: 40px var(--gutter); margin: 0 calc(var(--gutter) * -1); }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-radius: 16px; background: var(--card);
}
.contact-list span { color: var(--mute); font-size: 14px; }
.contact-list a { font: 600 18px/1.2 var(--font-display); letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere; text-align: right; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot { position: relative; z-index: 2; background: var(--card); padding: 0 0 calc(28px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--mute); }
.foot .wrap > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; border-top: 1px solid var(--line); padding-top: 20px; }

/* ——— Компьютер ——— */
@media (min-width: 900px) {
  :root { --top: 72px; --gutter: 32px; }
  .wordmark { font-size: 21px; }
  .top-nav { align-items: center; }
  .top-nav a:not(:last-child) { display: inline; }
  .top-nav a:last-child { padding: 9px 18px; font-size: 15px; }
  .story {
    display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr);
    max-width: 1192px; margin: 0 auto; padding: 0 var(--gutter);
    column-gap: 42px;
  }
  .steps { grid-column: 1; grid-row: 1; margin-top: 0; padding-top: var(--top); }
  .stage { grid-column: 2; grid-row: 1; align-self: start; height: calc(100svh - var(--top)); }
  .stage-tiles { inset: 3vh 0 3vh 0; border-radius: 32px; overflow: hidden; }
  .stage-view { inset: 3vh 0 9vh 0; }
  .stage-shadow { bottom: calc(9vh + 4px); width: 300px; height: 44px; }
  .phone-css { top: 7vh; height: calc(100% - 20vh); }
  .stage-caption {
    display: flex; align-items: center; gap: 8px; justify-content: center;
    position: absolute; left: 0; right: 0; bottom: calc(3vh + 18px);
    font-size: 13px;
  }
  .stage-caption-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
  .step { min-height: 78svh; align-items: center; padding: 8svh 0; }
  .step:first-child { min-height: calc(100svh - var(--top)); }
  .step-head { min-height: 92svh; }
  .step-card { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; max-width: 540px; }
  .step-card h1 { font-size: clamp(44px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.055em; margin-bottom: 26px; }
  .step-card h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.07; margin-bottom: 18px; }
  .step-card h3 { font-size: 26px; margin-bottom: 12px; }
  .step-card p { font-size: 18px; line-height: 1.6; }
  .step-card .lead { font-size: 20px; line-height: 1.5; }
  .step-card .note { font-size: 14px; }
  .step:not(.step-head):not(.step-hero) .step-card { border-top: 1px solid var(--line); padding-top: 20px; }
  .start-list span { font-size: 16.5px; }
  .pricing { padding: 100px 0 88px; }
  .pricing h2, .contact h2 { font-size: clamp(34px, 4vw, 52px); }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .plan { padding: 30px 26px; }
  .plan h3 { font-size: 26px; }
  .price { font-size: 44px; }
  .packs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 0; }
  .pack { grid-template-columns: 1fr auto; column-gap: 24px; align-items: start; border-top: 1px solid var(--line); border-bottom: 0; }
  .pack-price { text-align: right; }
  .contact { padding: 0 0 72px; }
  .contact-box { border-radius: 24px; padding: 48px; margin: 0; }
  .contact-list { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .contact-list li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; }
  .contact-list a { text-align: left; font-size: 21px; }
}

@media (max-width: 380px) {
  .step-card h1 { font-size: 27px; }
  .step-card h2 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-css-img, .tile { transition: none; }
}

.foot-credit { width: 100%; font-size: 12px; }
.foot-credit a { color: inherit; }

/* ——— Кадры в рамке: телефонная лента и вид без JS ———
   Рамка как у телефонов на статике кейсов Ordanio: тонкая чёрная,
   мягкое скругление, «остров» сверху, мягкая тень. */
.shot, .hero-phone { display: none; }
.shot { margin: 0; }
.shot-frame {
  position: relative; background: #0d0e10;
  padding: 2%; border-radius: 13% / 6.2%;
  box-shadow: 0 28px 50px -26px rgba(10, 10, 9, 0.45), 0 10px 24px -16px rgba(10, 10, 9, 0.25);
}
.shot-frame::before {
  content: ""; position: absolute; z-index: 1; left: 50%; top: 3.1%; transform: translateX(-50%);
  width: 27%; aspect-ratio: 125 / 37; border-radius: 99px; background: #000;
}
.shot-frame img { display: block; width: 100%; height: auto; border-radius: 11.4% / 5.35%; background: var(--page); }

/* ——— Телефонная вёрстка: обычная лента, без липкой сцены ——— */
@media (max-width: 899px) {
  html { scroll-padding-top: calc(var(--top) + 8px); }
  .top { height: var(--top); padding: 0 var(--gutter); }
  .wordmark { display: inline-flex; align-items: center; min-height: 44px; }
  .top-nav { gap: 0; }
  .top-nav a:last-child { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; font-size: 16px; }

  .stage { display: none; }
  .steps { margin-top: 0; padding-top: var(--top); }
  .scene { padding: 8px 0 20px; }
  .scene + .scene { border-top: 1px solid var(--line); }
  .step, .step:first-child, .step-head { min-height: 0; display: block; padding: 28px var(--gutter) 12px; }
  .step-card { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; opacity: 1 !important; }
  .step-card h1 { font-size: 32px; line-height: 1.05; letter-spacing: -0.05em; margin-bottom: 14px; }
  .step-card h2 { font-size: 28px; line-height: 1.1; margin-bottom: 12px; }
  .step-card h3 { font-size: 21px; margin-bottom: 8px; }
  .step-card p, .step-card .lead { font-size: 17px; line-height: 1.55; }
  .step-card .note { font-size: 16px; }
  .start-list span { font-size: 16px; }
  .scroll-hint { display: none; }

  .shot { display: block; margin: 22px 0 8px; padding: 26px 0; border-radius: 24px; background: var(--tile-1); }
  .scene[data-tile="2"] .shot { background: var(--tile-2); }
  .scene[data-tile="3"] .shot { background: var(--tile-3); }
  .shot .shot-frame { width: 80%; margin: 0 auto; }

  .hero-phone { display: block; position: relative; margin: 22px 0 4px; border-radius: 24px; background: var(--tile-1); overflow: hidden; }
  .hero-view { position: absolute; inset: 0; }
  .hero-view canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
  .hero-phone .shot-hero { margin: 0; background: none; border-radius: 0; padding: 26px 0; }
  .hero-phone .shot-hero .shot-frame { width: 50%; }
  .hero-phone.is-3d .shot-hero { visibility: hidden; }

  .pricing { padding: 48px 0 40px; }
  .pricing-head { display: block; margin-bottom: 24px; }
  .pricing-head h2 { margin-bottom: 18px; }
  .cur-switch button { min-height: 44px; padding: 0 18px; font-size: 16px; }
  .plan ul { font-size: 16px; }
  .per, .year, .limits { font-size: 16px; }
  .pack p, .pack-price small, .pricing-note { font-size: 16px; }
  .contact { padding: 8px 0 32px; }
  .contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-list li { padding: 6px 16px; }
  .foot { font-size: 15px; }
  .contact-list span { font-size: 15px; }
  .foot-credit { font-size: 14px; }
  .foot-credit a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 380px) {
  .step-card h1 { font-size: 29px; }
  .step-card h2 { font-size: 25px; }
}

/* ——— Телефон: ленты вбок (собираются в app.js только до 899 px) ——— */
@media (max-width: 899px) {
  .lane-wrap { margin: 18px 0 6px; }
  .lane {
    display: flex; gap: 12px; align-items: stretch;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-padding: 0 16px;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    padding: 4px 16px 18px; scrollbar-width: none;
  }
  .lane::-webkit-scrollbar { display: none; }
  .lane::after { content: ""; flex: 0 0 4px; }
  .lane.is-hinting { scroll-snap-type: none; }
  .lane-card {
    flex: 0 0 calc(100vw - 56px); scroll-snap-align: start;
    display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line); border-radius: 22px;
    padding: 16px 10px 10px; box-shadow: 0 14px 30px -24px rgba(10, 10, 9, 0.35);
  }
  .lane-card h3 { font-size: 20px; line-height: 1.2; margin: 0 6px 6px; }
  .lane-card p { font-size: 16px; line-height: 1.5; color: var(--mute); margin: 0 6px; }
  .lane .lane-card .shot { margin: auto 0 0; padding: 14px 0 0; background: none; border-radius: 0; }
  .lane .lane-card .shot .shot-frame { width: 100%; padding: 1.6%; }
  .lane-dots { display: flex; justify-content: center; gap: 0; margin-top: -8px; }
  .lane-dots button { width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .lane-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c9c9c4; transition: width .2s ease, background .2s ease; }
  .lane-dots button[aria-current="true"]::before { width: 22px; border-radius: 4px; background: var(--ink); }
  .step-sub { padding-top: 18px; }

  /* Тарифы лентой, «Заведение» по центру */
  .plans.lane { margin: 0 -16px; gap: 12px; padding: 4px 16px 18px; }
  .plans.lane-center { scroll-snap-type: x mandatory; }
  .plans.lane > .plan { flex: 0 0 calc(100vw - 56px); scroll-snap-align: center; box-shadow: 0 14px 30px -24px rgba(10, 10, 9, 0.35); }
  .pricing .lane-wrap { margin: 0 0 8px; }

  /* Одиночный экран вне ленты («Как начать»): крупнее, без широких полей */
  .step > .step-card > .shot { padding: 14px 0; }
  .step > .step-card > .shot .shot-frame { width: 86%; padding: 1.6%; }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .lane-dots button::before { transition: none; }
}

/* ——— Телефон: карточка ленты вместе с точками входит в видимую высоту ———
   Высота карточки = малая высота окна (svh, с панелью Safari) − шапка − поля ленты − точки.
   Экран в карточке берёт остаток после текста и подстраивает ширину под высоту. */
@media (max-width: 899px) {
  .lane-card { height: calc(100vh - var(--top) - 66px); height: calc(100svh - var(--top) - 66px); }
  .lane .lane-card .shot {
    flex: 1 1 0; min-height: 0; display: flex; justify-content: center; align-items: flex-start;
    margin: 0; padding: 12px 0 0;
  }
  .lane .lane-card .shot .shot-frame {
    box-sizing: content-box; height: calc(100% - 10px); width: auto; max-width: calc(100% - 10px);
    aspect-ratio: 720 / 1541; padding: 5px;
  }
  .lane .lane-card .shot .shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .lane-wrap { scroll-margin-top: var(--top); }
}
