/*
  Главная flocs: палитра и стили страницы поверх набора public/landing-kit (подключается последним).
  Палитра — «Флокс на сером», та же, что у приложения (src/app/globals.css; решение владельца 25.11.2026):
  серая бумага, графитовый тёмный раздел и подвал, флокс только у знака, главной кнопки и зачёркивания.
  Цвет на странице — у цветов: знак, цветы по следу курсора, картинки товаров в экранах.
  Шрифт — Golos Text приложения (--font-golos): покрывает кириллицу с расширением и латиницу с диакритикой.
*/
:root {
  --p-bg: #f3f4f4; --p-surface: #e8eaea; --p-ink: #171a1a; --p-muted: #5a6060;
  --p-accent: #b8326b; --p-accent-ink: #ffffff; --p-action: #a32c5f; --p-action-ink: #ffffff;
  --p-inv-bg: #23282a; --p-inv-surface: #2f3538; --p-inv-ink: #f1f3f3; --p-inv-muted: #b4bbbb;
  --p-inv-accent: #ffb7d5; --p-inv-accent-ink: #23282a; --p-inv-action: #f1f3f3; --p-inv-action-ink: #171a1a;
  --font-display: var(--font-golos), system-ui, sans-serif;
  --font-text: var(--font-golos), system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.04em;
  /* фон под экранами продукта */
  --ground-bg: #dfe2e2; --ground-surface: #e8eaea; --ground-ink: #171a1a; --ground-muted: #5a6060; --ground-accent: #b8326b;
}

/* Главная светлая при любой теме системы: токены приложения (globals.css) держим светлыми и без скрипта. */
html:root:root {
  color-scheme: light;
  --bg: var(--p-bg); --surface: var(--p-surface); --muted: var(--p-muted); --accent: var(--p-accent);
  --line: color-mix(in oklab, var(--p-ink) 11%, transparent);
  --fg: #171a1a; --fg-soft: #434949; --border: #d5d8d8; --surface-2: #e8eaea; --accent-fg: #ffffff; --accent-soft: #e3e6e6;
  --good: #166534; --warn: #8a4206; --bad: #a81919; --bad-fg: #ffffff;
}
::selection { background: color-mix(in oklab, var(--p-accent) 22%, transparent); }
body { min-height: 0; }

/* логотип: цветок вместо «o», размер от кегля названия */
.nav__logo .fl-logo { display: inline-flex; align-items: center; letter-spacing: -0.02em; }
.nav__logo .fl-logo svg { width: .82em; height: .82em; margin-inline: .02em; color: var(--p-accent); }
.ground-inverse .nav__logo .fl-logo svg { color: var(--p-inv-accent); }

/* ------------------------------------------------------------ вступление первого экрана
   Покой — готовый первый экран: слово flocs с цветком вместо «o», под ним заголовок, кнопки и окно «Сегодня».
   С классом fl-intro-on на <html> (layout.tsx, раз за сеанс) поверх идут keyframes: по центру экрана набирается
   «florist crm+pos», лишние буквы гаснут и схлопываются, после паузы «o» раскрывается цветком, слово уходит
   наверх на своё место, проявляются заголовок, кнопки, окно и меню. Любое действие посетителя снимает класс. */
.fl-intro {
  --s: 1;
  margin: 0; font: 500 min(9vw, 96px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink);
  white-space: nowrap; user-select: none;
  display: flex; justify-content: center; width: 0; min-width: 100%;   /* фраза шире телефона до уменьшения: не растягивает колонку и выступает поровну в обе стороны */
}
.hero--intro { overflow-x: clip; }
.fl-intro__row { display: inline-flex; align-items: center; }
.fl-intro__ch { position: relative; flex: none; }
.fl-intro__ch--space { width: .4em; }   /* пробел шире обычного: рядом с местом под «o» обычный теряется */
.fl-intro__gone { display: flex; box-sizing: content-box; max-width: 0; min-width: 0; padding-inline: .1em; margin-inline: -.1em; overflow-x: clip; opacity: 0; visibility: hidden; }
/* место под «o» в покое шириной с цветок; при наборе оно по букве и раздвигается, пока слово схлопывается */
.fl-intro__o { display: inline-grid; place-items: center; width: .82em; }
.fl-intro__o > :is(span, svg) { grid-area: 1 / 1; }
.fl-intro__o > svg { width: .82em; height: .82em; color: var(--p-accent); }
.fl-intro__letter { opacity: 0; }
.fl-intro__petal, .fl-intro__eye { transform-origin: 0 0; }
/* курсор: у начала строки и после каждой буквы, виден только в свой промежуток */
.fl-intro__start { position: relative; align-self: stretch; }
.fl-intro__start::after, .fl-intro__ch::after {
  content: ""; position: absolute; left: calc(100% + .03em); top: 8%; bottom: 4%; width: .055em; border-radius: .03em;
  background: var(--p-accent); opacity: 0;
}
.fl-intro__start::after { left: -.03em; }
.hero--intro .hero__c { gap: var(--s-4); }
.hero--centred.hero--intro h1 { font-size: clamp(27px, 1.9vw + 20px, 46px); line-height: 1.1; max-width: none; margin-top: var(--s-2); }
@media (max-width: 639px) {
  /* на телефоне слово в покое крупнее, а фраза набирается уменьшенной, чтобы поместиться в экран */
  .fl-intro { --s: .56; font-size: min(16vw, 68px); }
  .hero--centred.hero--intro h1 { max-width: 14ch; }
}

