/* NXAI demo hub — the umbrella page for every branch catalog.
   N-Enterprise brand (24 Oct 2026): navy for trust, gold for actions; the --blue names are kept, the values are navy. Manrope + Onest + JetBrains Mono. */

:root {
  --bg: #F7F3EA;
  --bg-sunk: #EFE9DC;
  --paper: #FFFFFF;
  --ink: #0B1220;
  --ink-2: #3E4A5F;
  --ink-3: #5F6B80;
  --line: #E6E0D3;
  --line-2: #D5CCBA;
  --grid: rgba(19, 35, 63, .06);

  --blue: #13233F;
  --blue-hover: #22365C;
  --blue-deep: #0C182D;
  --blue-ink: #13233F;
  --blue-soft: #EDF0F5;

  --gold: #C9A24D;
  --gold-hover: #B48D3A;
  --gold-ink: #13233F;
  --gold-soft: #F6EEDC;
  --gold-text: #8C6A1E;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --sh-1: 0 1px 2px rgba(11, 18, 32, .05), 0 10px 28px -16px rgba(11, 18, 32, .18);
  --sh-2: 0 2px 6px rgba(11, 18, 32, .05), 0 34px 64px -30px rgba(19, 35, 63, .32);
  --sh-win: 0 1px 2px rgba(11, 18, 32, .08), 0 22px 44px -22px rgba(11, 18, 32, .42);

  --f-display: "Manrope", "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: 16px;
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--blue-soft); color: var(--blue-deep); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px;
  border: 1px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 16px/1.2 var(--f-body); letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease), box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--gold-ink); --btn-bd: var(--gold); box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 8px 20px -10px rgba(140, 106, 30, .55); }
.btn--gold:hover { --btn-bg: var(--gold-hover); --btn-bd: var(--gold-hover); }
.btn--ghost { --btn-bg: rgba(255, 255, 255, .7); --btn-bd: var(--line-2); }
.btn--ghost:hover, .btn--line:hover { --btn-bd: var(--blue); --btn-fg: var(--blue-ink); }
.btn--line { --btn-bg: var(--paper); }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 15px; gap: 8px; }
.btn--sm .ico { width: 18px; height: 18px; }
.btn--lg { min-height: 56px; padding: 14px 26px; font-size: 17px; }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(2px); }
.btn[href="#branches"]:hover .ico { transform: translateY(2px); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-ink);
}
.kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

/* ---------- N-Enterprise bar: visible link to the studio's main site ---------- */
.studio-bar { background: var(--ink); color: rgba(255, 255, 255, .8); font: 500 12.5px/1.25 var(--f-body); }
.studio-bar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; min-height: 34px; padding-block: 3px; }
.studio-bar__link { display: inline-flex; align-items: center; min-height: 28px; color: #fff; font-weight: 700; letter-spacing: .01em; text-decoration: none; }
.studio-bar__link::after { content: "\2197"; margin-left: 5px; font-weight: 500; opacity: .8; }
.studio-bar__link:hover, .studio-bar__link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.studio-bar__note { opacity: .74; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 234, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.top.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .88); box-shadow: 0 6px 24px -20px rgba(11, 18, 32, .4); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); border-radius: 8px; }
/* the master logo from n-enterprise-site/brand/logo, inlined as is: never redraw it */
.brand__logo { display: block; width: 140px; height: 21px; flex: none; }
.brand__note { display: none; white-space: nowrap; padding-left: 10px; border-left: 1px solid var(--line-2); font: 500 11px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.top__nav { display: none; }

/* ---------- stage: grid + spotlight behind hero and cards ---------- */
.stage { position: relative; isolation: isolate; }
.stage::before {
  content: ""; position: absolute; inset: -64px 0 auto; height: 1100px; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 18%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 18%, #000 30%, transparent 78%);
}
.stage::after {
  content: ""; position: absolute; inset: -64px 0 auto; height: 1100px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px circle at var(--mx, 78%) var(--my, 140px), rgba(19, 35, 63, .10), transparent 62%),
    radial-gradient(420px circle at 8% 4%, rgba(201, 162, 77, .12), transparent 65%);
  transition: background-position .2s;
}

