/* BEES Automate page CSS: only what sits inside a visual (layout-v4.md, system.md). Shared by index.html (sr) and en.html. */

/* ---------- hero window: Instagram chat, the calendar day, the Telegram alert (kit demo window, dark) */
.d-win { border-radius: 12px; overflow: hidden; font: 400 14px/1.4 var(--font-text); }
.d-win--dark { background: #17191c; color: #eceef0; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 30px 70px -30px rgb(0 0 0 / .8); }
.d-win__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(255 255 255 / .07); font-size: 13px; color: #9aa0a6; }
.d-win__bar b { color: #eceef0; font-weight: 500; } .d-win__bar .sp { flex: 1; }
.d-win__dots { display: flex; gap: 6px; } .d-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3e43; }
.d-chat { display: grid; gap: 8px; align-content: start; padding: 12px 14px; font-size: 13px; }
.d-msg { max-width: 86%; padding: 8px 12px; border-radius: 16px; background: #22262b; color: #e9ecee; line-height: 1.4; }
.d-msg--me { justify-self: end; background: #f2f2f0; color: #121314; border-bottom-right-radius: 6px; }
.d-msg--bot { border-bottom-left-radius: 6px; }

.bk-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); min-height: 420px; }
.bk-pane { min-width: 0; }
.bk-pane + .bk-pane { border-left: 1px solid rgb(255 255 255 / .07); }
.bk-head { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; font-size: 13px; font-weight: 500; color: #eceef0; border-bottom: 1px solid rgb(255 255 255 / .05); }
.bk-slots { list-style: none; margin: 0; padding: 10px 14px; display: grid; gap: 8px; font-size: 13px; }
.bk-slots li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 34px; }
.bk-slots time { color: #8d9399; font-variant-numeric: tabular-nums; }
.bk-ev { display: block; padding: 7px 10px; border-radius: 8px; background: #2b3a55; color: #e9ecee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-ev--new { background: var(--p-accent); color: #0f0f0f; font-weight: 500; }
.bk-free { color: #6f757b; padding: 7px 10px; border: 1px dashed rgb(255 255 255 / .14); border-radius: 8px; display: block; }
.bk-note { margin: 10px 14px 0; padding: 10px 12px; border-radius: 12px; background: #22262b; font-size: 13px; line-height: 1.45; color: #c9cdd1; }
.bk-note b { color: #fff; font-weight: 500; }
.bk-note small { display: block; margin-top: 4px; color: #7d8389; font-size: 13px; }
.bk-note--new { background: #1f2a1a; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--p-accent) 45%, transparent); color: #e9ecee; }
@media (max-width: 1023px) { .bk-body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .bk-tg { display: none; } }
@media (max-width: 639px) {
  .bk-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .bk-cal { display: none; }
  .hero__window .d-win__bar .sp ~ span { display: none; }
}

/* ---------- loss calculator */
.bk-calc { align-items: stretch; }
.bk-calc__form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-content: start; }
.bk-calc__form .field { display: grid; gap: var(--s-2); align-content: end; }
.bk-calc__form label { font-size: var(--t-small); color: var(--muted); }
.bk-calc__form input { height: 48px; padding: 0 var(--s-4); border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: 500 20px/1 var(--font-text); font-variant-numeric: tabular-nums; width: 100%; }
.bk-calc__out { justify-content: flex-start; gap: var(--s-3); }
.bk-calc__out > .bk-calc__sum { margin: 0; font: var(--display-weight) clamp(56px, 6vw, 96px)/1 var(--font-display); letter-spacing: var(--display-tracking-xl); color: var(--p-accent); font-variant-numeric: tabular-nums; }
.bk-bars { display: grid; gap: var(--s-4); margin-top: auto; padding-top: var(--s-5); }
.bk-bar { display: grid; gap: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.bk-bar i { display: block; height: 12px; border-radius: 99px; width: var(--w, 100%); background: var(--p-accent); transition: width .4s var(--ease, ease); }
.bk-bar--pro i { background: var(--line-strong); }
@media (prefers-reduced-motion: reduce) { .bk-bar i { transition: none; } }
@media (max-width: 639px) { .bk-calc__form { grid-template-columns: 1fr; gap: var(--s-4); } .bk-calc__out > .bk-calc__sum { font-size: 56px; } }

/* ---------- Telegram card in the feature and step panels */
.bk-tgcard { padding: 0 0 16px; }
.bk-tgcard .ui-head { gap: 8px; }
.bk-tgcard__q { margin: 12px 16px 0; font-size: 14px; line-height: 1.45; }
.bk-tgcard__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 16px 0; }
.bk-tgcard__btns span { display: grid; place-items: center; height: 34px; border-radius: 8px; font-size: 13px; font-weight: 500; background: color-mix(in oklab, currentColor 8%, transparent); }
.bk-tgcard__btns span + span { background: #c62828; color: #fff; }
.bk-tgcard__tag { margin: 12px 16px 0; font-size: 13px; line-height: 1.4; opacity: .8; }
.bk-tgcard__tag b { color: #e53935; font-weight: 500; }
.ui-note__ico img { display: block; }

/* ---------- the barber's calendar: app-frame recipe (sections-library.md) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
.app .ui-calendar { width: 100%; max-width: none; }
.app .ui-win__crumb img { margin-right: 6px; vertical-align: -2px; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* ---------- comparison table */
.bk-cmp__row { padding-block: var(--s-4); border-bottom: 1px solid var(--line); font-size: var(--t-body); align-items: start; }
.bk-cmp__row > :first-child { font-weight: 500; }
.bk-cmp__row > :nth-child(2) { color: var(--muted); }
.bk-cmp__head { font-size: var(--t-label); font-weight: 500; color: var(--muted); padding-top: 0; }
.bk-cmp__head > :last-child { color: var(--p-accent); }
@media (max-width: 639px) {
  .bk-cmp__row > :first-child { grid-column: 1 / -1; }
  .bk-cmp__row > :nth-child(2), .bk-cmp__row > :nth-child(3) { grid-column: auto / span 1; }
  .bk-cmp__row { grid-template-columns: 1fr 1fr; row-gap: var(--s-1); }
  .bk-cmp__head > :first-child { display: none; }
}

/* ---------- who it is for: the detail strip, four 1:1 photographs from line to line */
.bk-strip { margin-top: var(--s-7); }
.bk-photo { margin: 0; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 5; }
.bk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 640px) and (max-width: 1023px) { .bk-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bk-strip > .bk-photo { grid-column: auto; aspect-ratio: 1; } .bk-cmp__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bk-cmp__row > * { grid-column: auto; } }
@media (max-width: 639px) { .bk-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bk-strip > .bk-photo { grid-column: auto; aspect-ratio: 1; } }

/* ---------- nav menu cards: the real app icon on a panel */
.menu-card .menu-ic { --p-h: 120px; display: grid; place-items: center; }

/* ---------- the close: the name set across the wrap, hand-sized for "BEES Automate" (13 letters) */
.close__word { font-size: clamp(40px, 12.9vw, 186px); white-space: nowrap; }
@media (max-width: 639px) { .close__word { font-size: 12.6vw; } }

/* ---------- screens at the tablet and phone (layout-v4.md section 2) */
@media (min-width: 640px) and (max-width: 1023px) { #podesavanje { --h: 2; } }
@media (max-width: 639px) { #funkcije .panel { --p-h: 140px; } #podesavanje { --hm: 2; } #podesavanje .panel { --p-h: 180px; } }
@media (min-width: 640px) and (max-width: 1023px) { .bk-cmp__row { padding-block: var(--s-6); font-size: var(--t-lead); } .bk-cmp__head { font-size: var(--t-small); } }
.bk-calc__how { grid-column: 1 / -1; align-self: end; margin: 0; font-size: var(--t-small); }
.bk-calc__form { grid-template-rows: auto auto 1fr; }

/* ---------- fixes from the consistency check */
:root { --p-muted: #a6a6a6; }
.hero__window .bk-win { width: 100%; max-width: none; }
.bk-calc__form { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: var(--s-4); align-content: space-between; }
.bk-calc__form input { height: 56px; }
.bk-calc__out > .bk-calc__sum { font-size: clamp(48px, 4.4vw, 64px); }
.bk-cmp__row { border-bottom: 0; padding-block: var(--s-3); }
.bk-cmp__row + .bk-cmp__row:not(.bk-cmp__head) { border-top: 0; }
.close__word { line-height: 1.05; overflow: visible; padding-top: .04em; }
.card--plan { transition: transform .2s var(--ease, ease), box-shadow .2s var(--ease, ease); }
.card--plan:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card--plan:hover { transform: none; } }
.price .muted, .card--plan p { text-wrap: pretty; }
@media (min-width: 640px) and (max-width: 819px) { #cene { --h: 2; } }
@media (min-width: 1024px) and (max-width: 1279px) { #podesavanje .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } #podesavanje .grid > .card { grid-column: auto; } }
@media (max-width: 639px) { .bk-cmp__row > :first-child { grid-column: 1 / -1; } }
.closing__cta { container-type: inline-size; }
.close__word { font-size: 13.4cqi; }
@media (max-width: 639px) { .close__word { font-size: 13.4cqi; } }
@media (min-width: 800px) and (max-width: 1023px) { .bk-cmp__row { padding-block: var(--s-7); } }

/* ---------- round 2 */
.ground-inverse { --p-inv-muted: #4a4a4a; }
:root { --p-inv-muted: #4a4a4a; }
.bk-res { padding: 0 0 20px; }
.bk-res .bk-calc__sum, .bk-calc__out .bk-calc__sum { margin: 16px 20px 0; font: var(--display-weight) 56px/1 var(--font-display); letter-spacing: var(--display-tracking-xl); color: var(--p-accent); font-variant-numeric: tabular-nums; }
.bk-res .bk-bars { margin: 20px 20px 0; padding: 0; gap: 12px; }
.bk-res .bk-bar { font-size: 13px; }
.bk-bar--pro i { background: rgb(255 255 255 / .22); }
.bk-cmp__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter, 24px); }
.bk-cmp__pair > :first-child { color: var(--muted); }
.bk-cmp__row > :nth-child(2) { color: inherit; }
.bk-cmp__head .bk-cmp__pair > :last-child { color: var(--p-accent); }
@media (min-width: 640px) and (max-width: 1023px) { .bk-cmp__row { grid-template-columns: repeat(12, minmax(0, 1fr)); } .bk-cmp__row > :first-child { grid-column: 1 / span 6; } .bk-cmp__row > .bk-cmp__pair { grid-column: 7 / -1; } }
@media (max-width: 639px) {
  .bk-cmp__row { grid-template-columns: minmax(0, 1fr); }
  .bk-cmp__row > * { grid-column: 1 / -1; }
  .bk-cmp__head > :first-child { display: none; }
  .bk-res .bk-calc__sum, .bk-calc__out .bk-calc__sum { font-size: 36px; }
}
@media (max-width: 379px) { #poredjenje { --hm: 2; } }
@media (min-width: 1024px) { #cene { --h: 1; } }
@media (max-width: 639px) { #cene { --hm: 2; } }

/* ---------- round 3 */
.bk-calc__out { gap: var(--s-4); }
.bk-calc__out .bk-res { margin-top: auto; width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md, 14px); }
.bk-apps { display: inline-flex; gap: 6px; margin-right: 10px; vertical-align: -5px; }
.bk-apps img { width: 20px; height: 20px; }
.bk-applist, .bk-contact { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.bk-applist li, .bk-contact a { display: flex; align-items: center; gap: var(--s-3); font-weight: 500; }
.bk-contact a { color: inherit; text-decoration: none; }
.bk-contact a:hover { color: var(--p-accent); }
.bk-applist img, .bk-contact img { width: 28px; height: 28px; flex: none; }
@media (max-width: 639px) { #funkcije .panel { --p-h: 160px; } }
.bk-body { min-height: 0; }
@media (max-width: 639px) { #gubitak { --hm: 2; } #cene .grid { row-gap: var(--s-6); } #cene .card--plan { padding-block: var(--s-7); } }


/* ---------- round 4: visuals for comparison, pricing, questions */
.bk-cmp__vis { --p-h: 300px; }
.bk-cmp { margin-top: var(--s-6); }
.bk-cmp__row { padding-block: var(--s-2); }
.bk-side-vis { --p-h: 300px; margin-top: var(--s-4); }
.bk-mini { padding-bottom: 6px; }
.bk-mini .ui-head { gap: 8px; }
.bk-mini .d-msg { background: rgb(0 0 0 / .06); color: inherit; }
.bk-mini .d-msg--me { background: #121314; color: #f2f2f0; }
@media (max-width: 639px) {
  .bk-calc__form { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .bk-calc__form .field label { min-height: 3.2em; }
  .bk-calc__how { display: none; }
  #gubitak { --hm: 1; }
  .bk-res .bk-calc__sum { font-size: 40px; }
  .bk-res .bk-bars { gap: 16px; } .bk-bar i { height: 16px; }
  #podesavanje .panel { --p-h: 260px; }
}
@media (max-width: 639px) {
  #gubitak-h .muted { display: none; }
  .bk-calc__form { gap: var(--s-2) var(--s-3); } .bk-calc__form input { height: 48px; }
  .bk-cmp__vis { --p-h: 220px; }
  #cene .bk-side-vis { --p-h: 260px; }
  #pitanja { --hm: 2; } #pitanja .bk-side-vis { --p-h: 420px; } #pitanja .faq { row-gap: var(--s-7); }
}
@media (max-width: 639px) { #pitanja .faq > .faq__item { padding-block: var(--s-6); } }
/* the Instagram glyph is a black one-tone mark: white on this dark page and its dark UI */
img[src$="instagram.svg"]:not(.menu-card img) { filter: invert(1); }
.bk-contact a { min-height: 44px; }
.bk-contact { gap: 0; }
@media (max-width: 639px) { #pitanja .bk-side-vis { --p-h: 340px; } }
/* English runs longer on a phone */
@media (max-width: 639px) { html[lang="en"] #funkcije .panel { --p-h: 150px; } html[lang="en"] #pitanja .bk-side-vis { --p-h: 260px; } }

/* ---------- a fixed screen height on phones and tablets (--sh, set once in the head): the sections never
   grow while the browser bars slide, so the page stays put under the finger (iPhone Chrome) */
@media (max-width: 1279px) {
  :root {
    --ly-screen: calc(var(--sh, 100svh) - var(--ly-nav));
    --ly-fit: calc(var(--sh, 100svh) - var(--padt, 120px) - var(--padb, 72px) - var(--bar, 0px));
    --ly-hero-h: calc(var(--sh, 100svh) - var(--nav, 72px) - var(--hgap, 48px) - var(--hpadb, 64px) - var(--bar, 0px));
  }
  .hero--centred .hero__window { min-height: clamp(220px, calc(var(--sh, 100svh) * .32), 340px); }
}
@media (min-width: 640px) and (max-width: 1279px) {
  main > :is(section, .section):not(.hero, .section--hero), footer.closing { min-height: calc(var(--h, 1) * var(--sh, 100svh)); }
  main > :is(.hero, .section--hero) { height: var(--sh, 100svh); }
}
@media (max-width: 639px) {
  main > :is(section, .section):not(.hero, .section--hero), footer.closing { min-height: calc(var(--hm, var(--h, 1)) * var(--sh, 100lvh)); }
  main > :is(.hero, .section--hero) { min-height: var(--sh, 100svh); }
}

/* ---------- the phone bar stays shown, never slides */
.actionbar { transition: none !important; }
/* the sections pad a fixed 64px for the bar: env(safe-area-inset-bottom) changes on iPhone while the browser
   toolbar slides, and in --bar it resized every section, so the page jumped on each change of direction;
   only the bar itself grows into the home-indicator area */
@media (max-width: 639px) {
  :root:has(> body > nav.actionbar) { --bar: 64px; }
  .actionbar { height: auto; min-height: 64px; }
}

/* ---------- the hive: honey accent (in the :root block), honeycomb cells on the logo and the calendar's day */
.bk-note--new { background: #2a2312; }
.mark.mark--initial { border-radius: 0; clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%); width: 26px; height: 26px; }
.ui-cal__d.is-today b { border-radius: 0; clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%); }
.ui-cal__d.is-mark b { border-radius: 0; box-shadow: none; background: color-mix(in oklab, var(--u-accent) 14%, transparent); clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%); }
/* the closing line: a sentence, set a little smaller than the two-word name it replaced */
.close__word--line { font-size: 10.2cqi; white-space: nowrap; }
@media (max-width: 639px) {
  #pitanja .bk-side-vis { display: none; }
  #podesavanje .panel { --p-h: 236px; }
}

/* ---------- smooth jumps from the menu and buttons to a section */
/* (smooth.js glides; the browser's own smooth scrolling stays off so the two never fight) */

/* ---------- reveal: a section's parts rise in as they reach the screen (reveal.js) */
.bk-rv { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.bk-rv.is-in { opacity: 1; transform: none; }

/* ---------- comparison: one bordered table, a row line under each job, a cross and a tick */
#poredjenje .bk-cmp { margin-top: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 18px); padding: 0 var(--s-6); }
#poredjenje .bk-cmp__row { padding-block: 14px; border-top: 1px solid var(--line); align-items: center; }
#poredjenje .bk-cmp__head { border-top: 0; padding-block: 16px 12px; font-size: var(--t-small); text-transform: none; }
#poredjenje .bk-cmp__head .bk-cmp__pair > :first-child { color: var(--muted); }
#poredjenje .bk-cmp__head .bk-cmp__bot { color: var(--p-accent); font-weight: 600; }
#poredjenje .bk-cmp__row:not(.bk-cmp__head) .bk-cmp__pair > [role="cell"] { display: flex; gap: 10px; align-items: baseline; }
#poredjenje .bk-cmp__row:not(.bk-cmp__head) .bk-cmp__pair > [role="cell"]:first-child { color: var(--muted); }
#poredjenje .bk-cmp__row:not(.bk-cmp__head) .bk-cmp__pair > [role="cell"]:first-child::before { content: "✕"; color: #8a5a55; font-size: .85em; flex: none; }
#poredjenje .bk-cmp__row:not(.bk-cmp__head) .bk-cmp__pair > [role="cell"]:last-child { color: var(--ink); font-weight: 500; }
#poredjenje .bk-cmp__row:not(.bk-cmp__head) .bk-cmp__pair > [role="cell"]:last-child::before { content: "✓"; color: var(--p-accent); font-weight: 700; flex: none; }
@media (max-width: 639px) {
  #poredjenje .bk-cmp { padding: 0 var(--s-4); }
  #poredjenje .bk-cmp__row { row-gap: 6px; }
  #poredjenje .bk-cmp__row > [role="rowheader"] { font-size: var(--t-small); color: var(--muted); }
}
@media (max-width: 639px) { #poredjenje { --hm: 2; } #poredjenje .bk-cmp__vis { --p-h: 360px; } #poredjenje .bk-cmp__row { padding-block: 16px; } }

/* ---------- bees (bees.js): a clipped layer over the section, never in the way of a click */
.bk-bees { position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important; z-index: 3 !important; pointer-events: none; overflow: hidden; margin: 0 !important; }
.bk-bee { position: absolute; left: 0; top: 0; width: 34px; height: 27px; will-change: transform; filter: drop-shadow(0 3px 4px rgb(0 0 0 / .35)); }
.bk-bee svg { display: block; overflow: visible; }
.bk-bee__w { transform-box: fill-box; transform-origin: 50% 100%; }

/* ---------- order form (order.js): a dialog over the page, a bottom sheet on a phone */
html.bk-lock { overflow: hidden; }
.bk-order { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg, 18px);
  background: var(--surface); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.bk-order::backdrop { background: rgb(0 0 0 / .6); backdrop-filter: blur(6px); }
.bk-order[open] { animation: bk-pop .32s cubic-bezier(.2,.8,.2,1); }
@keyframes bk-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes bk-sheet { from { transform: translateY(100%); } }
.bk-order__form, .bk-order__done { display: grid; gap: var(--s-4); padding: var(--s-6); }
.bk-order__form[hidden], .bk-order__done[hidden], .bk-order__team[hidden], .bk-order__err[hidden] { display: none; }
.bk-order__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.bk-order h2 { margin: 0; font-size: 28px; }
.bk-order__x { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: none; color: inherit; font-size: 22px; cursor: pointer; }
.bk-order__x:hover { border-color: var(--p-accent); color: var(--p-accent); }
.bk-order__plans { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); min-width: 0; }
.bk-plan { position: relative; display: block; cursor: pointer; }
.bk-plan input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bk-plan span { display: grid; gap: 4px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md, 14px); transition: border-color .2s, background .2s; }
.bk-plan b { font-size: 17px; }
.bk-plan small { color: var(--muted); font-size: 13px; }
.bk-plan input:checked + span { border-color: var(--p-accent); background: color-mix(in oklab, var(--p-accent) 10%, transparent); }
.bk-plan input:focus-visible + span { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.bk-order__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); }
.bk-order__wide { grid-column: 1 / -1; }
.bk-order .field input { width: 100%; }
.bk-order__team small { font-weight: 400; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bk-order__sum { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); padding: 14px 16px; border-radius: var(--r-md, 14px); background: var(--bg); }
.bk-order__sum span { display: grid; gap: 2px; color: var(--muted); font-size: 13px; }
.bk-order__sum b { color: var(--p-accent); font: var(--display-weight) 28px/1.1 var(--font-display); letter-spacing: -0.02em; }
.bk-order__err { margin: 0; color: #ff8a7a; font-size: var(--t-small); }
.bk-order__send { width: 100%; height: 52px; }
.bk-order__note { margin: 0; text-align: center; font-size: 13px; }
.bk-order__done { justify-items: start; }
.bk-order__ok { display: grid; place-items: center; width: 52px; height: 52px; background: var(--p-accent); color: #0f0f0f; font-size: 26px; font-weight: 700;
  clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%); }
.bk-order__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); width: 100%; }
.bk-order__steps li { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-3); padding: 12px 0; border-top: 1px solid var(--line); }
.bk-order__steps b { color: var(--p-accent); }
@media (max-width: 639px) {
  .bk-order { width: 100vw; max-width: none; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: 92dvh; }
  .bk-order[open] { animation-name: bk-sheet; }
  .bk-order__form, .bk-order__done { padding: var(--s-5) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom)); }
  .bk-order__grid { grid-template-columns: 1fr; }
  .bk-order h2 { font-size: 24px; }
  .bk-order .field input { font-size: 16px; }   /* no zoom on iPhone */
}

.bk-order__ts:empty { display: none; }
.bk-order__ts { min-height: 65px; }