html.fl-intro-on {
  --type: 800ms;      /* начало набора; до него мигает курсор */
  --dim: 3100ms;      /* фраза набрана и прочитана: лишние буквы гаснут */
  --fold: 3700ms;     /* и схлопываются */
  --bloom: 5500ms;    /* пауза, затем «o» становится цветком */
  --rise: 6700ms;     /* слово уходит на своё место */
  --rest: 7500ms;     /* слово встало: проявляется остальной экран */
}
html.fl-intro-on .fl-intro {
  animation: fl-intro-rise 900ms cubic-bezier(.65, 0, .35, 1) var(--rise) backwards;
}
html.fl-intro-on .fl-intro__ch { animation: fl-intro-key 1ms steps(1) calc(var(--type) + var(--t)) backwards; }
html.fl-intro-on .fl-intro__ch::after { animation: fl-intro-caret var(--d) steps(1) calc(var(--type) + var(--t)); }
html.fl-intro-on .fl-intro__ch--last::after { animation: fl-intro-blink 1060ms steps(1) calc(var(--type) + var(--t)); }
html.fl-intro-on .fl-intro__start::after { animation: fl-intro-blink 1060ms steps(1) calc(var(--type) - 1060ms); }
html.fl-intro-on .fl-intro__gone {
  animation: fl-intro-dim 500ms ease-out var(--dim) both,
             fl-intro-fold 1000ms cubic-bezier(.65, 0, .35, 1) calc(var(--fold) + var(--i) * 110ms) backwards;
}
html.fl-intro-on .fl-intro__o { animation: fl-intro-key 1ms steps(1) calc(var(--type) + var(--t)) backwards, fl-intro-slot 1100ms cubic-bezier(.65, 0, .35, 1) var(--fold) backwards; }
html.fl-intro-on .fl-intro__letter { animation: fl-intro-o 420ms cubic-bezier(.5, 0, .75, 0) var(--bloom) backwards; }
html.fl-intro-on .fl-intro__petal {
  animation: fl-intro-petal 950ms cubic-bezier(.16, 1, .3, 1) calc(var(--bloom) + 200ms + var(--i) * 85ms) backwards;
}
html.fl-intro-on .fl-intro__eye { animation: fl-intro-eye 500ms cubic-bezier(.16, 1, .3, 1) calc(var(--bloom) + 180ms) backwards; }
html.fl-intro-on .hero--intro :is(h1, .hero__lead, .btn-row) { animation: fl-intro-in 800ms cubic-bezier(.16, 1, .3, 1) var(--rest) backwards; }
html.fl-intro-on .hero--intro .hero__lead { animation-delay: calc(var(--rest) + 110ms); }
html.fl-intro-on .hero--intro .btn-row { animation-delay: calc(var(--rest) + 220ms); }
html.fl-intro-on .hero--intro .hero__window { animation: fl-intro-window 1200ms cubic-bezier(.16, 1, .3, 1) calc(var(--rest) + 160ms) backwards; }
html.fl-intro-on .nav { animation: fl-intro-nav 700ms ease-out calc(var(--rest) + 300ms) backwards; }
/* посетитель не стал ждать: экран проявляется сразу */
html.fl-intro-skip :is(.hero--intro .hero-text, .nav) { animation: fl-intro-nav 420ms ease-out; }

@keyframes fl-intro-key { from { opacity: 0; } }
@keyframes fl-intro-caret { from, to { opacity: 1; } }
@keyframes fl-intro-blink { 0%, 100% { opacity: 1; } 25% { opacity: 0; } 50% { opacity: 1; } 75% { opacity: 0; } }
@keyframes fl-intro-dim { from { color: var(--ink); } to { color: color-mix(in oklab, var(--ink) 30%, transparent); } }
@keyframes fl-intro-fold {
  from { max-width: var(--w); opacity: 1; visibility: visible; filter: blur(0); }
  80% { opacity: 0; }
  to { max-width: 0; opacity: 0; visibility: visible; filter: blur(.04em); }
}
/* буква сжимается в точку — на её месте остаётся глазок цветка */
@keyframes fl-intro-o { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.3); } }
/* при наборе «o» стоит как обычная буква; место под цветок появляется вместе со схлопыванием */
@keyframes fl-intro-slot { from { width: .57em; } }
@keyframes fl-intro-petal { from { transform: scale(0) rotate(-48deg); } }
@keyframes fl-intro-eye { from { transform: scale(0); } }
/* до подъёма слово стоит по центру экрана: его место в покое — под меню, на --hgap ниже */
@keyframes fl-intro-rise { from { transform: translateY(calc(50svh - var(--nav) - var(--hgap) - .5em)) scale(var(--s)); } }
@keyframes fl-intro-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes fl-intro-window { from { opacity: 0; transform: translateY(72px); } }
@keyframes fl-intro-nav { from { opacity: 0; } }
@media (max-width: 1279px) { .fl-wide-only { display: none; } }

/* ------------------------------------------------------------ цветы по следу курсора (hero-bloom.tsx)
   Холст под всем содержимым первого экрана: текст, кнопки и окно «Сегодня» стоят поверх. Низ растворяется,
   чтобы цветок не обрезало по границе раздела. Нажатий не ловит. */
.fl-bloom {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 72px), transparent); mask-image: linear-gradient(#000 calc(100% - 72px), transparent);
}

/* ------------------------------------------------------------ экраны продукта (внутри картинок)
   Сняты с настоящих экранов 25.11.2026: серая бумага #f3f4f4, белые карточки с рамкой, графитовое меню с иконками lucide,
   серые копейки, метки-пилюли с точкой, малиновая главная кнопка. Свои переменные --f-*: палитра приложения (globals.css),
   а не страницы, и тёмный раздел их не меняет. */
