/* =============================================================
   HOME — hero, search pill, carousels, venue cards, sections
   ============================================================= */

/* ---- Hero ---- */
.bk-hero {
  padding-block: var(--bk-space-16) var(--bk-space-12);
  position: relative;
  /* Gradient derives from the configurable brand colour (item 8) so it follows
     the site colour pattern instead of a fixed purple/pink. */
  background:
    radial-gradient(90% 110% at 85% -10%, color-mix(in srgb, var(--bk-primary, #5b3df5) 34%, transparent), transparent 60%),
    radial-gradient(80% 100% at 10% 0%, color-mix(in srgb, var(--bk-primary-300, var(--bk-primary, #5b3df5)) 28%, transparent), transparent 55%),
    radial-gradient(70% 90% at 50% 110%, color-mix(in srgb, var(--bk-primary, #5b3df5) 18%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--bk-primary, #5b3df5) 8%, var(--bk-bg)) 0%, color-mix(in srgb, var(--bk-primary, #5b3df5) 4%, var(--bk-bg)) 50%, var(--bk-bg) 70%);
}
/* Extend the hero background up behind the sticky header so the
   gradient is visible through the transparent menu bar at the top. */
.bk-home .bk-hero {
  margin-top: calc(-1 * var(--bk-header-h));
  padding-block: calc(var(--bk-header-h) + var(--bk-space-16)) var(--bk-space-12);
}

/* Soften the bottom edge so the gradient blends seamlessly into the
   section below regardless of content height. */
.bk-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: var(--bk-space-16);
  background: linear-gradient(to bottom, transparent, var(--bk-bg));
  pointer-events: none;
}
.bk-hero__head { text-align: center; max-width: 760px; margin-inline: auto; margin-bottom: var(--bk-space-10); }
.bk-hero__title { font-size: var(--bk-fs-display); font-weight: var(--bk-fw-extrabold); letter-spacing: -0.02em; line-height: var(--bk-lh-tight); }
.bk-hero__sub { color: var(--bk-text-muted); font-size: var(--bk-fs-lg); margin-top: var(--bk-space-4); }
.bk-hero__counter { text-align: center; margin-top: var(--bk-space-6); color: var(--bk-text-muted); font-size: var(--bk-fs-sm); }
.bk-hero__counter strong { color: var(--bk-text); font-weight: var(--bk-fw-bold); }

/* ---- Search pill ---- */
.bk-pill {
  display: flex; align-items: stretch; gap: 4px;
  max-width: 920px; margin-inline: auto; padding: 8px;
  background: var(--bk-bg); border-radius: var(--bk-radius-btn);
  box-shadow: var(--bk-shadow-lg);
}
.bk-pill__field { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: var(--bk-radius-pill); flex: 1; min-width: 0; transition: background var(--bk-dur-fast) var(--bk-ease); }
.bk-pill__field:hover { background: var(--bk-hover); }
.bk-pill__field--treatment { flex: 1.4; }
.bk-pill__icon { color: var(--bk-text-muted); font-size: 18px; flex: 0 0 auto; }
.bk-pill__control { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; min-width: 0; text-align: start; }
.bk-pill__label { font-size: var(--bk-fs-xs); font-weight: var(--bk-fw-semibold); color: var(--bk-text); }
.bk-pill__input { width: 100%; border: none; background: transparent; padding: 0; font-size: var(--bk-fs-sm); color: var(--bk-text); }
.bk-pill__input:focus { outline: none; }
.bk-pill__input::placeholder { color: var(--bk-text-faint); }
.bk-pill__value { font-size: var(--bk-fs-sm); color: var(--bk-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bk-pill__trigger { cursor: pointer; }
.bk-pill__sep { width: 1px; background: var(--bk-border); margin-block: 10px; flex: 0 0 auto; }
.bk-pill__submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bk-ink); color: var(--bk-on-ink);
  border-radius: var(--bk-radius-pill); padding: 0 26px; min-height: 56px; flex: 0 0 auto;
  font-weight: var(--bk-fw-semibold); font-size: var(--bk-fs-sm);
  transition: background var(--bk-dur-fast) var(--bk-ease);
}
.bk-pill__submit:hover { background: var(--bk-ink-hover); }

@media (max-width: 768px) {
  .bk-pill { flex-direction: column; border-radius: var(--bk-radius-lg); gap: 2px; }
  .bk-pill__sep { display: none; }
  .bk-pill__field { border-radius: var(--bk-radius-input); }
  .bk-pill__field:not(:last-of-type) { border-bottom: 1px solid var(--bk-border); border-radius: 0; }
  .bk-pill__submit { width: 100%; margin-top: 6px; min-height: 50px; }
}

/* ---- Categories (minimal single-row chips, icon beside label) ---- */
.bk-cats__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--bk-space-3);
  overflow-x: auto;
  padding-bottom: var(--bk-space-2);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bk-cats__grid::-webkit-scrollbar { display: none; }
.bk-cat {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: var(--bk-space-2);
  padding: 8px 16px;
  border-radius: var(--bk-radius-pill);
  border: 1px solid var(--bk-border);
  background: var(--bk-bg);
  white-space: nowrap;
  transition: background var(--bk-dur-fast) var(--bk-ease), border-color var(--bk-dur-fast) var(--bk-ease);
}
.bk-cat:hover { background: var(--bk-surface); border-color: var(--bk-primary); }
.bk-cat__icon {
  width: auto; height: auto; background: none; border-radius: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--bk-primary-600); font-size: 16px;
}
.bk-cat__label { font-size: var(--bk-fs-sm); font-weight: var(--bk-fw-medium); text-align: start; }

/* ---- Carousel ---- */
.bk-carousel { position: relative; }
.bk-carousel__viewport { padding-block: 4px; }
.bk-carousel__nav { position: absolute; top: 38%; z-index: 5; box-shadow: inset 0 0 0 1px var(--bk-border), var(--bk-shadow-md); background: var(--bk-bg); }
.bk-carousel__nav--prev { inset-inline-end: -8px; }
.bk-carousel__nav--next { inset-inline-start: -8px; }
.bk-carousel__nav[disabled] { opacity: 0; pointer-events: none; }
.bk-carousel__empty { color: var(--bk-text-muted); padding: var(--bk-space-8); background: var(--bk-surface); border-radius: var(--bk-radius-card); width: 100%; text-align: center; }
@media (hover: none) { .bk-carousel__nav { display: none; } }

/* ---- Venue card ---- */
.bk-venue { position: relative; border-radius: var(--bk-radius-card); transition: transform var(--bk-dur-fast) var(--bk-ease); }
.bk-venue--scroll { width: 300px; }
.bk-venue:hover { transform: translateY(-3px); }
.bk-venue__media { position: relative; border-radius: var(--bk-radius-card); overflow: hidden; aspect-ratio: 3 / 2; background: var(--bk-surface-2); }
.bk-venue__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--bk-dur-slow) var(--bk-ease); }
.bk-venue:hover .bk-venue__media img { transform: scale(1.05); }
.bk-venue__badge { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--bk-ink); color: var(--bk-on-ink); font-size: var(--bk-fs-xs); font-weight: var(--bk-fw-semibold); padding: 4px 10px; border-radius: var(--bk-radius-pill); }
/* Rating pill overlaid on the card image corner, Fresha-style (item 4). */
.bk-venue__rating-badge { position: absolute; bottom: 10px; inset-inline-start: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.95); color: var(--bk-text); font-size: var(--bk-fs-xs); font-weight: var(--bk-fw-bold); padding: 5px 10px; border-radius: var(--bk-radius-pill); box-shadow: var(--bk-shadow-sm, 0 2px 6px rgba(0,0,0,0.15)); backdrop-filter: blur(4px); }
.bk-venue__rating-badge i { color: #f5a623; font-size: 11px; }
.bk-venue__rating-badge-count { color: var(--bk-text-muted); font-weight: var(--bk-fw-medium); }
.bk-venue__fav { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 38px; height: 38px; border-radius: var(--bk-radius-circle); background: rgba(255,255,255,0.92); color: var(--bk-text); display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: transform var(--bk-dur-fast) var(--bk-ease), color var(--bk-dur-fast) var(--bk-ease); }
.bk-venue__fav:hover { transform: scale(1.1); }
.bk-venue__fav.is-active { color: var(--bk-error); }
.bk-venue__body { padding: var(--bk-space-3) 2px 0; }
.bk-venue__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bk-venue__name { font-weight: var(--bk-fw-bold); font-size: var(--bk-fs-body); min-width: 0; }
.bk-venue__rating { flex: 0 0 auto; }
.bk-venue__location { color: var(--bk-text-muted); font-size: var(--bk-fs-sm); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.bk-venue__location i { font-size: 12px; }
.bk-venue__meta { color: var(--bk-text-muted); font-size: var(--bk-fs-sm); margin-top: 2px; }
.bk-venue__meta-dot { margin-inline: 2px; color: var(--bk-border-strong); }
a.bk-venue__fav { z-index: 2; }
.bk-venue__link { position: absolute; inset: 0; border-radius: var(--bk-radius-card); }

/* ---- Download ---- */
.bk-download__card { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--bk-space-8); align-items: center; background: var(--bk-ink); color: var(--bk-on-ink); border-radius: var(--bk-radius-lg); padding: var(--bk-space-12); overflow: hidden; }
.bk-download__title { font-size: var(--bk-fs-h2); font-weight: var(--bk-fw-bold); margin-top: var(--bk-space-4); }
.bk-download__sub { color: rgba(255,255,255,0.7); margin-top: var(--bk-space-3); }
.bk-download__qr { display: flex; align-items: center; gap: var(--bk-space-5); margin-top: var(--bk-space-6); }
.bk-download__qr img { border-radius: var(--bk-radius-input); background: #fff; padding: 6px; }
.bk-download__stores { display: flex; flex-direction: column; gap: 8px; }
.bk-download__store { display: inline-flex; align-items: center; gap: 8px; font-size: var(--bk-fs-sm); color: rgba(255,255,255,0.85); }
.bk-download__visual { display: flex; justify-content: center; }
.bk-phone { width: 180px; height: 360px; background: #fff; border-radius: 28px; padding: 10px; box-shadow: var(--bk-shadow-xl); position: relative; }
.bk-phone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 56px; height: 16px; background: var(--bk-ink); border-radius: 0 0 10px 10px; }
.bk-phone__screen { height: 100%; border-radius: 20px; background: var(--bk-surface); padding: 22px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.bk-phone__bar { height: 14px; width: 60%; border-radius: 6px; background: var(--bk-surface-2); }
.bk-phone__hero { height: 90px; border-radius: 12px; background: var(--bk-primary-soft); }
.bk-phone__row { height: 38px; border-radius: 10px; background: var(--bk-surface-2); }
.bk-phone__cta { margin-top: auto; height: 38px; border-radius: var(--bk-radius-pill); background: var(--bk-primary); }
@media (max-width: 768px) { .bk-download__card { grid-template-columns: 1fr; padding: var(--bk-space-8); text-align: center; } .bk-download__qr { justify-content: center; flex-wrap: wrap; } .bk-download__visual { display: none; } }

/* ---- Reviews ---- */
/* Narrower cards so ~1.5 show on mobile; faint surface tint distinguishes the
   box from the white page; text has a tall min-height for even card heights. */
.bk-review { width: clamp(240px, 66vw, 300px); background: var(--bk-surface); border: 1px solid var(--bk-border); border-radius: var(--bk-radius-card); padding: var(--bk-space-6); display: flex; flex-direction: column; gap: var(--bk-space-3); }
.bk-review__text { color: var(--bk-text); text-align: justify; text-justify: inter-word; min-height: 9.6em; }
@media (min-width: 768px) { .bk-review { width: 300px; } }
.bk-review__author { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.bk-review__avatar { width: 44px; height: 44px; border-radius: var(--bk-radius-circle); background: var(--bk-primary-tint); color: var(--bk-primary-700); display: inline-flex; align-items: center; justify-content: center; font-weight: var(--bk-fw-bold); }
.bk-review__name { font-weight: var(--bk-fw-semibold); font-size: var(--bk-fs-sm); }
.bk-review__role { color: var(--bk-text-muted); font-size: var(--bk-fs-xs); }

/* ---- Stats ---- */
.bk-stats { margin-block: var(--bk-space-8); }
.bk-stats__card { background: var(--bk-custom-bg, var(--bk-gradient-soft)); border-radius: var(--bk-radius-lg); padding: var(--bk-space-12); }
.bk-stats__inner { text-align: center; }
.bk-stats__heading { font-size: var(--bk-fs-h2); font-weight: var(--bk-fw-bold); letter-spacing: -0.01em; }
.bk-stats__sub { color: var(--bk-text-muted); margin-top: var(--bk-space-3); }
.bk-stats__hero { margin-top: var(--bk-space-10); }
/* line-height 1 clipped the glyphs top/bottom; padding gives them room. */
.bk-stats__hero-num { font-size: clamp(48px, 9vw, 84px); font-weight: var(--bk-fw-extrabold); background: var(--bk-gradient-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; line-height: 1.18; padding-block: 0.06em; display: inline-block; }
.bk-stats__hero-label { color: var(--bk-text-muted); margin-top: var(--bk-space-2); }
.bk-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--bk-space-8); margin-top: var(--bk-space-10); }
.bk-stats__num { font-size: var(--bk-fs-h2); font-weight: var(--bk-fw-extrabold); background: var(--bk-gradient-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; line-height: 1.18; padding-block: 0.06em; display: inline-block; }
/* Highlighting gradient-clipped text (transparent fill) hides it — force a
   solid brand colour + light background on selection so it stays readable. */
.bk-stats__hero-num::selection, .bk-stats__num::selection { -webkit-text-fill-color: var(--bk-primary, #5b3df5); color: var(--bk-primary, #5b3df5); background: color-mix(in srgb, var(--bk-primary, #5b3df5) 16%, #fff); }
.bk-stats__hero-num::-moz-selection, .bk-stats__num::-moz-selection { -webkit-text-fill-color: var(--bk-primary, #5b3df5); color: var(--bk-primary, #5b3df5); background: color-mix(in srgb, var(--bk-primary, #5b3df5) 16%, #fff); }
.bk-stats__label { color: var(--bk-text-muted); margin-top: var(--bk-space-2); font-size: var(--bk-fs-sm); }
@media (max-width: 640px) { .bk-stats__grid { grid-template-columns: 1fr; gap: var(--bk-space-6); } }

/* ---- Browse by city ---- */
.bk-cities__tabs { display: flex; gap: var(--bk-space-2); border-bottom: 1px solid var(--bk-border); margin-bottom: var(--bk-space-6); padding-bottom: 0; }
.bk-cities__tab { position: relative; padding: 12px 16px; font-size: var(--bk-fs-sm); font-weight: var(--bk-fw-semibold); color: var(--bk-text-muted); white-space: nowrap; transition: color var(--bk-dur-fast) var(--bk-ease); }
.bk-cities__tab:hover { color: var(--bk-text); }
.bk-cities__tab.is-active { color: var(--bk-text); }
.bk-cities__tab.is-active::after { content: ""; position: absolute; inset-inline: 16px; bottom: -1px; height: 2px; background: var(--bk-ink); border-radius: 2px; }
.bk-cities__panel { display: none; }
.bk-cities__panel.is-active { display: block; }
.bk-cities__links { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--bk-space-3) var(--bk-space-6); }
.bk-cities__links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--bk-text-muted); font-size: var(--bk-fs-sm); padding: 6px 0; transition: color var(--bk-dur-fast) var(--bk-ease); }
.bk-cities__links a:hover { color: var(--bk-primary); }
.bk-cities__count { font-size: var(--bk-fs-xs); background: var(--bk-surface-2); border-radius: var(--bk-radius-pill); padding: 2px 8px; color: var(--bk-text-muted); }

/* ---- For business ---- */
.bk-business__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bk-space-12); align-items: center; background: var(--bk-custom-bg, var(--bk-gradient-soft)); border-radius: var(--bk-radius-lg); padding: var(--bk-space-12); }
.bk-business__title { font-size: var(--bk-fs-h2); font-weight: var(--bk-fw-bold); margin-top: var(--bk-space-4); letter-spacing: -0.01em; }
.bk-business__text { color: var(--bk-text-muted); margin-top: var(--bk-space-3); }
.bk-business__list { display: flex; flex-direction: column; gap: var(--bk-space-3); margin-block: var(--bk-space-6); }
.bk-business__list li { display: flex; align-items: center; gap: 10px; font-size: var(--bk-fs-sm); }
.bk-business__list i { color: var(--bk-success); }
.bk-business__visual { display: flex; justify-content: center; }
.bk-business__image { border-radius: var(--bk-radius-card); box-shadow: var(--bk-shadow-lg); }
/* Staff-calendar mockup */
.bk-calmock { position: relative; width: 100%; max-width: 460px; background: var(--bk-bg); border-radius: var(--bk-radius-card); box-shadow: var(--bk-shadow-xl); padding: var(--bk-space-4); }
.bk-calmock__head { display: flex; align-items: center; gap: 8px; padding-bottom: var(--bk-space-3); border-bottom: 1px solid var(--bk-border); }
.bk-calmock__head .bk-logo__word { font-size: 15px; }
.bk-calmock__pill { font-size: 10px; font-weight: var(--bk-fw-semibold); padding: 5px 10px; border-radius: var(--bk-radius-pill); box-shadow: inset 0 0 0 1px var(--bk-border); white-space: nowrap; }
.bk-calmock__pill:first-of-type { margin-inline-start: auto; }
.bk-calmock__pill--dark { background: var(--bk-ink); color: #fff; box-shadow: none; }
.bk-calmock__staff { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-block: var(--bk-space-3); }
.bk-calmock__avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: var(--bk-fw-bold); color: rgba(0,0,0,0.55); margin-inline: auto; }
.bk-calmock__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; min-height: 200px;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 39px, var(--bk-border) 39px, var(--bk-border) 40px); }
.bk-calmock__col { display: flex; flex-direction: column; }
.bk-calmock__evt { display: flex; flex-direction: column; justify-content: flex-start; gap: 1px; padding: 6px 8px; border-radius: 8px; font-size: 9px; line-height: 1.4; overflow: hidden; }
.bk-calmock__evt b { font-size: 8px; opacity: 0.75; font-weight: var(--bk-fw-semibold); }
.bk-calmock__evt.is-purple { background: #e4e0fd; color: #3c25b8; }
.bk-calmock__evt.is-pink { background: #fbdce9; color: #ad2e63; }
.bk-calmock__evt.is-green { background: #d4f1e2; color: #0d7a44; }
.bk-calmock__evt.is-amber { background: #fde9c8; color: #9a6a00; }
.bk-calmock__phone { position: absolute; bottom: -22px; inset-inline-start: -18px; width: 150px; background: var(--bk-bg); border-radius: 14px; box-shadow: var(--bk-shadow-xl); padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.bk-calmock__phone-img { height: 64px; border-radius: 9px; background: var(--bk-gradient-brand); opacity: 0.85; }
.bk-calmock__phone-name { font-size: 10px; font-weight: var(--bk-fw-bold); }
.bk-calmock__phone-meta { font-size: 9px; color: var(--bk-text-muted); }
.bk-calmock__phone-meta i { color: var(--bk-star); }
.bk-calmock__phone-open { font-size: 9px; color: var(--bk-success); display: inline-flex; align-items: center; gap: 4px; }
.bk-calmock__phone-open .bk-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bk-success); display: inline-block; box-shadow: none; }

@media (max-width: 768px) {
  .bk-business__grid { grid-template-columns: 1fr; padding: var(--bk-space-8); }
  .bk-business__visual { order: -1; padding-bottom: var(--bk-space-6); }
  .bk-calmock__phone { inset-inline-start: -6px; }
}

/* Item 6 — narrower salon cards on phones (image keeps its 3:2 ratio). */
@media (max-width: 575px) {
  .bk-venue--scroll { width: 236px; }
}

/* Item 3 — service/salon autocomplete dropdown under the search field. */
.bk-pill__suggest {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; inset-inline-end: 0;
  background: var(--bk-bg); border: 1px solid var(--bk-border); border-radius: var(--bk-radius-card);
  box-shadow: var(--bk-shadow-lg); padding: 6px; z-index: var(--bk-z-overlay); max-height: 320px; overflow-y: auto;
}
.bk-pill__suggest-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: start;
  padding: 10px 12px; border-radius: var(--bk-radius-input); font-size: var(--bk-fs-sm); color: var(--bk-text);
}
.bk-pill__suggest-item:hover { background: var(--bk-hover); }
.bk-pill__suggest-item i { color: var(--bk-text-muted); width: 16px; text-align: center; }
.bk-pill__suggest-head { font-size: var(--bk-fs-xs); font-weight: var(--bk-fw-bold); color: var(--bk-text-muted); padding: 8px 12px 4px; }
/* Mobile (item 3): keep the dropdown ABSOLUTE (out of the field's flex flow) so
   it never becomes a squished flex item beside the input — it drops BELOW the
   full-width treatment field. The field is position:relative already. */
@media (max-width: 768px) {
  .bk-pill__field--treatment { position: relative; }
  .bk-pill__suggest {
    position: absolute; top: calc(100% + 4px); inset-inline-start: 0; inset-inline-end: 0;
    left: 0; right: 0; width: auto; flex: none;
    background: var(--bk-bg); border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius-card); box-shadow: var(--bk-shadow-lg);
    margin-top: 0; max-height: 240px; z-index: 1000;
  }
}

/* Item 2 — much tighter spacing between homepage sections (scoped to .bk-home). */
.bk-home .bk-section { padding-block: var(--bk-space-6); }
.bk-home .bk-section--tight { padding-block: var(--bk-space-4); }
@media (max-width: 768px) {
  .bk-home .bk-section { padding-block: var(--bk-space-4); }
}

/* Typewriter hero title (homepage): «پلتفرمی برای [مقایسه/انتخاب/رزرو] خدمات زیبایی و مراقبتی» */
.bk-hero__title--typed { display: block; }
/* The prefix + animated word always stay together, never breaking apart
   mid-phrase while typing — on every screen size. */
.bk-hero__title-line1 { display: inline-block; white-space: nowrap; }
/* Fixed (not min-) height so the erase/re-type cycle never changes this
   line's height and shifts the title/search bar below it — different words
   have different glyph ascenders/descenders (e.g. Persian diacritics), so
   min-height alone still let the box grow and shrink back as words changed. */
.bk-hero__title-word { display: inline-flex; align-items: center; vertical-align: middle; height: 1.3em; color: var(--bk-primary); }
.bk-hero__caret { display: inline-block; width: 3px; height: 0.85em; background: var(--bk-primary); border-radius: 2px; margin-inline-start: 3px; vertical-align: -0.02em; animation: bk-hero-caret 1s steps(1) infinite; }
@keyframes bk-hero-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bk-hero__caret { animation: none; } }
/* On phones the fixed suffix always drops to its own (second) line. */
@media (max-width: 768px) { .bk-hero__title-rest { display: block; } }
/* Desktop: keep the whole typed title on ONE line, exactly like the original
   design, so it never wraps mid-typing (which made the page jump up/down). */
@media (min-width: 769px) {
  .bk-hero__head:has(.bk-hero__title--typed) { max-width: min(96vw, 1100px); }
  .bk-hero__title--typed { white-space: nowrap; }
}
