/* The header's mega menu, the phone menu's inner screens and the search. Figma has no frame for
   them: they use the site's colours, type and shapes. Scripts: js/mega.js, js/search.js. */

/* ───────────── Mega menu (≥1100) ───────────── */
.nav__link .chevron { transition: rotate .25s ease; }
.nav__link[aria-expanded="true"] { background: rgb(255 255 255 / .22); }
.nav__link[aria-expanded="true"] .chevron { rotate: 180deg; }

.mega {
  position: absolute;
  top: calc(100% + 12 * var(--ui));
  right: 0;
  left: 0;
  z-index: 2;
  color: var(--color-text-primary);
  font-family: var(--font-ui);
  font-weight: 500;
  visibility: hidden;
  opacity: 0;
  translate: 0 -10px;
  transition: opacity .2s ease, translate .25s ease, visibility 0s .2s;
}
/* the pointer's way from the bar down to the sheet */
.mega::before { content: ""; position: absolute; right: 0; bottom: 100%; left: 0; height: calc(14 * var(--ui)); }
.header.is-mega .mega { visibility: visible; opacity: 1; translate: none; transition: opacity .2s ease, translate .4s cubic-bezier(.23, 1, .32, 1); }
.mega__sheet {
  position: relative;
  overflow: hidden;
  border-radius: calc(28 * var(--ui));
  background: var(--color-bg-surface);
  box-shadow: 0 40px 90px rgb(20 18 15 / .35);
  transition: height .35s cubic-bezier(.23, 1, .32, 1);
}
/* the panel scrolls, not the sheet: a hidden taller panel must not lengthen a shorter one */
.mega__panel { position: absolute; top: 0; right: 0; left: 0; max-height: calc(100svh - 112px); overflow-y: auto; overscroll-behavior: contain; padding: calc(32 * var(--ui)); visibility: hidden; opacity: 0; transition: opacity .15s ease, visibility 0s .15s; }
.mega__panel.is-on { visibility: visible; opacity: 1; transition: opacity .25s ease .05s; }
.mega[data-dir="next"] .mega__panel.is-on { animation: mega-next .4s cubic-bezier(.23, 1, .32, 1); }
.mega[data-dir="prev"] .mega__panel.is-on { animation: mega-prev .4s cubic-bezier(.23, 1, .32, 1); }
@keyframes mega-next { from { translate: 36px 0; } }
@keyframes mega-prev { from { translate: -36px 0; } }
.mega__scrim { position: fixed; inset: 0; z-index: -1; background: rgb(20 18 15 / .45); visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility 0s .3s; }
.header.is-mega .mega__scrim { visibility: visible; opacity: 1; transition: opacity .3s ease; }
.mega :focus-visible { outline: 2px solid var(--color-bg-strong); outline-offset: 2px; }
.mega__label { font-weight: 600; font-size: calc(12 * var(--ui)); line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-secondary); }

/* catalog: every category as a square picture with its name and kinds beside it, a help card in
   the ninth place, the brands, and the rest of the catalog */
.mega__panel--catalog { display: grid; grid-template-columns: minmax(0, 1fr) calc(340 * var(--ui)); gap: calc(24 * var(--ui)) calc(32 * var(--ui)); }
.mega__cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; align-content: start; gap: calc(20 * var(--ui)); }
.mega__cat { display: flex; align-items: flex-start; gap: calc(16 * var(--ui)); min-width: 0; }
.mega__thumb { display: block; flex: none; overflow: hidden; width: calc(136 * var(--ui)); aspect-ratio: 1; border-radius: calc(18 * var(--ui)); background: #efebe2; }
/* the product stands to the right of its studio shot */
.mega__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: right center; scale: 1.18; transform-origin: 90% 65%; transition: scale .5s cubic-bezier(.23, 1, .32, 1); }
@media (hover: hover) { .mega__cat:has(.mega__thumb:hover, .mega__name:hover) img { scale: 1.27; } }
.mega__info { min-width: 0; padding-top: calc(4 * var(--ui)); }
.mega__name { font-family: var(--font-display); font-weight: 500; font-size: calc(18 * var(--ui)); line-height: 1.22; letter-spacing: -.01em; background: linear-gradient(var(--color-bg-accent), var(--color-bg-accent)) left bottom / 0 2px no-repeat; transition: background-size .3s cubic-bezier(.23, 1, .32, 1); }
.mega__name:is(:hover, :focus-visible) { background-size: 100% 2px; }
.mega__tags { display: flex; flex-direction: column; align-items: flex-start; gap: calc(2 * var(--ui)); margin-top: calc(8 * var(--ui)); }
.mega__tags a { font-size: calc(13 * var(--ui)); line-height: 1.5; color: var(--color-text-secondary); background: linear-gradient(var(--color-bg-accent), var(--color-bg-accent)) left bottom / 0 2px no-repeat; transition: color .2s ease, background-size .3s cubic-bezier(.23, 1, .32, 1); }
.mega__tags a:is(:hover, :focus-visible) { color: var(--color-text-primary); background-size: 100% 2px; }