.fl {
  --f-ink: #171a1a; --f-soft: #434949; --f-muted: #5a6060; --f-line: #e7e9e9; --f-line2: #d5d8d8; --f-ctl: #7c8282;
  --f-bg: #f3f4f4; --f-zebra: #f8f9f9; --f-total: #e8eaea; --f-accent: #a32c5f; --f-accent-soft: #f4e4eb;
  --f-good: #166534; --f-warn: #8a4206; --f-bad: #a81919; --row: 40px;
  container-type: inline-size; color: var(--f-ink); background: #fff; border: 1px solid var(--f-line2); border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgb(23 26 26 / .05), 0 14px 32px -18px rgb(23 26 26 / .22);
  font: 400 14px/1.4 var(--font-text); font-variant-numeric: tabular-nums; user-select: none; text-align: left;
}
.fl b, .fl strong { font-weight: 600; }
.fl i, .fl em, .fl u { font-style: normal; text-decoration: none; }
.fl small { font-size: 12.5px; color: var(--f-muted); }
.fl svg { display: block; flex: none; width: 15px; height: 15px; }
.fl-soft, .fl-kop { color: var(--f-muted); }
.fl-kop { font-weight: 400; }
.fl-good { color: var(--f-good); }
.fl-m { white-space: nowrap; }
.fl-num { text-align: right; white-space: nowrap; }
.fl-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--f-muted); }
.fl-dot--good { background: var(--f-good); } .fl-dot--warn { background: #b45f09; } .fl-dot--bad { background: var(--f-bad); }
.fl-tone-a { background: #1f7a3f; } .fl-tone-b { background: #1b66c9; } .fl-tone-c { background: #d0552b; } .fl-tone-d { background: #c79a1b; }

/* картинка товара: та же, что на плитке кассы */
.fl-pic { display: block; flex: none; width: 32px; height: 32px; border-radius: 7px; overflow: hidden; background: #f1e9dc; }
.fl-pic > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* окно «Управления»: графитовое меню и рабочая область; высоту окна задаёт рабочая область, меню обрезается, как при прокрутке */
.fl-win > .fl__in { display: grid; grid-template-columns: 204px minmax(0, 1fr); }
.fl-rail { position: relative; contain: size; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 0 8px; background: #23282a; color: #f1f3f3; font-size: 13.5px; }
.fl-rail::after { content: ""; position: absolute; inset: auto 0 0; height: 28px; background: linear-gradient(transparent, #23282a); }
.fl-rail__shop { display: flex; align-items: center; justify-content: space-between; flex: none; height: 42px; margin: 0 -8px 4px; padding: 0 14px; font-weight: 600; border-bottom: 1px solid #3b4245; }
.fl-rail__shop > svg { opacity: .6; }
.fl-rail__find { display: flex; align-items: center; gap: 8px; flex: none; height: 30px; padding: 0 8px; border: 1px solid #3b4245; border-radius: 7px; color: #b4bbbb; white-space: nowrap; }
.fl-rail__find > kbd { margin-left: auto; padding: 1px 5px; border-radius: 4px; background: rgb(255 255 255 / .08); font: 10px/1.5 var(--font-mono); }
.fl-rail__group { display: grid; gap: 1px; flex: none; }
.fl-rail__label { padding: 5px 8px 2px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #b4bbbb; }
.fl-rail__item { display: flex; align-items: center; gap: 9px; height: 27px; padding: 0 8px; border-radius: 7px; white-space: nowrap; overflow: hidden; }
.fl-rail__item > svg { opacity: .8; }
.fl-rail__item.is-on { background: #3d4548; color: #fff; font-weight: 500; }
.fl-rail__item.is-on > svg { opacity: 1; }
.fl-main { container-type: inline-size; min-width: 0; padding: 16px 20px 20px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; background: var(--f-bg); }
.fl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fl-h { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.fl-sub { color: var(--f-muted); font-size: 13px; }
.fl-date, .fl-select, .fl-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--f-ctl); border-radius: 7px; background: #fff; font-size: 13px; white-space: nowrap; }
.fl-btn { font-weight: 500; }
.fl-btn--main { border-color: transparent; background: var(--f-accent); color: #fff; }
.fl-select::after { content: ""; width: 6px; height: 6px; margin-left: 14px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); opacity: .6; }

/* «Сегодня»: выручка дня и план месяца одной карточкой, флажки, день по часам и деньги за день */
.fl-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--f-line2); border-radius: 10px; background: #fff; overflow: hidden; }
.fl-duo__cell { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 12px 16px 14px; font-size: 13px; }
.fl-duo__cell + .fl-duo__cell { border-left: 1px solid var(--f-line); }
.fl-duo__cell > * { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-duo__cap { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.fl-duo__cap > .fl-soft { font-weight: 500; }
.fl-big { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.fl-big > small { font-size: 14px; font-weight: 500; letter-spacing: 0; }
.fl-meter { position: relative; display: block; height: 4px; margin: 6px 0 4px; border-radius: 2px; background: var(--f-total); overflow: visible !important; }
.fl-meter > i { display: block; height: 100%; border-radius: 2px; background: #6b7272; }
.fl-meter > u { position: absolute; top: -3px; width: 2px; height: 10px; background: var(--f-ink); }
.fl-meter--plan > i, .fl-meter--year > i { background: var(--f-accent); }
.fl-flags { display: flex; gap: 8px; overflow: hidden; }
.fl-flags > span { display: inline-flex; flex: none; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border: 1px solid var(--f-line2); border-radius: 99px; background: #fff; font-size: 13px; white-space: nowrap; }
.fl-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.fl-cap { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; margin-bottom: 6px; }
.fl-cap > .fl-soft { font-weight: 400; font-size: 13px; }
@container (min-width: 720px) { .fl-cols { grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); } }
@media (min-width: 640px) and (max-width: 1023px) { .fl-win > .fl__in { grid-template-columns: 168px minmax(0, 1fr); } }
.fl-hours { border: 1px solid var(--f-line2); border-radius: 10px; background: #fff; overflow: hidden; }
.fl-frag .fl-hours, .fl-frag .fl-money { border: 0; border-radius: 0; }
.fl-hours__row { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 54px; padding: 6px 14px; border-top: 1px solid var(--f-line); }
.fl-hours__row:first-child { border-top: 0; }
.fl-hours__who { display: grid; min-width: 0; line-height: 1.3; }
.fl-hours__who > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-hours__who > span { font-size: 12.5px; color: var(--f-muted); }
.fl-money { border: 1px solid var(--f-line2); border-radius: 10px; background: #fff; overflow: hidden; }
.fl-money__cap { padding: 7px 14px; background: var(--f-total); font-size: 12.5px; font-weight: 600; }
.fl-money__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 4px 14px; border-top: 1px solid var(--f-line); white-space: nowrap; }
.fl-money__cap + .fl-money__row, .fl-money__bar + .fl-money__row { border-top: 0; }
.fl-money__row > span { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.fl-money__row--total { background: var(--f-total); }
.fl-money__bar { display: flex; gap: 2px; height: 7px; margin: 12px 14px 4px; }
.fl-money__bar > i { border-radius: 3px; }

/* таблицы */
.fl-table { border: 1px solid var(--f-line2); border-radius: 10px; background: #fff; overflow: hidden; }
.fl-frag > .fl__in > .fl-table, .fl-frag > .fl__in > .fl-list { border: 0; border-radius: 0; }
.fl-tr { display: grid; align-items: center; column-gap: 14px; min-height: var(--row); padding: 4px 14px; border-top: 1px solid var(--f-line); }
.fl-frag .fl-tr, .fl-frag .fl-li { padding-inline: 16px; }
.fl-tr > * { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-tr:first-child { border-top: 0; }
.fl-tr:nth-child(odd):not(.fl-tr--head, .fl-tr--total, .fl-tr--mark, .fl-tr--warn) { background: var(--f-zebra); }
.fl-tr--head { min-height: 34px; font-size: 12.5px; font-weight: 500; color: var(--f-soft); background: var(--f-total); }
.fl-tr--head + .fl-tr { border-top: 0; }
.fl-tr--total { border-top: 1px solid var(--f-line2); background: var(--f-total); }
.fl-tr--mark { background: var(--f-accent-soft); }
.fl-tr--warn { background: #fdf3e3; color: var(--f-warn); }
.fl-table--shifts .fl-tr { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) 56px minmax(0, 1.1fr) minmax(0, 1.2fr); }
.fl-table--aging .fl-tr { grid-template-columns: minmax(0, 1.5fr) 64px 60px minmax(0, 1.9fr); min-height: 52px; }
.fl-table--batch .fl-tr { grid-template-columns: minmax(0, 1.5fr) 76px 116px; }
.fl-table--batch .fl-tr > :first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-block: 4px; white-space: normal; overflow: visible; }
.fl-table--sum .fl-tr { grid-template-columns: minmax(0, 1fr) auto; }
.fl-table--sync .fl-tr { grid-template-columns: minmax(0, 1fr) 28px 104px; }
.fl-shiftcell { display: flex; align-items: center; gap: 8px; }
.fl-prod { display: flex; align-items: center; gap: 10px; }
.fl-prod > b { min-width: 0; white-space: normal; line-height: 1.25; }
.fl-term { display: flex; align-items: center; justify-content: space-between; gap: 8px; overflow: visible !important; }
.fl-term > .fl-btn { height: 28px; }

/* метки состояния */
.fl-chip { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 99px; font-size: 12.5px; font-weight: 500; white-space: nowrap; background: #e8eaea; color: #434949; }
.fl-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.fl-chip--plain::before { content: none; }
.fl-chip--done { background: #dcefe2; color: #166534; }
.fl-chip--open, .fl-chip--soon { background: #f3e6d6; color: #8a4206; }
.fl-chip--assembled { background: var(--f-accent-soft); color: var(--f-accent); }
.fl-chip--expired { background: #fbe3e3; color: #a81919; }
.fl-up { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 6px; background: #dcefe2; color: #166534; font-size: 12.5px; font-weight: 600; letter-spacing: 0; vertical-align: middle; }
.fl .fl-up > svg { width: 12px; height: 12px; }

/* блок экрана с тонированной шапкой */
.fl-frag__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 6px 16px; border-bottom: 1px solid var(--f-line2); }
.fl-frag__head > b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-frag__head > .fl-soft { font-size: 13px; white-space: nowrap; }
.fl-frag__sub { padding: 7px 16px; background: var(--f-total); font-size: 12.5px; font-weight: 600; border-block: 1px solid var(--f-line); }
.fl-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.fl-li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: var(--row); padding: 4px 14px; border-top: 1px solid var(--f-line); white-space: nowrap; }
.fl-li:first-child { border-top: 0; }
.fl-li > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fl-li--key { grid-template-columns: 18px minmax(0, 1fr) auto; min-height: 58px; }
.fl-li--key > span { display: grid; line-height: 1.3; white-space: normal; }
.fl-li--key > svg { color: var(--f-muted); }
.fl-li--file { grid-template-columns: 22px minmax(0, 1fr) auto; }
.fl-file { width: 18px; height: 22px; border-radius: 3px; background: #1d6f42; position: relative; overflow: visible; }
.fl-file::after { content: ""; position: absolute; inset: 7px 4px 5px; border: solid #fff; border-width: 1.5px 0; }
.fl-actbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--f-line2); background: var(--f-bg); white-space: nowrap; overflow: hidden; }

/* «Обзор года»: главная цифра со сравнением, три показателя и выручка по месяцам */
.fl-year { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); border-bottom: 1px solid var(--f-line2); }
.fl-year__lead { display: grid; align-content: start; gap: 3px; padding: 14px 16px; font-size: 13px; }
.fl-year__lead .fl-big { display: flex; align-items: center; gap: 8px; font-size: 30px; }
.fl-year__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--f-line); }
.fl-year__stats > div { display: grid; align-content: start; justify-items: start; gap: 4px; padding: 14px 14px; font-size: 13px; white-space: nowrap; }
.fl-year__stats > div + div { border-left: 1px solid var(--f-line); }
.fl-year__stats b { font-size: 18px; letter-spacing: -0.01em; }
.fl-chart { display: grid; gap: 8px; padding: 14px 16px 12px; }
.fl-chart__cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; white-space: nowrap; }
.fl-chart__key { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--f-muted); }
.fl-chart__key > i { width: 14px; height: 2px; margin-left: 8px; background: #9aa0a0; }
.fl-chart__key > .is-now { height: 3px; background: var(--f-accent); }
.fl-chart__key > .is-plan { background: repeating-linear-gradient(90deg, #6b7272 0 3px, transparent 3px 6px); }
.fl .fl-chart > svg { width: 100%; height: clamp(120px, 34cqw, 190px); overflow: visible; }
.fl-chart path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.fl-chart__grid { stroke: var(--f-line); stroke-width: 1; }
.fl-chart__prev { stroke: #9aa0a0; stroke-width: 1.25; }
.fl-chart__plan { stroke: #6b7272; stroke-width: 1.25; stroke-dasharray: 3 4; }
.fl-chart__now { stroke: var(--f-accent); stroke-width: 2.5; stroke-dasharray: 1; }
.fl-chart path.fl-chart__area { fill: color-mix(in oklab, var(--f-accent) 9%, transparent); }
.fl-chart__x { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-inline: -4.5%; font-size: 12px; color: var(--f-muted); text-align: center; text-transform: uppercase; }

/* «Касса» на планшете: слева поиск, чипы папки и плитки, справа чек до низа экрана */
.fl-pos { border: 8px solid #17191a; border-radius: 22px; background: var(--f-bg); box-shadow: 0 30px 50px -34px rgb(23 26 26 / .45); }
.fl-pos__off { display: flex; align-items: center; gap: 8px; padding: 7px 14px; background: #efe5da; color: var(--f-warn); font-size: 13px; font-weight: 500; line-height: 1.3; }
.fl-pos__off > .fl-dot { align-self: flex-start; margin-top: 5px; }
.fl-pos__body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 10px; padding: 10px; }
.fl-pos__goods { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; min-width: 0; }
.fl-pos__top { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 6px; }
.fl-pos__menu, .fl-pos__search, .fl-pos__recipes { display: flex; align-items: center; height: 36px; border: 1px solid var(--f-ctl); border-radius: 9px; background: #fff; white-space: nowrap; overflow: hidden; }
.fl-pos__menu { justify-content: center; }
.fl-pos__search { padding: 0 11px; color: var(--f-muted); }
.fl-pos__recipes { padding: 0 11px; border: 1.5px solid var(--f-accent); font-weight: 600; font-size: 13px; }
.fl-pos__chips { display: flex; gap: 5px; overflow: hidden; }
.fl-pos__chips > span { display: inline-flex; flex: none; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--f-ctl); background: #fff; font-weight: 500; white-space: nowrap; }
.fl-pos__chips > .is-on { background: var(--f-accent); color: #fff; border-color: transparent; }
.fl-pos__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.fl-pos__card { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px; border-radius: 11px; border: 1px solid var(--f-line2); background: #fff; }
.fl-pos__card.is-on { border-color: var(--f-accent); box-shadow: inset 0 0 0 .5px var(--f-accent); }
.fl-pos__card > .fl-pic { width: 40px; height: 40px; border-radius: 8px; }
.fl-pos__card > span:not(.fl-pic) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 6px; align-items: baseline; min-width: 0; flex: 1; line-height: 1.3; }
.fl-pos__card b { grid-column: 1 / -1; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-pos__card strong, .fl-pos__card small { white-space: nowrap; }
.fl-pos__qty { position: absolute; left: 3px; top: 3px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--f-accent); color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 0 0 2px #fff; }
.fl-pos__receipt { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--f-line2); background: #fff; min-width: 0; }
.fl-pos__customer { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 1px dashed #9aa0a0; border-radius: 9px; }
.fl-pos__customer > span { display: grid; min-width: 0; line-height: 1.3; white-space: nowrap; }
.fl-pos__customer > svg { width: 18px; height: 18px; color: var(--f-muted); }
.fl-pos__line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; padding: 9px 10px; border-radius: 9px; background: var(--f-accent-soft); line-height: 1.3; }
.fl-pos__line > b:first-child { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-pos__line > b { white-space: nowrap; }
.fl-pos__step { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; }
.fl-pos__step > i, .fl-pos__step > b { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--f-ctl); border-radius: 7px; background: #fff; }
.fl-pos__extras { display: flex; gap: 6px; margin-top: auto; overflow: hidden; }
.fl-pos__extras > span { display: inline-flex; flex: none; align-items: center; height: 30px; padding: 0 11px; border: 1px solid var(--f-ctl); border-radius: 99px; font-size: 13px; white-space: nowrap; }
.fl-pos__total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--f-line2); }
.fl-pos__total > strong { font-size: 19px; white-space: nowrap; }
.fl-pos__payarea { display: grid; }
.fl-pos__payarea > * { grid-area: 1 / 1; }
.fl-pos__pay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.fl-pos__pay > span { display: grid; place-items: center; height: 40px; border-radius: 9px; border: 1.5px solid var(--f-accent); background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.fl-pos__saved { display: grid; place-items: center; padding: 0 10px; border-radius: 9px; background: #dcefe2; color: var(--f-good); font-size: 13px; font-weight: 500; text-align: center; line-height: 1.25; opacity: 0; }

/* телефон курьера */
.fl-phone { width: 100%; max-width: 260px; border: 7px solid #17191a; border-radius: 30px; background: var(--f-bg); box-shadow: 0 30px 50px -30px rgb(23 26 26 / .5); font-size: 13.5px; }
.fl-phone__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 12px 10px; }
.fl-phone__bar > b { font-size: 17px; letter-spacing: -0.01em; }
.fl-seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--f-total); font-size: 12.5px; white-space: nowrap; }
.fl-seg > span { padding: 3px 9px; border-radius: 6px; }
.fl-seg > .is-on { background: #fff; font-weight: 600; }
.fl-phone__card { display: grid; gap: 10px; margin: 0 8px 12px; padding: 12px; border: 1px solid var(--f-line2); border-radius: 12px; background: #fff; }
.fl-phone__when { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fl-phone__when > b { font-size: 16px; }
.fl-phone__addr { display: flex; gap: 8px; }
.fl-phone__addr > svg { margin-top: 2px; color: var(--f-muted); }
.fl-phone__addr > span { display: grid; min-width: 0; line-height: 1.3; }
.fl-phone__collect { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--f-bg); line-height: 1.25; }
.fl-phone__collect > b { white-space: nowrap; }
.fl-phone__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.fl-phone__two > span { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; height: 40px; font-size: 13px; border: 1px solid var(--f-ctl); border-radius: 9px; font-weight: 500; white-space: nowrap; }
.fl-phone__main { display: grid; place-items: center; height: 48px; border-radius: 10px; background: var(--f-accent); color: #fff; font-size: 15px; font-weight: 600; }
.fl-phone__fail { text-align: center; font-size: 12.5px; color: var(--f-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--f-line2); }

/* узкие экраны продукта: планшет, телефон и узкие колонки */
@container (max-width: 640px) {
  .fl-shiftcell { flex-direction: column; align-items: flex-start; gap: 2px; padding-block: 4px; }
  .fl-table--aging .fl-tr { grid-template-columns: minmax(0, 1.4fr) 60px minmax(0, 2fr); }
  .fl-table--aging .fl-tr > :nth-child(3) { display: none; }
  .fl-term { flex-wrap: wrap; row-gap: 4px; padding-block: 4px; }
}
@container (max-width: 560px) {
  .fl-table--shifts .fl-tr { grid-template-columns: minmax(0, 1fr) 52px auto; }
  .fl-table--shifts .fl-tr > :nth-child(2), .fl-table--shifts .fl-tr > :nth-child(5) { display: none; }
  .fl-win > .fl__in { grid-template-columns: minmax(0, 1fr); }
  .fl-rail { display: none; }
  .fl-main { padding: 12px; gap: 10px; }
  .fl-duo { grid-template-columns: minmax(0, 1fr); }
  .fl-duo__cell + .fl-duo__cell { border-left: 0; border-top: 1px solid var(--f-line); }
  .fl-flags > :nth-child(n+2) { display: none; }
  .fl-pos__body { grid-template-columns: minmax(0, 1fr); }
  .fl-pos__recipes { display: none; }
  .fl-pos__top { grid-template-columns: 36px minmax(0, 1fr); }
  .fl-pos__cards > :nth-child(n+5) { display: none; }
  .fl-year { grid-template-columns: minmax(0, 1fr); }
  .fl-year__stats { border-left: 0; border-top: 1px solid var(--f-line); }
  .fl-chart__key { display: none; }
}
@container (max-width: 440px) {
  .fl .fl-kop { display: none; }
  .fl-hours__row { grid-template-columns: 42px minmax(0, 1fr) auto; column-gap: 8px; padding-inline: 12px; }
  .fl-table--aging .fl-tr { grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; padding-block: 8px; }
  .fl-table--aging .fl-tr > :nth-child(2), .fl-table--aging .fl-tr > :nth-child(3) { display: none; }
  .fl-table--batch .fl-tr { grid-template-columns: minmax(0, 1fr) 70px 108px; column-gap: 8px; }
  .fl-table--aging .fl-pic { display: none; }
  .fl-term { flex-direction: column; align-items: flex-end; gap: 4px; }
  .fl-pos__cards { grid-template-columns: minmax(0, 1fr); }
  .fl-pos__cards > :nth-child(n+3) { display: none; }
  .fl-pos__chips > :nth-child(n+4) { display: none; }
  .fl-year__stats > div { padding: 10px 12px; }
  .fl-tr > :first-child:not(.fl-prod, .fl-shiftcell) { white-space: normal; }
}

/* ------------------------------------------------------------ первый экран: окно «Сегодня» целиком, без подложки и затухания */
main > .hero { --hgap: 40px; --hpadb: 36px; }
.hero--centred .hero__c { max-width: none; }
.hero--centred h1 { max-width: none; }
.hero--centred .hero__lead { max-width: 56ch; color: var(--ink); }
.hero--centred .hero__window {
  -webkit-mask-image: none; mask-image: none; background: none; border-radius: 0; min-height: 0;
  margin: var(--s-5) -24px 0; padding: 0 24px; overflow: hidden;
}
@media (max-width: 1279px) { .hero--centred h1 { max-width: 16ch; } }
@media (max-width: 639px) {
  main > .hero { --hgap: 32px; --hpadb: 24px; }
  .hero--centred .hero__window { margin: var(--s-5) 0 0; padding: 0; min-height: 0; -webkit-mask-image: none; mask-image: none; }
  .hero--centred .btn-row > .btn--secondary { display: none; }
  .fl-win--today :is(.fl-date, .fl-flags, .fl-cols__side, .fl-duo__cell:last-child, .fl-cap > .fl-soft) { display: none; }
  /* на телефоне в шапке остаётся меню: кнопка заявки стоит под заголовком */
  .nav:not(.is-open) .nav__actions { display: none; }
  .nav:not(.is-open) .nav__toggle, .nav:not(.is-open) .nav__actions + .nav__toggle { margin-left: auto; grid-column: -2 / -1; justify-self: end; }
}

/* ------------------------------------------------------------ опись переезда: «как было» зачёркнуто, рядом экран, который его заменяет
   Строки одной ориентации, как в описи: левая колонка читается сверху вниз сама по себе. Зачёркивание — фоновая линия у <s>,
   она идёт по строкам текста по очереди. В разметке строка уже зачёркнута; scenes.tsx снимает линию у строк ниже окна
   (is-armed) и возвращает её, когда строка в окне (is-seen). */
.fl-ledger { display: grid; }
.fl-line { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; padding-block: var(--s-8); border-top: 1px solid var(--line); }
.fl-ledger > .fl-line:first-child { border-top: 0; padding-top: var(--s-4); }
.fl-ledger > .fl-line:last-child { padding-bottom: 0; }
.fl-line__say { grid-column: 1 / span 4; display: grid; align-content: start; }
.fl-line__show { grid-column: 6 / -1; min-width: 0; }
.fl-was { color: var(--muted); text-wrap: pretty; }
.fl-was > s { text-decoration: none; background: linear-gradient(var(--p-accent), var(--p-accent)) no-repeat 0 56% / 100% 1.5px; }
.fl-line__say > .fl-was { max-width: 32ch; font-size: var(--t-lead); line-height: 1.45; }
.fl-line__say > h3 { margin-top: var(--s-5); font: 500 clamp(27px, 2.2vw + 4px, 38px)/1.1 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
.fl-line__say > h3 + p { margin-top: var(--s-3); max-width: 46ch; }
@media (prefers-reduced-motion: no-preference) {
  .fl-was > s { transition: background-size 900ms cubic-bezier(.16, 1, .3, 1) 120ms; }
  .fl-was { transition: color 500ms ease-out 120ms; }
  .fl-strike.is-armed:not(.is-seen) .fl-was > s { background-size: 0 1.5px; transition: none; }
  .fl-strike.is-armed:not(.is-seen) .fl-was { color: var(--ink); transition: none; }
}
/* пары экранов: второй стоит уступом, а не в ряд */
.fl-pile { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: center; }
.fl-pile > * { grid-column: 1 / -1; min-width: 0; }
.fl-pile--money > .fl-frag--money { grid-column: 6 / -1; }
.fl-pile--fresh > .fl-frag--batch { grid-column: 1 / span 9; }
/* телефон курьера держит свою ширину, список заказов берёт остальное */
.fl-pile--orders { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 20px; }
.fl-pile--orders > * { grid-column: auto; }
.fl-line__show .fl-frag { --row: 44px; }

/* мелочи: плотная таблица «было — стало» на тонированной панели */
.fl-also { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; margin-top: var(--s-9); padding: var(--s-7) var(--s-8) var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); }
.fl-also > h3 { grid-column: 1 / span 4; font: 500 var(--t-h3)/1.2 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; max-width: 14ch; }
.fl-also > table { grid-column: 5 / -1; width: 100%; border-collapse: collapse; text-align: left; }
.fl-also th { padding-bottom: var(--s-3); font-size: var(--t-label); font-weight: 500; letter-spacing: .01em; color: var(--muted); }
.fl-also td { padding: var(--s-4) 0; border-top: 1px solid var(--line-strong); vertical-align: top; line-height: 1.45; }
.fl-also :is(th, td):first-child { width: 42%; padding-right: var(--s-6); }

/* ------------------------------------------------------------ разделы высотой по содержимому: без пустых полуэкранов */
main > section.section:not(.hero) { height: auto; min-height: 0; }
@media (min-width: 1024px) { main > section.section:not(.hero) { padding: 104px 0 56px; } }

/* ------------------------------------------------------------ закреплённые разделы: экран стоит, шаги прокручиваются
   Экраны и шаги — соседи в одной сетке: все экраны занимают одну область на всю высоту и липнут к окну (sticky),
   виден экран активного шага (is-on ставит scenes.tsx). Уже 1024 закрепления нет: шаг, под ним его экран. */
.fl-apps__head { margin-bottom: var(--s-5); }
.fl-pin { --n: 4; --step: 32vh; --pin-h: 54vh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.fl-pin--flip { --n: 3; --pin-h: 48vh; }
.fl-pin__step { grid-column: 9 / -1; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-content: center; column-gap: var(--s-4); row-gap: var(--s-2); min-height: var(--step); }
.fl-pin--flip > .fl-pin__step { grid-column: 1 / span 5; }
/* неактивный шаг тише цветом, а не прозрачностью: текст остаётся читаемым на тёмном (5:1) */
.fl-pin__step > :is(h3, p) { transition: color 300ms cubic-bezier(.23, 1, .32, 1); }
.fl-pin__step:not(.is-on) > h3 { color: var(--muted); }
.fl-pin__step:not(.is-on) > p { color: color-mix(in oklab, var(--muted) 74%, var(--bg)); }
.fl-pin__n { grid-row: span 2; font: 500 var(--t-h3)/1.2 var(--font-display); color: var(--muted); font-variant-numeric: tabular-nums; }
.fl-pin__step > p { grid-column: 2; max-width: 40ch; color: var(--muted); }
.fl-pin__screen {
  grid-column: 1 / span 7; grid-row: 1 / span var(--n); align-self: start; position: sticky; top: calc((100vh + var(--nav) - var(--pin-h)) / 2);
  height: var(--pin-h); display: grid; align-content: center; justify-items: center;
  opacity: 0; visibility: hidden; transition: opacity 280ms cubic-bezier(.23, 1, .32, 1), visibility 0s linear 280ms;
}
.fl-pin--flip > .fl-pin__screen { grid-column: 7 / -1; justify-items: start; }
.fl-pin__screen.is-on { opacity: 1; visibility: visible; transition: opacity 280ms cubic-bezier(.23, 1, .32, 1); }
.fl-pin__screen > .fl { width: 100%; }
.fl-pin__screen > .fl-frag--move { max-width: 560px; }

#move .fl { border-color: #111415; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 30px 60px -30px #000; }
.fl-frag--move { --row: 46px; font-size: 15px; }
.fl-pin h3 { font: 500 var(--t-h3)/1.2 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
@media (max-width: 1023px) {
  .fl-pin { display: block; }
  .fl-pin__step { min-height: 0; margin-top: var(--s-7); }
  .fl-pin__step:not(.is-on) > h3 { color: var(--ink); }
  .fl-pin__step:not(.is-on) > p { color: var(--muted); }
  .fl-pin__step:first-child { margin-top: 0; }
  .fl-pin__screen { position: static; height: auto; display: block; opacity: 1; visibility: visible; margin-top: var(--s-5); }
}

/* ------------------------------------------------------------ «Создан флористами»: слова слева, автор справа */
.fl-story { align-items: end; }
.fl-story__say { display: grid; align-content: start; gap: var(--s-6); }
.fl-story__say > .mo-lt__type { max-width: 12ch; font-size: clamp(44px, 6.7vw, 96px); line-height: .98; letter-spacing: -0.04em; }
.fl-story__say > p { max-width: 46ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; }
.fl-author { display: grid; align-content: start; }
/* заглушка, заменить на фото: плашка-портрет с инициалом */
.fl-author__photo { display: grid; place-items: center; width: 112px; aspect-ratio: 4 / 5; margin-bottom: var(--s-5); border-radius: var(--r-md); background: var(--p-inv-bg); color: var(--p-inv-ink); font: 500 56px/1 var(--font-display); }
.fl-author__name { font: 500 clamp(32px, 3.2vw, 44px)/1.1 var(--font-display); letter-spacing: -0.03em; margin: var(--s-1) 0 var(--s-4); }
.fl-author > ul { display: grid; }
.fl-author li { padding-block: var(--s-3); border-top: 1px solid var(--line-strong); font-size: var(--t-lead); line-height: 1.4; }

/* ------------------------------------------------------------ цена: ноль крупно, под ним что входит */
.fl-price { display: grid; align-content: start; }
.fl-price__zero { font: 500 clamp(120px, 17vw, 248px)/.9 var(--font-display); letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; margin: -0.06em 0 var(--s-6) -0.03em; white-space: nowrap; }
.fl-price__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); border-top: 1px solid var(--line-strong); }
.fl-price__items > li { padding-block: var(--s-3); border-bottom: 1px solid var(--line); font-size: var(--t-lead); }
.fl-price__items > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fl-price__addons { display: grid; gap: var(--s-3); padding-top: var(--s-6); }
.fl-price__addons > h3 { font: 500 var(--t-lead)/1.4 var(--font-text); letter-spacing: 0; }
.fl-price__addons > ul { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.fl-price__addons li { padding: 7px 16px; border: 1px solid var(--line-strong); border-radius: 99px; }
.fl-price__addons > p { max-width: 50ch; }

/* ------------------------------------------------------------ вопросы */
#faq .faq > .faq__item { padding-block: var(--s-4); }
#faq .faq > .faq__item:first-child { padding-top: 0; }
#faq .faq p { max-width: 76ch; color: var(--muted); }

/* ------------------------------------------------------------ заявка */
.fl-form { position: relative; display: grid; gap: var(--s-4); padding: var(--s-7); border-radius: var(--r-lg); background: var(--p-surface); --error: color-mix(in oklab, #d92d20 72%, var(--ink)); }
.fl-form__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.fl-form__full { grid-column: 1 / -1; }
.fl-form .field :is(input, textarea) { background: #fff; }
.fl-form .field :is(input, textarea)::placeholder { color: var(--muted); opacity: 1; }
.fl-form .field textarea { min-height: 72px; }
.fl-form__opt { font-weight: 400; color: var(--muted); }
.fl-form__hint { font-size: var(--t-small); font-weight: 400; color: var(--muted); }
.fl-form__error { padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: color-mix(in oklab, var(--error) 10%, #fff); color: var(--error); font-size: var(--t-small); font-weight: 500; }
.fl-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.fl-form__foot .btn:disabled { opacity: .6; cursor: default; }
.fl-form--sent { align-content: start; gap: var(--s-2); }
/* Ловушка для ботов: не видна людям и экранным читалкам. */
.fl-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 639px) { .fl-form { padding: 0; background: none; border-radius: 0; margin-top: var(--s-6); } .fl-form__foot .btn { width: 100%; } }

/* ------------------------------------------------------------ подвал: выбор языка */
.fl-lang { flex-direction: row; align-items: center; }
.fl-lang label { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); }
.fl-lang select { min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: 400 var(--t-small)/1 var(--font-text); }

/* что будет после заявки */
.fl-next__title { font: 500 var(--t-body)/1.5 var(--font-text); letter-spacing: 0; }
.fl-next { display: grid; margin-top: var(--s-3); counter-reset: next; }
.fl-next > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); padding-block: var(--s-3); border-top: 1px solid var(--line); counter-increment: next; max-width: 52ch; }
.fl-next > li::before { content: counter(next); color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ подвал: обычный, компактный */
footer.closing.fl-foot { height: auto; min-height: 0; padding: var(--s-8) 0 var(--s-6); }
footer.closing.fl-foot > .wrap { display: block; height: auto; }
.fl-foot__brand { display: grid; align-content: start; gap: var(--s-3); }
.fl-foot__brand .nav__logo { font-size: 28px; justify-self: start; }
.fl-foot__legal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); }
.fl-form__hint a, .fl-foot__legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.fl-form__alt { padding-top: var(--s-4); border-top: 1px solid var(--line); }

/* ------------------------------------------------------------ объясняющие анимации в макетах
   В разметке стоит состояние покоя; движение идёт только под .is-play (ставит scenes.tsx, пока макет в окне)
   один проход на появление (scenes.tsx запускает заново, когда макет снова входит в окно), вёрстка не сдвигается:
   transform и opacity, у кнопки оплаты — заливка, у линии графика — stroke-dashoffset.
   При prefers-reduced-motion ничего не запускается. */
.fl-an-count, .fl-an-status, .fl-an-swap { display: inline-grid; justify-items: start; }
.fl-an-count { justify-items: end; }
.fl-an-count > *, .fl-an-status > *, .fl-an-swap > * { grid-area: 1 / 1; }
.fl-an-count > :first-child, .fl-an-status > :not(:last-child), .fl-an-swap > :last-child { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  /* касса, один проход: плитка нажата → товар в чеке → итог пересчитан → «Карта» нажата → продажа сохранена */
  .is-play .fl-pos__card.is-on { animation: fl-press 6s cubic-bezier(.23, 1, .32, 1) both; }
  .is-play .fl-an-drop { animation: fl-drop 6s cubic-bezier(.23, 1, .32, 1) both; }
  .is-play .fl-an-count > :first-child { animation: fl-count-out 6s cubic-bezier(.23, 1, .32, 1) both; }
  .is-play .fl-an-count > :last-child { animation: fl-count-in 6s cubic-bezier(.23, 1, .32, 1) both; }
  .is-play .fl-an-tap { animation: fl-tap 6s cubic-bezier(.23, 1, .32, 1) both; }
  .is-play .fl-pos__pay { animation: fl-pay-out 6s cubic-bezier(.23, 1, .32, 1) both; }
  .is-play .fl-an-saved { animation: fl-saved 6s cubic-bezier(.23, 1, .32, 1) both; }
  /* заказ и курьер, один проход: Собран → У курьера → курьер нажал «Доставил» → Выдан */
  .is-play .fl-an-status > :nth-child(1) { animation: fl-st-1 6s cubic-bezier(.23, 1, .32, 1) both; }
  .is-play .fl-an-status > :nth-child(2) { animation: fl-st-2 6s cubic-bezier(.23, 1, .32, 1) both; }
  .is-play .fl-an-status > :nth-child(3) { animation: fl-st-3 6s cubic-bezier(.23, 1, .32, 1) both; }
  .is-play .fl-an-deliver { animation: fl-deliver 6s cubic-bezier(.23, 1, .32, 1) both; }
  /* смены складываются в итог дня: один проход */
  .fl-an-sum.is-play > .fl-tr:nth-child(2) > * { animation: fl-row 700ms cubic-bezier(.23, 1, .32, 1) 300ms both; }
  .fl-an-sum.is-play > .fl-tr:nth-child(3) > * { animation: fl-row 700ms cubic-bezier(.23, 1, .32, 1) 800ms both; }
  .fl-an-sum.is-play > .fl-tr--total b { display: inline-block; animation: fl-rise 600ms cubic-bezier(.23, 1, .32, 1) 1500ms both; }
  /* свежесть, один проход: «Списать» нажато → метка «Списано», строка гаснет */
  .is-play .fl-an-swap > :first-child, .is-play .fl-an-gone { animation: fl-wo-out 5s cubic-bezier(.23, 1, .32, 1) both; }
  .is-play .fl-an-swap > :last-child { animation: fl-wo-in 5s cubic-bezier(.23, 1, .32, 1) both; }
  .is-play .fl-an-off > :is(.fl-prod, .fl-num) { animation: fl-wo-dim 5s cubic-bezier(.23, 1, .32, 1) both; }
  /* синхронизация: метки действий появляются по строкам, один проход */
  .fl-an-match.is-play .fl-chip { animation: fl-pop 420ms cubic-bezier(.23, 1, .32, 1) both; }
  .fl-an-match.is-play > :nth-child(1) .fl-chip { animation-delay: 300ms; }
  .fl-an-match.is-play > :nth-child(2) .fl-chip { animation-delay: 520ms; }
  .fl-an-match.is-play > :nth-child(3) .fl-chip { animation-delay: 700ms; }
  /* выручка года: линия текущего года прорисовывается, один проход */
  .is-play > svg > .fl-chart__now { animation: fl-draw 1800ms cubic-bezier(.16, 1, .3, 1) 200ms both; }
  .is-play > svg > .fl-chart__area { animation: fl-row 900ms ease-out 900ms both; }
}
@keyframes fl-press { 0%, 3% { transform: none; } 5% { transform: scale(.97); } 9%, 100% { transform: none; } }
@keyframes fl-drop { 0%, 6% { opacity: 0; transform: translate(-30%, 24px) scale(.96); } 14%, 100% { opacity: 1; transform: none; } }
@keyframes fl-count-out { 0%, 12% { opacity: 1; transform: none; } 17%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes fl-count-in { 0%, 12% { opacity: 0; transform: translateY(6px); } 17%, 100% { opacity: 1; transform: none; } }
@keyframes fl-tap { 0%, 36% { transform: none; background: #fff; color: inherit; } 39% { transform: scale(.95); background: var(--f-accent); color: #fff; } 43%, 100% { transform: none; background: var(--f-accent); color: #fff; } }
@keyframes fl-pay-out { 0%, 46% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes fl-saved { 0%, 47% { opacity: 0; transform: translateY(6px); } 53%, 100% { opacity: 1; transform: none; } }
@keyframes fl-st-1 { 0%, 28% { opacity: 1; transform: none; } 32%, 100% { opacity: 0; transform: translateY(-5px); } }
@keyframes fl-st-2 { 0%, 28% { opacity: 0; transform: translateY(5px); } 32%, 60% { opacity: 1; transform: none; } 64%, 100% { opacity: 0; transform: translateY(-5px); } }
@keyframes fl-st-3 { 0%, 60% { opacity: 0; transform: translateY(5px); } 64%, 100% { opacity: 1; transform: none; } }
@keyframes fl-deliver { 0%, 54% { transform: none; } 57% { transform: scale(.96); } 61%, 100% { transform: none; } }
@keyframes fl-row { from { opacity: .3; } to { opacity: 1; } }
@keyframes fl-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fl-wo-out { 0%, 38% { opacity: 1; transform: none; } 41% { opacity: 1; transform: scale(.95); } 46%, 100% { opacity: 0; transform: none; } }
@keyframes fl-wo-in { 0%, 44% { opacity: 0; transform: translateY(5px); } 49%, 100% { opacity: 1; transform: none; } }
@keyframes fl-wo-dim { 0%, 44% { opacity: 1; } 50%, 100% { opacity: .45; } }
@keyframes fl-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes fl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ------------------------------------------------------------ телефон и планшет: колонки в одну, отступы меньше */
@media (max-width: 1023px) {
  .fl-line { display: block; padding-block: var(--s-7); }
  .fl-line__show { margin-top: var(--s-6); }
  .fl-line__say > .fl-was, .fl-line__say > h3 + p { max-width: 56ch; }
  .fl-also { display: block; padding: var(--s-6); margin-top: var(--s-8); }
  .fl-also > h3 { max-width: none; margin-bottom: var(--s-5); }
  .fl-author { margin-top: var(--s-6); }
}
@media (max-width: 639px) {
  .fl-line__show .fl-frag, .fl-frag--move { --row: 40px; font-size: 14px; }
  .fl-pile--money > .fl-frag--money, .fl-pile--fresh > .fl-frag--batch { grid-column: 1 / -1; }
  .fl-pile--orders { grid-template-columns: minmax(0, 1fr); }
  .fl-pile--orders > .fl-phone { justify-self: center; }
  .fl-also { padding: var(--s-5) var(--s-4); }
  .fl-also thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .fl-also :is(tr, td) { display: block; width: auto; }
  .fl-also td:first-child { width: auto; padding: var(--s-4) 0 var(--s-1); }
  .fl-also td + td { padding-top: 0; border-top: 0; }
  .fl-price__zero { font-size: 132px; }
  .fl-price__items { grid-template-columns: minmax(0, 1fr); }
  #move .fl-frag--move, #access .fl-form, #faq .faq, .fl-price { margin-top: var(--s-5); }
}
/* узкий ноутбук: «Войти» не помещается рядом с меню, вход остаётся в подвале; экрану в строке описи — восемь колонок из двенадцати */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__actions > .nav__link { display: none; }
  .fl-line__show { grid-column: 5 / -1; }
  .fl-line__say { padding-right: var(--s-4); }
}
/* шаги закреплённого раздела стоят по центру своей высоты: лишний воздух над первым и под последним убираем */
@media (min-width: 1024px) { .fl-pin { margin-block: -24px 0; } }
#price h2 { hyphens: manual; -webkit-hyphens: manual; }