/* ---------- hero ---------- */
.hero { padding: 36px 0 40px; }
.hero__grid { display: grid; gap: 20px; }
.hero__kicker { padding: 7px 12px 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .75); justify-self: start; }
.hero__title {
  font: 800 clamp(2.05rem, 1.05rem + 4.3vw, 4.6rem)/1.04 var(--f-display);
  letter-spacing: -.035em;
  text-wrap: balance;
  max-width: 17ch;
}
.hero__soft { color: var(--ink-3); }
.hero__soft em {
  position: relative; font-style: normal; color: var(--blue);
  white-space: nowrap;
}
.hero__soft em::after {
  content: ""; position: absolute; left: .02em; right: .02em; bottom: .02em; height: .1em;
  border-radius: 99px; background: var(--gold);
  transform-origin: left center;
}
.ml-ready .hero__title:not(.is-in) em::after { transform: scaleX(0); }
.ml-ready .hero__title em::after { transition: transform .9s .55s var(--ease); }
.hero__lead { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__actions .btn { flex: 1 1 auto; }

.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: var(--sh-1);
}
.fact { padding: 14px 12px; min-width: 0; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact__v { font: 800 clamp(1.15rem, .8rem + 1.6vw, 2.1rem)/1.1 var(--f-display); letter-spacing: -.03em; white-space: nowrap; color: var(--ink); }
.fact__v small { font-size: .6em; font-weight: 700; letter-spacing: 0; color: var(--ink-3); }
.fact__l { margin-top: 4px; font-size: 13px; line-height: 1.3; color: var(--ink-3); }

/* ---------- section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 20px; }
.section-head__title { font: 800 clamp(1.6rem, 1.15rem + 1.9vw, 2.6rem)/1.1 var(--f-display); letter-spacing: -.03em; }
.section-head__note { font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- branches ---------- */
.branches { padding: 8px 0 56px; }
.branches__grid { display: grid; gap: 16px; }

.branch {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--sh-1);
  padding: 8px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.branch__media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: var(--bg-sunk);
  isolation: isolate;
}
.branch--beauty .branch__media { background: radial-gradient(120% 90% at 85% 0%, #F7E4DE 0%, transparent 60%), linear-gradient(160deg, #FBF3F0 0%, #F1E5E1 100%); }
.branch--atelier .branch__media { background: radial-gradient(120% 90% at 85% 0%, #E9E1F1 0%, transparent 55%), linear-gradient(160deg, #F7F2E8 0%, #ECE4D5 100%); }
.branch--accounting .branch__media { background: radial-gradient(120% 90% at 85% 0%, #DCEFE6 0%, transparent 58%), linear-gradient(160deg, #F4F8F6 0%, #E2ECE7 100%); }
.branch--dental .branch__media { background: radial-gradient(120% 90% at 85% 0%, #DDEEF0 0%, transparent 58%), linear-gradient(160deg, #F4F9F9 0%, #E2ECEE 100%); }
.branch--lawyer .branch__media { background: radial-gradient(120% 90% at 85% 0%, #DDE6F4 0%, transparent 58%), linear-gradient(160deg, #F4F6F9 0%, #E3E8EF 100%); }

/* browser windows */
.window {
  position: absolute;
  border-radius: 10px; overflow: hidden;
  background: var(--paper);
  box-shadow: var(--sh-win);
  transition: transform .7s var(--ease);
}
.window__bar {
  display: flex; align-items: center; gap: 10px;
  height: 24px; padding: 0 10px;
  background: #FBFCFE; border-bottom: 1px solid var(--line);
}
.window__dots { display: inline-flex; gap: 5px; flex: none; }
.window__dots i { width: 7px; height: 7px; border-radius: 50%; background: #D5DBE5; }
.window__dots i:first-child { background: #F2A7A0; }
.window__dots i:nth-child(2) { background: #F3D08A; }
.window__dots i:last-child { background: #A9DDB4; }
.window__url {
  flex: 1; min-width: 0; max-width: 260px; margin: 0 auto; padding: 2px 10px;
  border-radius: 6px; background: var(--bg-sunk);
  font: 500 10px/1.5 var(--f-mono); color: var(--ink-3); letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.window__view { position: relative; overflow: hidden; aspect-ratio: 1440 / 780; background: var(--bg-sunk); }
.window__view img { position: absolute; left: 0; top: 0; width: 100%; height: auto; will-change: transform; }

.window--front { left: 6%; width: 82%; top: 17%; z-index: 2; }
.window--back { right: 4%; width: 62%; top: 6%; z-index: 1; opacity: .96; }
.window--back .window__view { aspect-ratio: 1440 / 900; }

.branch__body { display: flex; flex-direction: column; flex: 1; padding: 18px 12px 10px; }
.branch__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip {
  display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px;
  border-radius: 999px; border: 1px solid var(--line);
  font: 500 11.5px/1.2 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3);
}
.chip--blue { border-color: transparent; background: var(--blue-soft); color: var(--blue-ink); }
.chip--soon { border-color: transparent; background: var(--gold-soft); color: var(--gold-text); }
.chip--gold { border-color: transparent; background: var(--gold); color: var(--gold-ink); }

.branch__title { font: 800 clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem)/1.1 var(--f-display); letter-spacing: -.03em; }
.branch__link { text-decoration: none; color: inherit; }
.branch__link::after { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: var(--r-xl); }
.branch__link:focus-visible { outline: none; }
.branch__link:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 4px; }
.branch__desc { margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.5; text-wrap: pretty; }

.branch__features { display: grid; gap: 9px; margin-top: 16px; }
.branch__features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.4; color: var(--ink); }
.branch__features .ico {
  width: 22px; height: 22px; padding: 4px; margin-top: -1px;
  border-radius: 50%; background: var(--blue-soft); color: var(--blue); stroke-width: 2.4;
}

.branch__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  margin-top: auto; padding-top: 20px;
}
.branch--live .branch__features { margin-bottom: 4px; }
.branch__price { display: flex; flex-direction: column; gap: 2px; }
.branch__price-l { font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.branch__price-v { font: 800 22px/1.15 var(--f-display); letter-spacing: -.02em; white-space: nowrap; }
.branch__cta {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 18px 12px 20px; border-radius: 999px;
  background: var(--gold); color: var(--gold-ink);
  font: 600 16px/1.2 var(--f-body); white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 8px 20px -10px rgba(140, 106, 30, .55);
  transition: background-color .2s;
}
.branch__cta .ico { transition: transform .35s var(--ease); }

/* hover / focus for live branches */
.branch--live:hover, .branch--live:focus-within { border-color: #D5CCBA; box-shadow: var(--sh-2); }
.branch--live:hover .branch__cta, .branch--live:focus-within .branch__cta { background: var(--gold-hover); }
.branch--live:hover .branch__cta .ico, .branch--live:focus-within .branch__cta .ico { transform: translateX(4px); }

@media (prefers-reduced-motion: no-preference) {
  .branch--live:hover { transform: translateY(-4px); }
  .branch--live .window--front { transform: translate3d(calc(var(--tx, 0) * 6px), calc(var(--ty, 0) * 5px), 0); }
  .branch--live .window--back { transform: translate3d(calc(var(--tx, 0) * -4px), calc(var(--ty, 0) * -3px), 0); }
  .branch--live:hover .window--front { transform: translate3d(calc(-1% + var(--tx, 0) * 6px), calc(2% + var(--ty, 0) * 5px), 0); }
  .branch--live:hover .window--back { transform: translate3d(calc(3% + var(--tx, 0) * -4px), calc(-4% + var(--ty, 0) * -3px), 0) rotate(1.2deg); }
  .branch--live .window--front .window__view img { transition: transform 5.5s cubic-bezier(.45, 0, .25, 1); }
  .branch--live:hover .window--front .window__view img,
  .branch--live:focus-within .window--front .window__view img { transform: translate3d(0, -13.33%, 0); transition-duration: 5s; }
  .branch__media.is-panning .window--front .window__view img { animation: hub-pan 9s cubic-bezier(.45, 0, .25, 1) 1s infinite alternate; }
}
@keyframes hub-pan { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -13.33%, 0); } }

/* coming soon */
.branch--soon { background: rgba(255, 255, 255, .7); box-shadow: none; }
.branch--soon .branch__media { aspect-ratio: 16 / 8; }
.branch__media--plan {
  background-color: #F7F3EA;
  background-image:
    linear-gradient(rgba(19, 35, 63, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 35, 63, .07) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: -1px -1px;
}
.plan {
  position: absolute; left: 9%; right: 9%; top: 15%; bottom: -1px;
  border: 1.5px dashed rgba(47, 107, 255, .45); border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: rgba(255, 255, 255, .72);
}
.plan__bar { display: flex; align-items: center; height: 22px; padding: 0 10px; border-bottom: 1.5px dashed rgba(47, 107, 255, .3); }
.plan__bar .window__dots i { background: transparent; border: 1.3px solid rgba(47, 107, 255, .45); }
.plan__body { display: grid; grid-template-columns: 1fr .9fr; gap: 8%; align-items: center; height: calc(100% - 22px); padding: 0 9% 6%; }
.plan__lines { display: grid; gap: 9px; }
.plan__lines i { display: block; height: 9px; border-radius: 5px; background: rgba(47, 107, 255, .16); }
.plan__lines i:first-child { height: 14px; width: 92%; background: rgba(47, 107, 255, .26); }
.plan__lines i:nth-child(2) { width: 70%; }
.plan__lines i:nth-child(3) { width: 84%; }
.plan__lines b { display: block; width: 54%; height: 20px; margin-top: 6px; border-radius: 99px; background: rgba(245, 165, 36, .55); }
.plan__glyph {
  display: grid; place-items: center; aspect-ratio: 1;
  border-radius: 12px; border: 1.5px dashed rgba(47, 107, 255, .4);
  height: min(86%, 132px); width: auto; max-width: 100%; justify-self: center;
  font: 700 clamp(44px, 11vw, 80px)/1 var(--f-display); color: var(--blue);
  background: linear-gradient(160deg, #fff, var(--blue-soft));
}
.branch--soon .branch__title { color: var(--ink); }
.branch__notify {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  min-height: 44px; margin-top: auto; padding: 10px 2px 2px;
  font-weight: 600; color: var(--blue-ink); text-decoration: none;
  text-decoration-line: underline; text-decoration-color: rgba(24, 64, 184, .3); text-underline-offset: 4px; text-decoration-thickness: 1.5px;
  transition: color .2s, text-decoration-color .2s;
}
.branch--soon .branch__desc { margin-bottom: 14px; }
.branch__notify:hover { color: var(--blue); text-decoration-color: currentColor; }
.branch__notify .ico { width: 18px; height: 18px; }

/* other niche */
.branch--other {
  padding: 26px 22px 22px;
  border-color: transparent;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(255, 255, 255, .16), transparent 60%),
    linear-gradient(150deg, #2E66F5 0%, #1D3FAF 100%);
  color: #fff;
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.branch__plus {
  position: absolute; right: -18px; top: -18px; width: 150px; height: 150px;
  stroke: rgba(255, 255, 255, .14); stroke-width: 1.2; fill: none;
}
.branch__kicker { font: 500 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #CFDBFF; }
.branch--other .branch__title { margin-top: 12px; color: #fff; max-width: 14ch; }
.branch--other .branch__desc { color: #E2E9FF; font-size: 17px; max-width: 30ch; }
.branch__examples {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 14.5px; line-height: 1.6; color: #D6E0FF;
}
.branch__examples span { display: block; margin-bottom: 2px; font: 500 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #AFC3FF; }
.branch__other-cta { align-self: flex-start; margin-top: auto; }
.branch--other .branch__examples { margin-bottom: 24px; }
.branch__other-cta::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-xl); }
.branch__other-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- how ---------- */
.how { padding: 56px 0 24px; background: var(--paper); border-top: 1px solid var(--line); }
.steps { display: grid; gap: 12px; counter-reset: step; }
.step {
  position: relative;
  padding: 22px 20px 22px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg);
}
.step__n {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 12px; background: var(--blue); color: #fff;
  font: 700 16px/1 var(--f-mono);
  box-shadow: 0 8px 18px -10px rgba(47, 107, 255, .9);
}
.step__title { font: 800 20px/1.2 var(--f-display); letter-spacing: -.02em; }
.step__text { margin-top: 6px; color: var(--ink-2); font-size: 16px; line-height: 1.5; text-wrap: pretty; }

/* ---------- trust ---------- */
.trust { padding: 24px 0 56px; background: var(--paper); }
.trust__grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.trust__item { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.trust__ico { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-ink); }
.trust__ico .ico { width: 22px; height: 22px; }
.trust__title { font: 700 17.5px/1.3 var(--f-display); letter-spacing: -.01em; }
.trust__text { margin-top: 4px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
/* payment: icon + title on one row, the two options full width below */
.trust__item--pay .trust__ico { grid-row: 1; }
.trust__item--pay .trust__title { align-self: center; }
.pay { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin-top: 16px; }
.pay__opt { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.pay__opt--a { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 1px var(--blue) inset; }
.pay__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font: 700 16px/1.3 var(--f-display); letter-spacing: -.01em; }
.pay__text { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* ---------- contact ---------- */
.contact { padding: 56px 0; }
.contact__panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 24px;
  padding: 28px 20px;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--sh-1);
}
.contact__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 100% 100%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 90% at 100% 100%, #000 10%, transparent 70%);
}
.contact__title { margin-top: 14px; font: 800 clamp(1.75rem, 1.2rem + 2.3vw, 3rem)/1.08 var(--f-display); letter-spacing: -.035em; text-wrap: balance; max-width: 18ch; }
.contact__lead { margin-top: 12px; color: var(--ink-2); max-width: 48ch; text-wrap: pretty; }
.contact__actions { display: grid; gap: 10px; align-content: end; }
.contact__actions .btn { width: 100%; }

/* ---------- footer ---------- */
.foot { padding: 26px 0 calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.foot__in { display: grid; gap: 6px; font-size: 14px; color: var(--ink-3); }
.foot__copy { font-weight: 500; color: var(--ink-2); }
.foot a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; display: inline-block; padding: 12px 0; margin: -12px 0; }
.foot a:hover { color: var(--blue-ink); text-decoration-color: currentColor; }

/* ================= ≥ 375px ================= */
@media (min-width: 375px) {
  .brand__logo { width: 160px; height: 24px; }
}
/* the agency note needs room next to the full logo and the Telegram button */
@media (min-width: 860px) {
  .brand__note { display: inline-block; }
}

/* ================= ≥ 640px ================= */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .hero__actions .btn { flex: 0 0 auto; }
  .fact { padding: 18px 20px; }
  .fact__l { font-size: 14px; }
  .branches__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branch--live { grid-column: span 2; }
  .branch--other { grid-column: span 2; }
  .branch--live .branch__media { aspect-ratio: 16 / 10; }
  .branch__body { padding: 20px 16px 12px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; border-top: 0; }
  .trust__item { grid-template-columns: 1fr; padding: 22px 0 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .trust__item { align-content: start; }
  .trust__ico { grid-row: auto; margin-bottom: 14px; }
  .trust__item--pay { grid-column: 1 / -1; grid-template-columns: 44px 1fr; }
  .trust__item--pay .trust__ico { margin-bottom: 0; }
  .contact__actions { grid-template-columns: repeat(2, minmax(0, max-content)); justify-content: start; }
  .contact__actions .btn { width: auto; }
  .contact__panel { padding: 36px 32px; }
  .foot__in { grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
  .foot__legal { text-align: right; }
}

/* ================= ≥ 900px ================= */
@media (min-width: 900px) {
  body { font-size: 18px; }
  .top__in { min-height: 72px; }
  .top__nav { display: flex; gap: 4px; margin-left: auto; }
  .top__nav a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2);
    transition: background-color .2s, color .2s;
  }
  .top__nav a:hover { background: rgba(47, 107, 255, .08); color: var(--blue-ink); }

  .hero { padding: 56px 0 56px; }
  .hero__grid { row-gap: 26px; }
  .hero__title { max-width: 21ch; }
  .hero__side { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
  .hero__lead { font-size: 18px; max-width: 50ch; }
  .hero__actions { margin-top: 0; flex: none; }
  .facts { margin-top: 8px; }
  .fact { padding: 22px 28px; display: flex; align-items: baseline; gap: 16px; }
  .fact__l { margin-top: 0; font-size: 15px; }

  .branches { padding: 16px 0 88px; }
  .section-head { margin-bottom: 28px; }
  .branches__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .branch--live { grid-column: span 2; }
  .branch--soon { grid-column: span 3; }
  .branch--other { grid-column: span 4; padding: 32px 28px 28px; }
  .branch--live .branch__media { aspect-ratio: 16 / 11; }
  .branch--soon .branch__media { aspect-ratio: 16 / 10; }
  .branch__body { padding: 24px 20px 14px; }
  .branch--soon .branch__body { padding: 20px 16px 10px; }
  .branch--soon .branch__title, .branch--other .branch__title { font-size: 1.7rem; }
  .branch--soon .branch__desc { font-size: 15.5px; }
  .window__bar { height: 28px; }
  .window__dots i { width: 8px; height: 8px; }
  .window__url { font-size: 11px; }

  .how { padding: 88px 0 32px; }
  .steps { gap: 20px; position: relative; }
  .steps::before {
    content: ""; position: absolute; left: 8%; right: 8%; top: 42px; height: 0; z-index: 0;
    border-top: 1.5px dashed rgba(47, 107, 255, .35);
  }
  .step { padding: 24px 26px 28px; z-index: 1; background: var(--bg); }
  .step__n { width: 44px; height: 44px; }
  .step__title { font-size: 22px; }
  .trust { padding: 32px 0 88px; }
  /* 5 conditions: payment (wide) + 1 on the first row, 3 on the second */
  .trust__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 40px; }
  .trust__item { grid-column: span 2; }
  .trust__item--pay { grid-column: span 4; }

  .contact { padding: 88px 0; }
  .contact__panel { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; padding: 56px; gap: 40px; }
  .contact__actions { grid-template-columns: 1fr; justify-content: stretch; }
  .contact__actions .btn { width: 100%; }
}

/* ================= ≥ 1200px ================= */
@media (min-width: 1200px) {
  .hero { padding: 64px 0 64px; }
  .branch__body { padding: 26px 26px 16px; }
  .branch--soon .branch__body { padding: 22px 20px 12px; }
}

@media (hover: none) {
  .btn:hover .ico { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* --- «Хочу такой» на карточках, переключатель направлений (ночь 2026-10-17) --- */
.branch__want { margin: 0; padding-top: 6px; }
.branch__want-link { position: relative; z-index: 6; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 15px/1.2 var(--f-body); color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.branch__want-link:hover { color: var(--ink); }
.branch__want-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* AI add-ons block (04.11.2026): services only, prices live in each niche catalog */
.aiblock { padding: 56px 0 40px; }
.aiblock__grid { display: grid; gap: 12px; }
.aiblock__item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.aiblock__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.aiblock__ico .ico { width: 22px; height: 22px; }
.aiblock__t { font: 800 18px/1.25 var(--f-display); letter-spacing: -.02em; }
.aiblock__d { margin-top: 6px; color: var(--ink-2); font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.aiblock__foot { margin-top: 22px; display: grid; gap: 16px; justify-items: start; }
.aiblock__price { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.aiblock__price a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 6px 0; }
@media (min-width: 720px) { .aiblock__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .aiblock { padding: 88px 0 56px; } .aiblock__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .aiblock__foot { grid-template-columns: 1fr auto; align-items: center; } }