.mega__aside { display: flex; flex-direction: column; gap: calc(10 * var(--ui)); }
.mega__brands { display: grid; flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: calc(6 * var(--ui)); }
.mega__brands button { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 100%; height: 100%; padding: calc(6 * var(--ui)) calc(14 * var(--ui)); border: 1px solid rgb(28 27 25 / .1); border-radius: calc(14 * var(--ui)); text-align: left; transition: background-color .2s ease, border-color .2s ease; }
.mega__brands strong { font-family: var(--font-display); font-weight: 500; font-size: calc(16 * var(--ui)); line-height: 1.25; }
.mega__brands span { font-size: calc(11 * var(--ui)); line-height: 1.3; color: var(--color-text-secondary); }
@media (hover: hover) { .mega__brands button:hover { border-color: var(--color-bg-strong); background: #fff; } }
.mega__promo { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: calc(6 * var(--ui)); padding: calc(14 * var(--ui)) calc(20 * var(--ui)); border-radius: calc(18 * var(--ui)); background: var(--color-bg-inverse); color: var(--color-text-inverse); }
.mega__promo-title { font-family: var(--font-display); font-weight: 500; font-size: calc(18 * var(--ui)); line-height: 1.2; letter-spacing: -.01em; }
.mega__promo-text { margin-bottom: calc(4 * var(--ui)); font-size: calc(12 * var(--ui)); line-height: 1.4; color: var(--color-text-inverse-muted); }
.mega .btn { border: 0; cursor: pointer; }
.mega__promo :focus-visible, .mega__cta :focus-visible { outline-color: var(--color-bg-accent); }

.mega__strip { display: flex; grid-column: 1 / -1; flex-wrap: wrap; align-items: center; gap: calc(12 * var(--ui)) calc(16 * var(--ui)); padding-top: calc(20 * var(--ui)); border-top: 1px solid rgb(28 27 25 / .1); }
.mega__more { display: flex; flex: 1; flex-wrap: wrap; gap: calc(6 * var(--ui)); min-width: 0; }
.mega__more a { display: block; padding: calc(8 * var(--ui)) calc(14 * var(--ui)); border: 1px solid rgb(28 27 25 / .12); border-radius: var(--radius-full); font-size: calc(13 * var(--ui)); line-height: 1.2; transition: background-color .2s ease; }
.mega__more a.is-accent { border-color: transparent; background: var(--color-bg-accent); }
@media (hover: hover) { .mega__more a:hover { background: #fff; } .mega__more a.is-accent:hover { background: var(--color-bg-accent-hover); } }
.mega__find { display: inline-flex; align-items: center; gap: calc(8 * var(--ui)); padding: calc(10 * var(--ui)) calc(12 * var(--ui)) calc(10 * var(--ui)) calc(16 * var(--ui)); border-radius: var(--radius-full); background: rgb(28 27 25 / .06); font-weight: 600; font-size: calc(13 * var(--ui)); }
.mega__find i { width: calc(16 * var(--ui)); height: calc(16 * var(--ui)); background: url("../assets/catalog/icon-search.svg") center / contain no-repeat; }
.mega__find kbd { min-width: calc(20 * var(--ui)); padding: 1px 6px; border: 1px solid rgb(28 27 25 / .18); border-radius: 5px; background: #fff; font: 600 calc(11 * var(--ui)) / 1.5 var(--font-ui); text-align: center; }
.mega__all { font-weight: 600; font-size: calc(13 * var(--ui)); border-bottom: 2px solid var(--color-bg-accent); }

/* services */
.mega__panel--services { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr) minmax(0, 1.3fr) minmax(0, .95fr); gap: calc(32 * var(--ui)); }
.mega__col { display: flex; flex-direction: column; gap: calc(12 * var(--ui)); min-width: 0; }
.mega__services { margin: 0 calc(-14 * var(--ui)); }
.mega__services a { display: flex; flex-direction: column; gap: calc(3 * var(--ui)); padding: calc(11 * var(--ui)) calc(14 * var(--ui)); border-radius: calc(16 * var(--ui)); transition: background-color .2s ease; }
.mega__services strong { font-family: var(--font-display); font-weight: 500; font-size: calc(18 * var(--ui)); line-height: 1.2; letter-spacing: -.01em; }
.mega__services span { font-size: calc(13 * var(--ui)); line-height: 1.4; color: var(--color-text-secondary); }
@media (hover: hover) { .mega__services a:hover { background: #fff; } }
.mega__services a:focus-visible { background: #fff; }
.mega__steps { margin: 0; padding: 0; list-style: none; }
.mega__steps li { border-bottom: 1px solid rgb(28 27 25 / .1); }
.mega__steps a { display: flex; align-items: center; gap: calc(12 * var(--ui)); padding: calc(14 * var(--ui)) 0; font-size: calc(14 * var(--ui)); line-height: 1.3; }
.mega__steps i { display: grid; place-items: center; flex: none; width: calc(30 * var(--ui)); height: calc(30 * var(--ui)); border-radius: 50%; background: rgb(28 27 25 / .06); font-style: normal; font-weight: 600; font-size: calc(11 * var(--ui)); transition: background-color .2s ease; }
.mega__steps a:is(:hover, :focus-visible) i { background: var(--color-bg-accent); }
.mega__who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(12 * var(--ui)); }
.mega__who a { display: flex; flex-direction: column; gap: calc(4 * var(--ui)); border-radius: calc(18 * var(--ui)); }
.mega__who img { width: 100%; height: auto; aspect-ratio: 4 / 3.4; margin-bottom: calc(6 * var(--ui)); border-radius: calc(18 * var(--ui)); object-fit: cover; }
.mega__who strong { font-family: var(--font-display); font-weight: 500; font-size: calc(18 * var(--ui)); line-height: 1.2; }
.mega__who span { font-size: calc(12 * var(--ui)); color: var(--color-text-secondary); }
.mega__who li:last-child { grid-column: 1 / -1; }
.mega__who a.mega__who--dealers { padding: calc(16 * var(--ui)) calc(20 * var(--ui)); background: var(--color-bg-strong); color: var(--color-text-inverse); }
.mega__who--dealers span { color: var(--color-text-inverse-muted); }
.mega__cta { display: flex; flex-direction: column; align-items: flex-start; gap: calc(14 * var(--ui)); padding: calc(24 * var(--ui)); border-radius: calc(22 * var(--ui)); background: var(--color-bg-inverse); color: var(--color-text-inverse); }
.mega__cta-title { font-family: var(--font-display); font-weight: 500; font-size: calc(24 * var(--ui)); line-height: 1.12; letter-spacing: -.02em; }
.mega__cta-link { font-size: calc(13 * var(--ui)); border-bottom: 2px solid var(--color-bg-accent); }
.mega__cta-phone { margin-top: auto; font-family: var(--font-display); font-weight: 500; font-size: calc(24 * var(--ui)); line-height: 1.2; color: var(--color-bg-accent); white-space: nowrap; }
.mega__cta-hours { margin-top: calc(-10 * var(--ui)); font-size: calc(12 * var(--ui)); color: var(--color-text-inverse-subtle); }
@media (max-width: 1399px) {
  .mega__panel--catalog { grid-template-columns: minmax(0, 1fr) calc(280 * var(--ui)); }
  .mega__cat { gap: calc(12 * var(--ui)); }
  .mega__thumb { width: calc(104 * var(--ui)); }
  .mega__panel--services { gap: calc(24 * var(--ui)); }
}
@media (max-width: 1099px) { .mega, .mega__scrim { display: none; } }

/* room above the cards a menu jumps to: they rise by 48px as they appear */
.solutions .solution, .solutions .dealers { scroll-margin-top: 96px; }

/* where a menu or the search sends you in the catalog */
.tile.is-flash { animation: tile-flash 2.4s ease; }
@keyframes tile-flash { 0%, 100% { box-shadow: 0 0 0 0 rgb(244 217 78 / 0); } 12%, 72% { box-shadow: 0 0 0 5px var(--color-bg-accent); } }

/* ───────────── Phone and tablet menu: search field and inner screens ───────────── */
.menu__tools { display: flex; flex: none; gap: 8px; }
.menu__search { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; height: 52px; padding: 0 18px; border: 1px solid rgb(251 247 239 / .15); border-radius: var(--radius-full); background: rgb(251 247 239 / .06); font-size: 16px; color: var(--color-text-inverse-muted); text-align: left; }
.menu__search i { flex: none; width: 18px; height: 18px; background: url("../assets/hero/icon-search.svg") center / 15px 15px no-repeat; }
/* the language switch beside the menu's search: the same two pills as the footer's, as tall as the field */
.menu__lang { display: flex; flex: none; gap: 2px; height: 52px; padding: 4px; border: 1px solid rgb(251 247 239 / .15); border-radius: var(--radius-full); background: rgb(251 247 239 / .06); }
.menu__lang a { display: grid; place-items: center; width: 42px; border-radius: var(--radius-full); font: 500 13px / 1 var(--font-ui); color: var(--color-text-inverse-muted); }
.menu__lang a[aria-current] { background: var(--color-bg-accent); color: var(--color-text-primary); }
.menu__search { white-space: nowrap; }
@media (max-width: 359px) { .menu__search { gap: 8px; padding: 0 14px; font-size: 14px; } }
.menu.has-sub { overflow: hidden; }
.menu__sub { position: fixed; inset: 0; z-index: 2; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px calc(32px + env(safe-area-inset-bottom)); background: var(--color-bg-strong); visibility: hidden; translate: 100% 0; transition: translate .35s cubic-bezier(.32, .72, 0, 1), visibility 0s .35s; }
.menu__sub.is-on { visibility: visible; translate: none; transition: translate .45s cubic-bezier(.32, .72, 0, 1); }
.menu__subhead { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 20px 0 16px; background: var(--color-bg-strong); }
.menu__subtitle { flex: 1; font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.menu__back { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(251 247 239 / .15); border-radius: 50%; }
.menu__back i { width: 20px; height: 20px; background: url("../assets/mobile/arrow.svg") center / 10.13px 10.13px no-repeat; rotate: -135deg; }
.menu__cats a { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid rgb(251 247 239 / .12); }
.menu__cats i { flex: none; overflow: hidden; width: 72px; height: 60px; border-radius: 14px; background: #efebe2; }
.menu__cats img { width: 100%; height: 100%; object-fit: cover; object-position: right center; scale: 1.25; transform-origin: 100% 62%; }
.menu__cats span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.menu__cats strong { font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.2; }
.menu__cats small { font-size: 12px; line-height: 1.4; color: var(--color-text-inverse-subtle); }
.menu__label { margin: 24px 0 12px; font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-inverse-subtle); }
.menu__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.menu__chips :is(a, button) { display: block; padding: 10px 14px; border: 1px solid rgb(251 247 239 / .18); border-radius: var(--radius-full); font-size: 13px; line-height: 1.2; }
.menu__chips a.is-accent { border-color: transparent; background: var(--color-bg-accent); color: var(--color-text-primary); }
.menu__services a { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid rgb(251 247 239 / .12); }
.menu__services strong { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.2; }
.menu__services span { font-size: 13px; line-height: 1.4; color: var(--color-text-inverse-subtle); }
.menu__steps { margin: 0; padding: 0; list-style: none; }
.menu__steps a { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid rgb(251 247 239 / .12); font-size: 15px; }
.menu__steps i { font-style: normal; font-weight: 600; font-size: 12px; color: var(--color-bg-accent); }
.menu__who a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid rgb(251 247 239 / .12); }
.menu__who strong { font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.menu__who span { font-size: 12px; color: var(--color-text-inverse-subtle); text-align: right; }
.menu__all { width: 100%; margin-top: 24px; padding: 19px 24px 17px; font-size: 16px; line-height: 20px; }
@media (prefers-reduced-motion: reduce) { .mega, .mega__panel, .mega__sheet, .menu__sub { transition: none !important; animation: none !important; } }

/* ───────────── The «brow» and the header it brings down ─────────────
   A dark tab hanging from the top edge, with the hollow shoulders of the hero's notch. The bar sits
   just above the screen with the tab below it; opening slides both down. `top` is animated, not
   `translate`, so the mega menu's dimming layer can still cover the whole screen. */
.topbar { position: fixed; z-index: 60; top: calc(-1 * var(--bar, 0px)); right: 0; left: 0; pointer-events: none; transition: top .5s cubic-bezier(.32, .72, 0, 1); }
.topbar.is-open { top: 0; }
.topbar__dock { position: relative; visibility: hidden; background: var(--color-bg-strong); pointer-events: auto; transition: visibility 0s .5s, box-shadow .5s ease; }
.topbar.is-open .topbar__dock { visibility: visible; box-shadow: 0 16px 40px rgb(20 18 15 / .28); transition: visibility 0s, box-shadow .45s ease; }
.topbar__dock:empty { display: none; }
/* the header, out of the hero: in the flow of the bar. The story may have hidden it up there. */
.topbar .header { position: relative; top: auto; right: auto; left: auto; margin: 0; padding: calc(14 * var(--u)) calc(64 * var(--u)); visibility: visible !important; }
.topbar .header .mega { top: 100%; right: calc(64 * var(--u)); left: calc(64 * var(--u)); }
.topbar .header .actions .btn { background: var(--color-bg-accent); color: var(--color-text-primary); } /* dark on dark otherwise */
@media (max-width: 1099px) { .topbar .header { padding: 12px 20px; } }
@media (min-width: 600px) and (max-width: 1099px) { .topbar .header { padding-inline: 40px; } }

/* One dark shape with its two «shoulders»; its width glides, so no seams can open between parts.
   The buttons lie on it, cut to its outline (.brow-pill__in). Widths come from js/topbar.js. */
.brow-pill {
  --glide: .5s cubic-bezier(.32, .72, 0, 1);
  position: absolute;
  /* 2px up into the header: two layers that only touch let a hair of the page through in Safari
     while they move */
  top: calc(100% - 2px);
  /* centred by its margins, not by a percentage shift, so it stays dead centre while the width moves */
  right: 0;
  left: 0;
  display: none;
  width: var(--pill-w, 106px);
  margin-inline: auto;
  height: 36px;
  border-radius: 0 0 18px 18px;
  background: var(--color-bg-strong);
  color: var(--color-text-inverse);
  visibility: hidden;
  translate: 0 -100%;
  pointer-events: auto;
  transition: translate .35s cubic-bezier(.23, 1, .32, 1), width var(--glide), height .2s ease, opacity .2s ease, visibility 0s .35s;
}
.topbar.is-ready .brow-pill { display: block; }
.topbar.is-shown .brow-pill { visibility: visible; translate: 0 0; transition: translate .4s cubic-bezier(.23, 1, .32, 1), width var(--glide), height .2s ease, opacity .2s ease; }
/* the shoulders are vector shapes in --color-bg-strong, tucked 1px under the tab: gradients drawn
   there left a grey fringe on the curves and hairline seams where the pieces met */
.brow-pill::before, .brow-pill::after { content: ""; position: absolute; top: 0; width: 15px; height: 16px; }
.brow-pill::before { right: calc(100% - 1px); background: linear-gradient(var(--color-bg-strong), var(--color-bg-strong)) top / 100% 2px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 14' preserveAspectRatio='none'%3E%3Cpath fill='%231c1b19' d='M0 0H15V14H14C14 6.27 7.73 0 0 0Z'/%3E%3C/svg%3E") bottom / 100% 14px no-repeat; }
.brow-pill::after { left: calc(100% - 1px); background: linear-gradient(var(--color-bg-strong), var(--color-bg-strong)) top / 100% 2px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 14' preserveAspectRatio='none'%3E%3Cpath fill='%231c1b19' d='M15 0H0V14H1C1 6.27 7.27 0 15 0Z'/%3E%3C/svg%3E") bottom / 100% 14px no-repeat; }
.brow-pill__in { position: absolute; inset: 2px 0 0; overflow: hidden; border-radius: inherit; }
.brow {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: var(--menu-w, 106px);
  height: 100%;
  padding: 0 20px 2px;
  font: 600 13px / 1 var(--font-ui);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* iOS paints a grey box over the tab otherwise */
  transition: width var(--glide);
}
.brow:focus-visible { outline: 2px solid var(--color-bg-accent); outline-offset: -4px; border-radius: 999px; }
/* «Меню» rolls up and out, «Сховати» rolls in from below */
/* clipped above and below only: while the width is still growing the longer word must not be cut */
.brow__words { display: grid; flex: none; width: var(--word-w, auto); overflow-x: visible; overflow-y: clip; line-height: 1.5; transition: width var(--glide); }
.brow__words > span { grid-area: 1 / 1; justify-self: start; transition: translate var(--glide), opacity .16s ease; } /* the old word goes quickly… */
.brow__words > span + span { opacity: 0; translate: 0 100%; }
.topbar:not(.is-open) .brow__words > span:first-child, .topbar.is-open .brow__words > span + span { transition: translate var(--glide), opacity .34s ease .1s; } /* …the new one follows */
.topbar.is-open .brow__words > span:first-child { opacity: 0; translate: 0 -100%; }
.topbar.is-open .brow__words > span + span { opacity: 1; translate: 0 0; }
/* two lines of the burger fold into the chevron */
.brow i { position: relative; flex: none; width: 18px; height: 12px; }
.brow i::before, .brow i::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.8px; border-radius: 2px; background: currentColor; transition: width var(--glide), top var(--glide), transform var(--glide); }
.brow i::before { top: 2.1px; }
.brow i::after { top: 8.1px; }
.topbar.is-open .brow i::before { top: 5.1px; width: 9px; transform: translateX(1.4px) rotate(-40deg); }
.topbar.is-open .brow i::after { top: 5.1px; width: 9px; transform: translateX(7.6px) rotate(40deg); }
@media (hover: hover) { .brow-pill:hover { height: 41px; } }
.topbar:has(.header.is-mega) .brow-pill { opacity: 0; pointer-events: none; }
html.topbar-open { scroll-padding-top: 88px; }
@media (max-width: 767px) {
  /* a tall tab on phones, easy to hit with a thumb (the user asked for it bigger) */
  .brow-pill { height: 46px; border-radius: 0 0 20px 20px; } /* 44 below the header, plus the overlap */
  .brow { padding: 0 17px 2px; font-size: 15px; }
  /* full-screen scenes keep their top lines clear of the tab */
  .process--phone.process--sticky .process__scene { padding-top: max(54px, 6svh); }
  .scene__content > .solution__tag { top: 56px; }
  .scene__content > .solution__stat { top: 114px; }
  .project__bar { top: max(56px, calc(56 * var(--mk))); }
}
@media (prefers-reduced-motion: reduce) { .topbar, .topbar__dock, .brow-pill, .brow-pill *, .brow i::before, .brow i::after { transition: none !important; } }

/* ───────────── Search ───────────── */
.sx {
  width: min(1100px, calc(100vw - 48px));
  max-width: none;
  height: min(780px, calc(100dvh - 48px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  font-family: var(--font-ui);
  font-weight: 500;
  box-shadow: 0 40px 100px rgb(20 18 15 / .45);
}
.sx[open] { display: flex; flex-direction: column; animation: sx-in .3s cubic-bezier(.23, 1, .32, 1); }
@keyframes sx-in { from { opacity: 0; translate: 0 16px; scale: .985; } }
.sx::backdrop { background: rgb(20 18 15 / .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html:has(.sx[open]) { overflow: hidden; }
.sx :focus-visible { outline: 2px solid var(--color-bg-strong); outline-offset: 2px; }
.sx [hidden] { display: none !important; }
.sx h3, .sx dl, .sx dd, .sx fieldset { margin: 0; padding: 0; }
.sx fieldset { min-width: 0; border: 0; }
.sx button { cursor: pointer; }

.sx__top { display: flex; align-items: center; gap: 12px; padding: 20px 20px 12px; }
.sx__field { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; height: 60px; padding: 0 12px 0 22px; border: 1.5px solid transparent; border-radius: var(--radius-full); background: var(--color-bg-page); transition: border-color .2s ease, background-color .2s ease; }
.sx__field:focus-within { border-color: var(--color-bg-strong); background: #fff; }
.sx__field > i { flex: none; width: 20px; height: 20px; background: url("../assets/catalog/icon-search.svg") center / contain no-repeat; }
.sx__field input { flex: 1; min-width: 0; padding: 0; border: 0; background: none; font: 500 18px / 1.4 var(--font-ui); color: inherit; outline: 0 !important; }
.sx__field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sx__clear { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: rgb(28 27 25 / .06); }
.sx__clear::before, .sx__clear::after { content: ""; position: absolute; top: 17px; left: 12px; width: 12px; height: 1.8px; border-radius: 2px; background: var(--color-bg-strong); rotate: 45deg; }
.sx__clear::after { rotate: -45deg; }
.sx__close { flex: none; height: 44px; padding: 0 18px; border: 1px solid rgb(28 27 25 / .14); border-radius: var(--radius-full); font-weight: 600; font-size: 13px; }

.sx__bar { display: flex; align-items: center; gap: 10px; padding: 0 20px 14px; }
.sx__scopes { display: flex; flex: 1; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.sx__scopes::-webkit-scrollbar { display: none; }
.sx__scopes button { flex: none; height: 36px; padding: 0 14px; border: 1px solid rgb(28 27 25 / .12); border-radius: var(--radius-full); font-weight: 600; font-size: 13px; transition: background-color .15s ease, color .15s ease, opacity .15s ease; }
.sx__scopes button span { margin-left: 3px; font-weight: 500; opacity: .55; }
.sx__scopes button[aria-pressed="true"] { border-color: var(--color-bg-strong); background: var(--color-bg-strong); color: var(--color-text-inverse); }
.sx__scopes button.is-empty { opacity: .42; }
.sx__toggle { display: inline-flex; flex: none; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius-full); background: rgb(28 27 25 / .06); font-weight: 600; font-size: 13px; transition: background-color .15s ease; }
.sx__toggle[aria-expanded="true"] { background: var(--color-bg-accent); }
.sx__toggle b { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-full); background: var(--color-bg-strong); color: var(--color-text-inverse); font-size: 11px; }
.sx__toggle b:empty { display: none; }

.sx__filters { display: flex; flex: none; flex-direction: column; gap: 12px; max-height: 38%; overflow-y: auto; padding: 14px 20px 16px; border-top: 1px solid rgb(28 27 25 / .1); background: #fff; }
.sx__filters legend, .sx__label { margin-bottom: 8px; padding: 0; font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-secondary); }
.sx__filters > .sx__reset { align-self: flex-start; font-weight: 600; font-size: 13px; border-bottom: 2px solid var(--color-bg-accent); }
.sx__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sx__chip { min-height: 34px; padding: 7px 14px; border: 1px solid rgb(28 27 25 / .14); border-radius: var(--radius-full); font-size: 13px; line-height: 1.3; text-align: left; transition: background-color .15s ease, color .15s ease; }
.sx__chip[aria-pressed="true"] { border-color: var(--color-bg-strong); background: var(--color-bg-strong); color: var(--color-text-inverse); }
.sx__chip--accent { border-color: transparent; background: var(--color-bg-accent); }
@media (hover: hover) { .sx__chip:not([aria-pressed="true"], .sx__chip--accent):hover { background: #fff; border-color: var(--color-bg-strong); } }

.sx__main { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) 390px; grid-template-rows: minmax(0, 1fr); min-height: 0; border-top: 1px solid rgb(28 27 25 / .1); }
.sx__list, .sx__home, .sx__preview { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.sx__list { padding: 4px 12px 20px; }
.sx__home { display: none; grid-column: 1 / -1; padding: 20px 24px 28px; }
.sx.is-home .sx__home { display: flex; flex-direction: column; gap: 22px; }
.sx.is-home .sx__list, .sx.is-home .sx__preview, .sx.is-none .sx__preview { display: none; }
.sx.is-none:not(.is-home) .sx__list { grid-column: 1 / -1; }
.sx__label { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 10px; }
.sx__forget { font-size: 12px; letter-spacing: 0; text-transform: none; text-decoration: underline; color: var(--color-text-secondary); }
.sx__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sx__tiles button { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; }
.sx__tiles img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; object-fit: cover; object-position: 100% 60%; background: #efebe2; transition: scale .3s cubic-bezier(.23, 1, .32, 1); }
.sx__tiles span { font-weight: 600; font-size: 13px; line-height: 1.3; }
@media (hover: hover) { .sx__tiles button:hover img { scale: 1.03; } }

.sx__group { padding: 14px 12px 6px; font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-secondary); }
.sx__group span { margin-left: 4px; opacity: .6; }
.sx__item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px 12px; border-radius: 16px; text-align: left; }
.sx__item[aria-selected="true"] { background: #fff; box-shadow: 0 6px 22px rgb(38 26 13 / .08), inset 3px 0 0 var(--color-bg-accent); }
.sx__thumb, .sx__mono, .sx__badge { display: grid; place-items: center; flex: none; width: 56px; height: 48px; overflow: hidden; border-radius: 12px; background-color: var(--color-bg-page); }
.sx__thumb img { width: 100%; height: 100%; object-fit: cover; }
/* the product stands to the right of its studio shot: come closer to it */
.sx__thumb--category img, .sx__thumb--sub img { scale: 1.35; transform-origin: 100% 62%; }
.sx__mono { background: var(--color-bg-strong); color: var(--color-bg-accent); font-family: var(--font-display); font-weight: 500; font-size: 17px; }
.sx__badge { background-position: center; background-repeat: no-repeat; background-size: 22px 22px; }
.sx__badge--grid { background-image: url("../assets/menu/grid.svg"); }
.sx__badge--tool { background-image: url("../assets/menu/tool.svg"); }
.sx__badge--people { background-image: url("../assets/menu/people.svg"); }
.sx__badge--question { background-image: url("../assets/menu/question.svg"); }
.sx__badge--phone { background-image: url("../assets/menu/phone.svg"); }
.sx__badge--arrow { background-color: var(--color-bg-accent); background-image: url("../assets/start/arrow-dark.svg"); background-size: 11px 11px; }
.sx__text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.sx__text strong { overflow: hidden; font-weight: 600; font-size: 15px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.sx__text small { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.4; color: var(--color-text-secondary); -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.sx__item--faq .sx__text strong { white-space: normal; }
.sx__item--faq .sx__text small { -webkit-line-clamp: 2; }
.sx mark { border-radius: 3px; background: rgb(244 217 78 / .65); color: inherit; }
.sx__go { flex: none; width: 28px; height: 28px; border-radius: 50%; background: url("../assets/start/arrow-dark.svg") center / 9px 9px no-repeat var(--color-bg-accent); opacity: 0; }
.sx__item[aria-selected="true"] .sx__go { opacity: 1; }
.sx__item--more { justify-content: center; min-height: 40px; font-weight: 600; font-size: 13px; color: var(--color-text-secondary); }
.sx__fixed { padding: 12px 12px 0; font-size: 13px; color: var(--color-text-secondary); }
.sx__none { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 620px; padding: 28px 12px; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }
.sx__none-title { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; color: var(--color-text-primary); }
.sx__none .sx__chip { color: var(--color-text-primary); }

.sx__preview { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; border-left: 1px solid rgb(28 27 25 / .1); background: #fff; }
.sx__preview > * { flex: none; max-width: 100%; }
.sx__photo { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 18px; object-fit: cover; object-position: 100% 60%; background: #efebe2; }
.sx__mono--big { width: 88px; height: 76px; border-radius: 18px; font-size: 28px; }
.sx__kicker { font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-secondary); }
.sx__title { margin-top: -8px !important; font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.12; letter-spacing: -.02em; }
.sx__about { font-size: 14px; line-height: 1.55; color: var(--color-text-secondary); }
.sx__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-self: stretch; }
.sx__stats div { display: flex; flex-direction: column-reverse; gap: 2px; padding-top: 10px; border-top: 1px solid rgb(28 27 25 / .12); }
.sx__stats dt { font-size: 12px; color: var(--color-text-secondary); }
.sx__stats dd { font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.sx__points { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; font-size: 13px; line-height: 1.4; list-style: none; }
.sx__points li { position: relative; padding-left: 18px; }
.sx__points li::before { content: ""; position: absolute; top: 6px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--color-bg-accent); }
.sx__phone { font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1.2; letter-spacing: -.02em; }
.sx__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.sx__preview .sx__acts { align-self: stretch; margin-top: auto; padding-top: 6px; }
.sx__button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius-full); font-weight: 600; font-size: 14px; line-height: 1.3; transition: background-color .15s ease; }
.sx__button--primary { background: var(--color-bg-accent); color: var(--color-text-primary); }
.sx__button--ghost { border-color: rgb(28 27 25 / .18); }
@media (hover: hover) { .sx__button--primary:hover { background: var(--color-bg-accent-hover); } .sx__button--ghost:hover { border-color: var(--color-bg-strong); } }

.sx__foot { display: flex; align-items: center; gap: 18px; margin: 0; padding: 12px 20px; border-top: 1px solid rgb(28 27 25 / .1); font-size: 12px; color: var(--color-text-secondary); }
.sx__foot kbd { display: inline-block; min-width: 20px; margin-right: 4px; padding: 1px 6px; border: 1px solid rgb(28 27 25 / .18); border-radius: 5px; background: #fff; font: 600 11px / 1.6 var(--font-ui); text-align: center; }
.sx__foot a { margin-left: auto; font-weight: 600; color: var(--color-text-primary); }
.sx__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 899px) {
  .sx__main { grid-template-columns: minmax(0, 1fr); }
  .sx__preview { display: none; }
}
@media (max-width: 599px) {
  .sx__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sx { width: 100%; height: 100dvh; margin: 0; border-radius: 0; }
  .sx__top { gap: 8px; padding: max(12px, env(safe-area-inset-top)) 12px 10px; }
  .sx__field { gap: 10px; height: 52px; padding: 0 8px 0 16px; }
  .sx__field input { font-size: 16px; } /* under 16px iOS zooms into the field */
  .sx__close { padding: 0 12px; }
  .sx__bar { padding: 0 12px 10px; }
  .sx__scopes button, .sx__toggle { height: 38px; }
  .sx__filters { max-height: 45%; padding: 12px; }
  .sx__list { padding: 4px 4px calc(24px + env(safe-area-inset-bottom)); }
  .sx__home { padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); }
  .sx__go { opacity: 1; background-color: rgb(28 27 25 / .06); }
  .sx__item[aria-selected="true"] { box-shadow: none; background: none; }
  .sx__item:active { background: #fff; }
  .sx__foot { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sx[open], .tile.is-flash { animation: none; } .tile.is-flash { box-shadow: 0 0 0 5px var(--color-bg-accent); } }
