@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700&family=Syne:wght@500;700;800&display=swap");

:root {
  --bg: #050506;
  --bg-card: rgba(12, 12, 14, 0.92);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f4f5;
  --muted: #71717a;
  --accent: #a78bfa;
  --accent-dim: rgba(167, 139, 250, 0.12);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Syne", system-ui, sans-serif;
  --brand-sub: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 14px;
  --gradient-text: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  --theme-glow: rgba(124, 58, 237, 0.12);
  --theme-scan: rgba(167, 139, 250, 0.55);
  transition: color 0.5s ease;
}

body[data-theme="grbnk"] {
  --theme-glow: rgba(139, 157, 200, 0.16);
  --theme-scan: rgba(139, 157, 200, 0.65);
}

/* Скрыть контент до reveal-портала (нет мигания целевой страницы) */
html.is-portal-pending body {
  overflow: hidden;
}
html.is-portal-pending[data-portal-enter="grbnk"] body {
  background: #050608;
}
html.is-portal-pending[data-portal-enter="studio"] body {
  background: #050506;
}
html.is-portal-pending main,
html.is-portal-pending #site-chrome {
  visibility: hidden !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, var(--theme-glow), transparent 55%),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  pointer-events: none;
  z-index: 0;
  transition: background 0.65s ease;
}

#cursor-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#site-chrome { position: relative; z-index: 50; }

.brand-watermark {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-family: var(--mono);
  font-size: clamp(3rem, 14vw, 9rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.02);
  pointer-events: none;
  z-index: 0;
}

.corner {
  position: fixed;
  z-index: 50;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 16px clamp(14px, 3vw, 28px);
}
.corner--tl { top: 0; left: 0; flex-direction: column; align-items: flex-start; gap: 10px; }
.corner--tr { top: 0; right: 0; }
.corner--bl { bottom: 0; left: 0; flex-direction: column; align-items: flex-start; gap: 8px; }
.corner--br { bottom: 0; right: 0; flex-direction: column; align-items: flex-end; gap: 8px; overflow: visible; }

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark img { flex-shrink: 0; opacity: 0.95; }
.brand-mark__stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.brand-mark__name {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.brand-mark__sub {
  font-family: var(--brand-sub);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pill {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
}

.btn {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  transition: 0.2s;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
.btn:hover { border-color: var(--accent); background: var(--accent-dim); transform: translateY(-1px); }
.btn--fill { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--fill:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { color: var(--muted); }
.btn--ghost:hover { color: var(--text); }
.btn--block { display: block; margin-top: 14px; width: 100%; }
.btn--sm { padding: 8px 12px; font-size: 0.62rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row--vertical { flex-direction: column; }

.lang { display: flex; gap: 4px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; }
.lang button { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; font: inherit; }
.lang button.is-active { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

main {
  position: relative;
  z-index: 1;
  padding: 88px clamp(16px, 4vw, 40px) 110px;
  max-width: 1100px;
  margin: 0 auto;
}

.container { width: 100%; }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
}
.badge--3d { color: #c7d2e8; border-color: rgba(139,157,200,0.3); }
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero { padding: 12px 0 36px; position: relative; }
.page-hero--grbnk {
  display: grid;
  grid-template-columns: 1fr min(280px, 38vw);
  gap: 24px 32px;
  align-items: center;
}
.page-hero__cube { display: flex; justify-content: center; }
@media (max-width: 720px) {
  .page-hero--grbnk { grid-template-columns: 1fr; }
  .page-hero__cube { order: -1; max-width: 260px; margin: 0 auto; }
}
.page-hero .badge + .badge { margin-left: 8px; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 14px 0 12px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.page-hero p { color: var(--muted); max-width: 36em; line-height: 1.65; margin: 0; }
.page-hero__line {
  width: 48px; height: 2px; margin-top: 18px;
  background: var(--accent); border-radius: 999px;
}

.section { padding: 24px 0 48px; }
.section--tight { padding-top: 8px; }
.section__head { margin-bottom: 28px; }
.section__head h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.section__head p { margin: 0; color: var(--muted); }
.section-divider {
  height: 1px; border: none; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card {
  background: var(--bg-card);
  padding: 24px 20px;
  transition: background 0.2s;
}
.card:hover { background: var(--accent-dim); }
.card__icon { margin-bottom: 12px; color: var(--accent); }
.card__icon-img { width: 28px; height: 28px; }
.card h3 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card p { margin: 0 0 12px; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.card__list { margin: 12px 0 0; padding-left: 16px; color: var(--muted); font-size: 0.82rem; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.quick-link {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
.quick-link:hover { border-color: var(--accent); background: var(--accent-dim); transform: translateY(-2px); }
.quick-link strong { display: block; margin-bottom: 6px; }
.quick-link span { color: var(--muted); font-size: 0.86rem; }

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.price-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.price-card--featured { border-color: rgba(167,139,250,0.45); }
.price-card__badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 0.62rem; padding: 4px 8px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700;
}
.price-card h3 { margin: 0 0 8px; font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.price-card__price { font-size: 1.4rem; font-weight: 800; margin: 0 0 8px; color: var(--accent); }
.price-card > p { color: var(--muted); font-size: 0.88rem; }
.price-card ul { margin: 14px 0; padding-left: 16px; color: var(--muted); font-size: 0.84rem; }

.cta-band {
  margin-top: 36px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--accent-dim);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.cta-band h3 { margin: 0 0 4px; font-size: 1.05rem; }
.cta-band p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.portfolio-filter {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.portfolio-filter.is-active,
.portfolio-filter:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-dim);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.portfolio-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  overflow: hidden;
  transition: 0.2s;
}
.portfolio-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.portfolio-card__visual {
  position: relative;
  height: 120px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portfolio-card__visual--cover {
  height: 176px;
  padding: 12px 14px;
  background: #0b0d12;
}
a.portfolio-card__visual-link {
  display: grid;
  place-items: center;
  text-decoration: none;
  color: inherit;
}
.portfolio-card__cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 10px;
}
.portfolio-card__visual--cover .portfolio-card__cover--fill {
  object-fit: cover;
  object-position: center 28%;
}
.portfolio-card__soon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(251, 146, 60, 0.45);
  color: #fdba74;
}
.portfolio-card__body { padding: 16px; }
.portfolio-card__tag { font-family: var(--mono); font-size: 0.62rem; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
.portfolio-card__body h3 { margin: 6px 0; font-size: 1rem; }
.portfolio-card__body p { margin: 0 0 10px; color: var(--muted); font-size: 0.86rem; }
.portfolio-card__meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.portfolio-card__logo { width: 64px; height: 64px; }
.portfolio-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  max-width: 52ch;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.empty-state h3 { margin: 12px 0 8px; }
.empty-state p { color: var(--muted); margin: 0 0 16px; }

.grbnk-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.grbnk-brand__logo { width: min(200px, 70%); height: auto; margin-bottom: 12px; }
.grbnk-brand__label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.grbnk-list { margin: 16px 0; padding-left: 18px; color: var(--muted); font-size: 0.9rem; }
.platform-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.platform-tags span {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 0.8rem; color: var(--muted);
}

.brand-watermark--grbnk {
  font-size: clamp(2.2rem, 11vw, 7rem);
  letter-spacing: 0.2em;
  color: rgba(139, 157, 200, 0.028);
  text-align: center;
  max-width: 96vw;
  line-height: 1.2;
}

body[data-page="grbnk"] main {
  max-width: none;
  padding-left: clamp(12px, 2.5vw, 28px);
  padding-right: clamp(12px, 2.5vw, 28px);
}
body[data-page="grbnk"] .section,
body[data-page="grbnk"] .page-hero {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* —— GRBNK vitrina —— */
.grbnk-stage {
  width: 100%;
  max-width: 1100px;
  margin: 8px auto 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: auto;
}
.grbnk-stage__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.grbnk-stage__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.grbnk-stage__sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.grbnk-stage__screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(132px, 188px) minmax(0, 1fr);
  grid-template-rows: 1fr;
  grid-template-areas: "list view";
  gap: 12px;
  height: min(46vh, 440px);
  min-height: 320px;
  max-height: 440px;
}
.grbnk-picklist {
  grid-area: list;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 6px 8px 8px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(139, 157, 200, 0.2);
  background: rgba(6, 9, 18, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 157, 200, 0.5) transparent;
  z-index: 5;
}
.grbnk-picklist::-webkit-scrollbar { width: 5px; }
.grbnk-picklist::-webkit-scrollbar-thumb {
  background: rgba(139, 157, 200, 0.45);
  border-radius: 999px;
}
.grbnk-picklist__item {
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(139, 157, 200, 0.18);
  background: rgba(8, 12, 22, 0.65);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.grbnk-picklist__item:hover {
  border-color: rgba(168, 184, 216, 0.45);
  background: rgba(139, 157, 200, 0.1);
  transform: translateX(2px);
}
.grbnk-picklist__item.is-active {
  border-color: rgba(196, 210, 232, 0.65);
  background: linear-gradient(135deg, rgba(139, 157, 200, 0.22), rgba(60, 80, 120, 0.15));
  box-shadow: 0 0 24px rgba(139, 157, 200, 0.18), inset 0 1px 0 rgba(220, 228, 240, 0.12);
}
.grbnk-picklist__tag {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b9dc8;
}
.grbnk-picklist__item strong {
  font-size: 0.82rem;
  line-height: 1.25;
  white-space: normal;
}
.grbnk-picklist__meta {
  font-size: 0.68rem;
  color: #a8b8d8;
  line-height: 1.3;
  white-space: normal;
}

.grbnk-stage__viewport {
  grid-area: view;
  position: relative;
  min-height: 0;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  z-index: 1;
}
.grbnk-stage__dock {
  grid-area: view;
  z-index: 4;
  align-self: end;
  justify-self: end;
  width: min(240px, calc(100% - 24px));
  margin: 12px;
  padding: 12px 14px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(139, 157, 200, 0.28);
  background: rgba(6, 9, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(196, 210, 232, 0.06);
  pointer-events: none;
}

.grbnk-viewer-wrap { display: flex; flex-direction: column; gap: 12px; }
.grbnk-viewer-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border: 1px solid rgba(139, 157, 200, 0.22);
  background:
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(139, 157, 200, 0.14), transparent 68%),
    radial-gradient(ellipse 50% 40% at 50% 20%, rgba(139, 157, 200, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(8, 11, 20, 0.92), rgba(4, 6, 12, 0.98));
  overflow: hidden;
  animation: grbnkFrameGlow 4.5s ease-in-out infinite;
}
.grbnk-viewer-frame__fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.grbnk-viewer-frame__grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(139, 157, 200, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 157, 200, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 55%, #000 25%, transparent 72%);
  animation: grbnkGridPulse 5s ease-in-out infinite;
}
.grbnk-viewer-frame__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 157, 200, 0.15) 20%,
    rgba(196, 210, 232, 0.55) 50%,
    rgba(139, 157, 200, 0.15) 80%,
    transparent
  );
  box-shadow: 0 0 18px rgba(139, 157, 200, 0.25);
  animation: grbnkScanLine 7s linear infinite;
}
@keyframes grbnkFrameGlow {
  0%, 100% {
    border-color: rgba(139, 157, 200, 0.2);
    box-shadow: inset 0 0 0 1px rgba(139, 157, 200, 0.04), 0 0 24px rgba(139, 157, 200, 0.06);
  }
  50% {
    border-color: rgba(168, 184, 216, 0.38);
    box-shadow: inset 0 0 0 1px rgba(196, 210, 232, 0.08), 0 0 36px rgba(139, 157, 200, 0.14);
  }
}
@keyframes grbnkGridPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.01); }
}
@keyframes grbnkScanLine {
  0% { top: -2%; opacity: 0; }
  8% { opacity: 0.7; }
  92% { opacity: 0.5; }
  100% { top: 102%; opacity: 0; }
}
.grbnk-viewer-frame canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
  touch-action: none;
}
.grbnk-viewer-frame__status {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c7d2e8;
  background: rgba(8, 12, 22, 0.82);
  border: 1px solid rgba(139, 157, 200, 0.28);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.grbnk-viewer-frame.is-loading .grbnk-viewer-frame__status {
  opacity: 1;
}
.grbnk-viewer-frame__hint {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(196, 210, 232, 0.55);
  pointer-events: none;
}
.grbnk-viewer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.grbnk-viewer-meta__tag {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b9dc8;
}
.grbnk-viewer-meta strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.grbnk-viewer-meta__desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.grbnk-viewer-meta__price {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #c7d2e8;
  letter-spacing: 0.04em;
}
.grbnk-viewer-meta__order {
  pointer-events: auto;
  margin-top: 12px;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.spec-bar--grbnk { margin-bottom: 12px; }
.grbnk-calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.card--grbnk {
  border-color: rgba(139, 157, 200, 0.18);
  background: rgba(139, 157, 200, 0.04);
}
.card--grbnk h3 { font-size: 0.95rem; margin: 0 0 8px; }
.grbnk-order-demo { padding: 20px; align-self: stretch; }
.grbnk-status-demo {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}
.grbnk-status-demo li::before { content: "○ "; color: rgba(139, 157, 200, 0.4); }
.grbnk-status-demo li.is-done { color: #c7d2e8; }
.grbnk-status-demo li.is-done::before { content: "✓ "; color: #8b9dc8; }
.grbnk-status-demo li.is-active { color: #e8edf8; font-weight: 600; }
.grbnk-status-demo li.is-active::before { content: "◉ "; color: #c4d2e8; }

@media (min-width: 900px) {
  .grbnk-stage__screen {
    height: min(48vh, 460px);
    max-height: 460px;
  }
  .grbnk-stage__dock {
    width: 220px;
    margin: 12px;
  }
}
@media (max-width: 720px) {
  .grbnk-stage__screen {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(260px, 48vh) auto;
    grid-template-areas:
      "list"
      "view"
      "dock";
    height: auto;
    min-height: 0;
    max-height: none;
    gap: 10px;
  }
  .grbnk-picklist {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .grbnk-picklist__item {
    flex: 0 0 auto;
    min-width: 138px;
    max-width: 168px;
    transform: none !important;
  }
  .grbnk-picklist__item:hover { transform: none; }
  .grbnk-stage__viewport {
    height: min(48vh, 360px);
    min-height: 260px;
  }
  .grbnk-stage__dock {
    grid-area: dock;
    justify-self: stretch;
    align-self: stretch;
    width: auto;
    margin: 0;
    pointer-events: auto;
  }
  .grbnk-viewer-meta__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .grbnk-viewer-frame__hint {
    font-size: 0.5rem;
    max-width: 70%;
  }
}
@media (max-width: 520px) {
  .grbnk-picklist__item {
    padding: 8px 9px;
    min-width: 124px;
  }
  .grbnk-picklist__item strong { font-size: 0.76rem; }
  .grbnk-picklist__meta { font-size: 0.62rem; }
}
@media (max-width: 900px) {
  .grbnk-calc-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .grbnk-viewer-frame,
  .grbnk-viewer-frame__grid,
  .grbnk-viewer-frame__scan {
    animation: none;
  }
  .grbnk-viewer-frame {
    border-color: rgba(139, 157, 200, 0.22);
    box-shadow: none;
  }
  .grbnk-viewer-frame__grid { opacity: 0.65; transform: none; }
}

.cube-scene {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  perspective: 900px;
}
.cube-scene__grid {
  position: absolute; inset: 8%;
  background-image:
    linear-gradient(rgba(167,139,250,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,139,250,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}
.cube-wrap { transform-style: preserve-3d; animation: cubeFloat 5s ease-in-out infinite; }
@keyframes cubeFloat { 50% { transform: translateY(-10px); } }
.cube {
  width: 130px; height: 130px;
  position: relative;
  transform-style: preserve-3d;
  animation: cubeSpin 18s linear infinite;
}
.cube__face {
  position: absolute; width: 130px; height: 130px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  backface-visibility: hidden;
}
.cube__face--front { transform: rotateY(0deg) translateZ(65px); background: linear-gradient(145deg, #f472b6, #c026d3); }
.cube__face--back { transform: rotateY(180deg) translateZ(65px); background: linear-gradient(145deg, #7c3aed, #4c1d95); }
.cube__face--right { transform: rotateY(90deg) translateZ(65px); background: linear-gradient(145deg, #22d3ee, #0891b2); }
.cube__face--left { transform: rotateY(-90deg) translateZ(65px); background: linear-gradient(145deg, #a78bfa, #6d28d9); }
.cube__face--top { transform: rotateX(90deg) translateZ(65px); background: linear-gradient(145deg, #f8fafc, #e2e8f0); }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(65px); background: linear-gradient(145deg, #312e81, #1e1b4b); }
.cube-scene--hero {
  min-height: 240px;
  width: 100%;
  filter: drop-shadow(0 0 32px rgba(100, 140, 200, 0.18));
}
.cube-scene--hero::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 157, 200, 0.14) 0%, transparent 68%);
  animation: cubeCorePulse 4s ease-in-out infinite;
  pointer-events: none;
}
.cube-scene--hero .cube-scene__grid {
  background-image:
    linear-gradient(rgba(139, 157, 200, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 157, 200, 0.09) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(ellipse at center, #000 22%, transparent 72%);
}
.cube-scene--hero .cube-wrap { animation-duration: 6s; }
.cube-scene--hero .cube {
  width: 118px;
  height: 118px;
  animation: cubeSpinGrbnk 12s linear infinite;
}
.cube-scene--hero .cube__face {
  width: 118px;
  height: 118px;
  border-radius: 6px;
}
.cube-scene--hero .cube__face--front { transform: rotateY(0deg) translateZ(59px); }
.cube-scene--hero .cube__face--back { transform: rotateY(180deg) translateZ(59px); }
.cube-scene--hero .cube__face--right { transform: rotateY(90deg) translateZ(59px); }
.cube-scene--hero .cube__face--left { transform: rotateY(-90deg) translateZ(59px); }
.cube-scene--hero .cube__face--top { transform: rotateX(90deg) translateZ(59px); }
.cube-scene--hero .cube__face--bottom { transform: rotateX(-90deg) translateZ(59px); }
@keyframes cubeSpinGrbnk {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to { transform: rotateX(-18deg) rotateY(360deg); }
}
@keyframes cubeCorePulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}
.cube--wireframe .cube__face {
  background: linear-gradient(145deg, rgba(139, 157, 200, 0.05), transparent 55%);
  border: 1.5px solid rgba(168, 184, 216, 0.55);
  box-shadow:
    inset 0 0 18px rgba(139, 157, 200, 0.07),
    0 0 10px rgba(139, 157, 200, 0.12);
}
.cube-scene--hero .cube--wireframe .cube__face {
  border-width: 1px;
  border-style: solid;
}
.cube--wireframe .cube__face--front {
  border-color: rgba(220, 232, 248, 0.9);
  box-shadow: inset 0 0 12px rgba(196, 210, 232, 0.1), 0 0 14px rgba(196, 210, 232, 0.2);
}
.cube--wireframe .cube__face--back { border-color: rgba(100, 125, 170, 0.45); }
.cube--wireframe .cube__face--right { border-color: rgba(139, 157, 200, 0.7); }
.cube--wireframe .cube__face--left { border-color: rgba(120, 145, 190, 0.55); }
.cube--wireframe .cube__face--top {
  border-color: rgba(230, 236, 248, 0.95);
  box-shadow: inset 0 0 16px rgba(220, 228, 240, 0.12), 0 0 12px rgba(220, 228, 240, 0.15);
}
.cube--wireframe .cube__face--bottom { border-color: rgba(80, 100, 140, 0.4); }
.cube-scene--hero .cube-ring {
  border-color: rgba(139, 157, 200, 0.22);
  border-style: solid;
  opacity: 0.85;
}
.cube-scene--hero .cube-ring--1 {
  width: 210px;
  height: 210px;
  border-width: 1px;
  box-shadow: 0 0 24px rgba(139, 157, 200, 0.08);
}
.cube-scene--hero .cube-ring--2 {
  width: 168px;
  height: 168px;
  border-width: 1px;
  border-style: dashed;
  opacity: 0.6;
}
@media (prefers-reduced-motion: reduce) {
  .cube-scene--hero::before,
  .cube-scene--hero .cube,
  .cube-scene--hero .cube-wrap,
  .cube-scene--hero .cube-ring { animation: none !important; }
}
.cube-ring {
  position: absolute; border-radius: 50%;
  border: 1px dashed rgba(167,139,250,0.3);
  animation: spin 24s linear infinite;
}
.cube-ring--1 { width: 240px; height: 240px; }
.cube-ring--2 { width: 180px; height: 180px; animation-direction: reverse; animation-duration: 16s; }
@keyframes cubeSpin { from { transform: rotateX(-20deg) rotateY(0); } to { transform: rotateX(-20deg) rotateY(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.grbnk-visual__card { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}
.contact-card {
  display: block;
  padding: 16px 18px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
.contact-card:hover { border-color: var(--accent); }
.contact-card span { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { font-size: 1rem; }
.contact-card--grbnk:hover { border-color: rgba(139, 157, 200, 0.55); }
.contact-card--grbnk span { color: #8b9dc8; }
.contact-note--list { list-style: none; padding: 0; margin: 12px 0 0; color: var(--muted); font-size: 0.86rem; display: grid; gap: 8px; }

.pay-box {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.08), rgba(0, 0, 0, 0.25));
}
.pay-box h3 { margin: 0 0 8px; font-size: 1rem; }
.pay-box > p { margin: 0 0 10px; color: var(--muted); font-size: 0.9rem; }
.pay-box ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.84rem; display: grid; gap: 6px; }
.pay-box a { color: var(--accent); }
.pay-box__num {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px !important;
  font-size: 1.15rem !important;
  font-weight: 700;
  color: var(--text) !important;
}
.pay-box__num a { color: inherit; text-decoration: none; }
.pay-box__copy {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}
.pay-box__copy:hover { border-color: var(--accent); }
.pay-box--wide { margin: 28px 0 0; }
.pay-box__hint { margin-top: 8px !important; }

.offer-branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 800px) {
  .offer-branches { grid-template-columns: 1fr; }
}
.offer-branches__col {
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.offer-branches__col h3 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.offer-branches__col ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  display: grid;
  gap: 6px;
}
.offer-branches__col--muted h3 { color: #c4a35a; }
.offer-branches__col--dim {
  opacity: 0.72;
}
.offer-branches__col--dim h3 { color: #a87878; }
.offer-branches__col--dim li { text-decoration: line-through; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; color: var(--muted); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  font: inherit;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-hint { font-size: 0.76rem; color: var(--muted); margin: 0; }
.form-consent { flex-direction: row !important; align-items: flex-start; gap: 8px !important; cursor: pointer; }
.service-custom { margin-top: -4px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-status { padding: 10px 12px; border-radius: 10px; font-size: 0.88rem; }
.form-status--ok { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.35); color: #bbf7d0; }
.form-status--err { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.35); color: #fecaca; }

.home-hero {
  text-align: center;
  padding: 24px 0 40px;
}
.home-hero h1 {
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 16px 0;
  letter-spacing: -0.04em;
}
.home-hero__lead { color: var(--muted); max-width: 28em; margin: 0 auto 28px; line-height: 1.6; }
.home-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Motion & layout blocks */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  z-index: 80;
  pointer-events: none;
  transition: background 0.45s ease;
}
body[data-theme="grbnk"] #scroll-progress {
  background: linear-gradient(90deg, #8b9dc8, #5c6d8a);
}

/* FROZEN: Theme portal + scroll field + button rays — см. .cursor/rules/theme-transition-frozen.mdc */

/* Scroll-driven переход Studio → 3D (только главная, без блокировки) */
html { --theme-mix: 0; }

#theme-scroll-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.theme-scroll-field__beam {
  display: none;
}
.theme-scroll-field__glow {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: calc(28% + var(--theme-mix, 0) * 78%);
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(139, 157, 200, 0.22), transparent 68%),
    linear-gradient(0deg, rgba(20, 28, 42, 0.72) 0%, rgba(20, 28, 42, 0.18) 55%, transparent 100%);
  opacity: calc(var(--theme-mix, 0) * 0.95);
  transform: translateY(calc((1 - var(--theme-mix, 0)) * 12%));
  will-change: height, opacity, transform;
}
.theme-scroll-field__horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--theme-mix, 0) * 72vh + 4vh);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(139, 157, 200, calc(var(--theme-mix, 0) * 0.35)) 18%,
    rgba(196, 210, 232, calc(var(--theme-mix, 0) * 0.85)) 50%,
    rgba(139, 157, 200, calc(var(--theme-mix, 0) * 0.35)) 82%,
    transparent 100%
  );
  box-shadow: 0 0 18px rgba(139, 157, 200, calc(var(--theme-mix, 0) * 0.35));
  opacity: var(--theme-mix, 0);
}
.theme-scroll-field__tag {
  position: absolute;
  left: 50%;
  bottom: calc(var(--theme-mix, 0) * 68vh + 2vh);
  transform: translateX(-50%) translateY(50%);
  margin: 0;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(196, 210, 232, calc(var(--theme-mix, 0) * 0.9));
  opacity: calc(var(--theme-mix, 0) * 0.85);
}
.theme-scroll-field__mouth {
  position: fixed;
  left: 50%;
  bottom: calc(5vh + var(--theme-mix, 0) * 4vh);
  width: min(68vw, 480px);
  height: clamp(10px, 2.2vh, 28px);
  transform: translate(-50%, 50%);
  pointer-events: none;
  z-index: 2;
}
#theme-scroll-field.is-strong .theme-scroll-field__glow {
  background:
    radial-gradient(ellipse 90% 65% at 50% 100%, rgba(139, 157, 200, 0.28), transparent 70%),
    linear-gradient(0deg, rgba(16, 22, 34, 0.82) 0%, rgba(16, 22, 34, 0.2) 58%, transparent 100%);
}
#theme-scroll-field.is-pulse .theme-scroll-field__horizon {
  animation: theme-horizon-pulse 0.52s ease-out;
}
@keyframes theme-horizon-pulse {
  0% { box-shadow: 0 0 8px rgba(139, 157, 200, 0.2); }
  40% { box-shadow: 0 0 32px rgba(196, 210, 232, 0.65); }
  100% { box-shadow: 0 0 18px rgba(139, 157, 200, 0.35); }
}

/* Луч и заряд кнопки переключения (скролл на главной) */
body[data-page="home"] #theme-cta-switch {
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
body[data-page="home"] #theme-cta-switch.is-charged {
  border-color: rgba(139, 157, 200, 0.45);
  box-shadow: 0 0 calc(12px + var(--theme-mix, 0) * 20px) rgba(139, 157, 200, calc(var(--theme-mix, 0) * 0.45));
}
body[data-page="home"] #theme-cta-switch.is-charged-strong {
  border-color: rgba(196, 210, 232, 0.55);
  box-shadow: 0 0 24px rgba(139, 157, 200, 0.5);
}

/* Портал при скролле — лого из дна, лёгкое свечение кнопки (без лучей) */
body[data-page="home"] #theme-cta-switch.is-scroll-portal {
  position: relative;
  z-index: 48;
  overflow: visible;
}
body[data-page="home"] #theme-cta-switch.is-scroll-portal::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(139, 157, 200, calc(var(--scroll-portal-mix, 0) * 0.28)) 0%,
    rgba(139, 157, 200, calc(var(--scroll-portal-mix, 0) * 0.1)) 42%,
    transparent 72%
  );
  pointer-events: none;
  z-index: -1;
}
body[data-page="home"] #theme-cta-switch.is-scroll-portal {
  border-color: rgba(139, 157, 200, calc(var(--scroll-portal-mix, 0) * 0.45));
  box-shadow:
    0 0 calc(6px + var(--scroll-portal-mix, 0) * 14px)
      rgba(139, 157, 200, calc(var(--scroll-portal-mix, 0) * 0.35));
}
body[data-page="home"] #theme-cta-switch.is-scroll-portal.is-scroll-portal-end::after {
  background: radial-gradient(
    circle,
    rgba(196, 210, 232, calc(var(--scroll-portal-mix, 0) * 0.32)) 0%,
    rgba(139, 157, 200, calc(var(--scroll-portal-mix, 0) * 0.12)) 45%,
    transparent 74%
  );
}
#theme-portal-burst-scroll {
  z-index: 56;
  pointer-events: none;
}
.theme-portal__logo-fly.theme-portal__logo-fly--scroll {
  z-index: 120;
  animation: theme-logo-fly-scroll var(--lg-dur, 12s) var(--lg-delay, 0ms) ease-out forwards;
  transform-origin: center center;
}
.theme-portal-burst--scroll .theme-portal__logo-fly img,
.theme-portal__logo-fly.theme-portal__logo-fly--scroll img {
  filter:
    brightness(1.35)
    drop-shadow(0 0 10px rgba(196, 210, 232, 0.95))
    drop-shadow(0 0 22px rgba(139, 157, 200, 0.75));
}
.theme-portal-burst--scroll .theme-portal__logo-fly--scroll {
  animation: theme-logo-fly-scroll var(--lg-dur, 12s) var(--lg-delay, 0ms) ease-out forwards;
  transform-origin: center center;
}
@keyframes theme-logo-fly-scroll {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  }
  4% { opacity: 0.9; }
  12% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.55) rotate(calc(var(--lg-rot) * 0.15));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--lg-dx)), calc(-50% + var(--lg-dy)))
      scale(0.9)
      rotate(var(--lg-rot));
  }
}

#theme-cta-switch.is-portal-source {
  position: relative;
  z-index: 210;
  overflow: visible;
  transform: scale(0.96);
  border-color: transparent;
  color: #fff;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.35) 0%, rgba(124, 58, 237, 0.55) 50%, rgba(196, 181, 253, 0.45) 100%);
  animation: theme-portal-btn-pulse 0.45s ease-in-out infinite alternate;
}
#theme-cta-switch.is-portal-source::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(
    115deg,
    #fff 0%,
    #c4b5fd 12%,
    #7c3aed 28%,
    #a78bfa 44%,
    #5b21b6 60%,
    #8b9dc8 76%,
    #c4b5fd 88%,
    #fff 100%
  );
  background-size: 320% 100%;
  animation: theme-portal-btn-shimmer 0.65s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.8));
}
#theme-cta-switch.is-portal-source::after {
  content: none;
}
.theme-portal-btn-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}
.theme-portal-btn-fx__halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 181, 253, 0.55) 0%, rgba(124, 58, 237, 0.28) 38%, transparent 68%);
  animation: theme-portal-halo-pulse 0.55s ease-in-out infinite alternate;
}
.theme-portal-btn-fx__rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -8deg,
    transparent 0deg 32deg,
    rgba(196, 181, 253, 0.75) 32deg 36deg,
    transparent 36deg 68deg,
    rgba(167, 139, 250, 0.55) 68deg 71deg,
    transparent 71deg 100deg
  );
  filter: blur(1.5px);
  animation: theme-portal-rays-spin 2.4s linear infinite;
  opacity: 0.9;
}
#theme-cta-switch.is-portal-source[data-portal-target="grbnk"] .theme-portal-btn-fx__rays,
body[data-page="home"] #theme-cta-switch.is-scroll-portal[data-portal-target="grbnk"] .theme-portal-btn-fx__rays {
  background: repeating-conic-gradient(
    from -8deg,
    transparent 0deg 32deg,
    rgba(196, 210, 232, 0.8) 32deg 36deg,
    transparent 36deg 68deg,
    rgba(139, 157, 200, 0.6) 68deg 71deg,
    transparent 71deg 100deg
  );
}
#theme-cta-switch.is-portal-source[data-portal-target="grbnk"] {
  background: linear-gradient(135deg, rgba(42, 61, 92, 0.45) 0%, rgba(90, 120, 152, 0.55) 50%, rgba(196, 210, 232, 0.4) 100%);
  animation-name: theme-portal-btn-pulse-grbnk;
}
#theme-cta-switch.is-portal-source[data-portal-target="grbnk"]::before {
  background: linear-gradient(
    115deg,
    #fff 0%,
    #c4d2e8 14%,
    #8b9dc8 30%,
    #5a7898 46%,
    #2a3d5c 62%,
    #8b9dc8 78%,
    #c4d2e8 90%,
    #fff 100%
  );
  background-size: 320% 100%;
  filter: drop-shadow(0 0 10px rgba(139, 157, 200, 0.85));
}
#theme-cta-switch.is-portal-source[data-portal-target="grbnk"] .theme-portal-btn-fx__halo {
  background: radial-gradient(circle, rgba(196, 210, 232, 0.6) 0%, rgba(90, 120, 152, 0.32) 38%, transparent 68%);
}
@keyframes theme-portal-rays-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes theme-portal-halo-pulse {
  from { transform: translate(-50%, -50%) scale(0.85); opacity: 0.75; }
  to { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}
@keyframes theme-portal-btn-shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}
@keyframes theme-portal-btn-pulse {
  from {
    box-shadow:
      0 0 18px rgba(167, 139, 250, 0.9),
      0 0 36px rgba(124, 58, 237, 0.65),
      0 0 64px rgba(196, 181, 253, 0.35),
      0 -28px 32px -18px rgba(196, 181, 253, 0.55),
      0 28px 32px -18px rgba(124, 58, 237, 0.45),
      -28px 0 32px -18px rgba(167, 139, 250, 0.5),
      28px 0 32px -18px rgba(91, 33, 182, 0.45);
  }
  to {
    box-shadow:
      0 0 28px rgba(255, 255, 255, 0.35),
      0 0 48px rgba(196, 181, 253, 1),
      0 0 80px rgba(124, 58, 237, 0.55),
      0 -36px 44px -16px rgba(196, 181, 253, 0.75),
      0 36px 44px -16px rgba(124, 58, 237, 0.6),
      -36px 0 44px -16px rgba(167, 139, 250, 0.65),
      36px 0 44px -16px rgba(91, 33, 182, 0.6);
  }
}
@keyframes theme-portal-btn-pulse-grbnk {
  from {
    box-shadow:
      0 0 18px rgba(139, 157, 200, 0.9),
      0 0 36px rgba(90, 120, 152, 0.65),
      0 0 64px rgba(196, 210, 232, 0.35),
      0 -28px 32px -18px rgba(196, 210, 232, 0.55),
      0 28px 32px -18px rgba(90, 120, 152, 0.45),
      -28px 0 32px -18px rgba(139, 157, 200, 0.5),
      28px 0 32px -18px rgba(42, 61, 92, 0.45);
  }
  to {
    box-shadow:
      0 0 28px rgba(255, 255, 255, 0.28),
      0 0 48px rgba(196, 210, 232, 0.95),
      0 0 80px rgba(139, 157, 200, 0.55),
      0 -36px 44px -16px rgba(196, 210, 232, 0.75),
      0 36px 44px -16px rgba(90, 120, 152, 0.6),
      -36px 0 44px -16px rgba(139, 157, 200, 0.65),
      36px 0 44px -16px rgba(42, 61, 92, 0.6);
  }
}

.theme-scroll-sigil {
  position: fixed;
  left: var(--sigil-x);
  top: var(--sigil-y);
  z-index: 48;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.theme-scroll-sigil img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 12px rgba(139, 157, 200, 0.55));
}
.theme-scroll-sigil span {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(196, 210, 232, 0.9);
}
.theme-scroll-sigil.is-fly {
  animation: theme-scroll-sigil-fly 0.88s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes theme-scroll-sigil-fly {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45);
  }
  18% { opacity: 1; }
  62% {
    opacity: 1;
    transform: translate(calc(-50% + var(--sigil-dx) * 0.82), calc(-50% + var(--sigil-dy) * 0.82)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--sigil-dx)), calc(-50% + var(--sigil-dy))) scale(1.15);
  }
}

/* Theme portal — переход Studio ↔ 3D GRBNK (клик по кнопке) */
#theme-portal {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}
#theme-portal.is-active {
  visibility: visible;
  pointer-events: auto;
}

.theme-portal__origin {
  position: absolute;
  left: var(--portal-x, 92vw);
  top: var(--portal-y, 92vh);
  width: 280vmax;
  height: 280vmax;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.92;
}
#theme-portal[data-target="grbnk"] .theme-portal__origin {
  background: radial-gradient(circle, rgba(196, 210, 232, 0.35) 0%, rgba(42, 61, 92, 0.88) 38%, rgba(10, 14, 22, 0.96) 68%);
}
#theme-portal[data-target="studio"] .theme-portal__origin {
  background: radial-gradient(circle, rgba(196, 181, 253, 0.38) 0%, rgba(91, 33, 182, 0.82) 40%, rgba(8, 6, 14, 0.96) 68%);
}
#theme-portal.is-from-switch.is-exit .theme-portal__origin {
  animation: theme-origin-expand 0.76s cubic-bezier(0.76, 0, 0.18, 1) forwards;
}
#theme-portal.is-enter-only .theme-portal__origin {
  display: none;
}

.theme-portal__sigil {
  position: absolute;
  left: var(--portal-x);
  top: var(--portal-y);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}
.theme-portal__sigil-logo {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.25));
}
.theme-portal__sigil-word {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 0 20px rgba(167, 139, 250, 0.45);
}
#theme-portal[data-target="grbnk"] .theme-portal__sigil-word {
  color: rgba(196, 210, 232, 0.95);
  text-shadow: 0 0 20px rgba(139, 157, 200, 0.5);
}
#theme-portal.is-from-switch.is-exit .theme-portal__sigil {
  animation: theme-sigil-fly 0.68s 0.06s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
#theme-portal.is-enter .theme-portal__sigil,
#theme-portal.is-enter-only .theme-portal__sigil {
  display: none;
}

@keyframes theme-origin-expand {
  from { transform: translate(-50%, -50%) scale(0); opacity: 0.5; }
  35% { opacity: 0.95; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes theme-sigil-fly {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  22% { opacity: 1; }
  58% {
    opacity: 1;
    transform: translate(calc(-50% + var(--portal-dx) * 0.78), calc(-50% + var(--portal-dy) * 0.78)) scale(1.05);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--portal-dx)), calc(-50% + var(--portal-dy))) scale(1.25);
  }
}

.theme-portal__wipe {
  position: absolute;
  inset: -20%;
  transform: translateX(110%) skewX(-8deg);
  opacity: 0;
}
.theme-portal__wipe--studio {
  background: linear-gradient(125deg, #050506 0%, #1a1030 45%, #5b21b6 100%);
}
.theme-portal__wipe--grbnk {
  background: linear-gradient(125deg, #050608 0%, #121a28 42%, #2a3d5c 100%);
}
#theme-portal[data-target="studio"] .theme-portal__wipe--studio,
#theme-portal[data-target="grbnk"] .theme-portal__wipe--grbnk {
  opacity: 1;
}
#theme-portal.is-exit .theme-portal__wipe {
  animation: theme-wipe-in 0.72s cubic-bezier(0.76, 0, 0.18, 1) forwards;
}
#theme-portal.is-from-switch.is-exit .theme-portal__wipe {
  opacity: 1;
}
#theme-portal.is-from-switch.is-exit .theme-portal__core {
  z-index: 4;
}
#theme-portal.is-exit .theme-portal__sigil {
  display: none;
}
#theme-portal.is-enter .theme-portal__wipe {
  animation: theme-wipe-out 0.68s cubic-bezier(0.76, 0, 0.18, 1) forwards;
}
#theme-portal.is-soft .theme-portal__wipe {
  animation-duration: 0.42s;
  inset: -10%;
}
#theme-portal.is-enter-only .theme-portal__wipe {
  transform: translateX(0) skewX(-8deg);
  opacity: 1;
}
#theme-portal.is-enter-only.is-reveal .theme-portal__wipe {
  animation: theme-wipe-out 0.72s cubic-bezier(0.76, 0, 0.18, 1) forwards;
}

.theme-portal__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--theme-scan) 48%, transparent 100%);
  opacity: 0;
  transform: translateY(-120%);
}
#theme-portal.is-exit .theme-portal__scan {
  animation: theme-scan 0.72s ease-out forwards;
}
#theme-portal.is-soft.is-exit .theme-portal__scan {
  animation-duration: 0.4s;
  opacity: 0.35;
}

.theme-portal__core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  opacity: 0;
  transform: scale(0.92);
  z-index: 4;
  pointer-events: none;
}
#theme-portal.is-exit .theme-portal__core,
#theme-portal.is-from-switch.is-exit .theme-portal__core {
  animation: theme-core-in 0.5s 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.theme-portal__core-mark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
#theme-portal.is-enter-only .theme-portal__core {
  display: none;
}
#theme-portal.is-enter .theme-portal__core {
  animation: theme-core-out 0.35s ease forwards;
}

.theme-portal__ring {
  position: absolute;
  width: min(42vw, 220px);
  height: min(42vw, 220px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: theme-ring 1.2s linear infinite;
}
.theme-portal__cube {
  position: relative;
  width: 56px;
  height: 56px;
  transform-style: preserve-3d;
  animation: theme-cube-spin 1.4s ease-in-out infinite;
}
.theme-portal__cube-face {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
#theme-portal[data-target="grbnk"] .theme-portal__cube-face--top {
  background: rgba(196, 210, 232, 0.45);
  transform: rotateX(90deg) translateZ(28px);
}
#theme-portal[data-target="grbnk"] .theme-portal__cube-face--left {
  background: rgba(91, 120, 160, 0.55);
  transform: rotateY(-90deg) translateZ(28px);
}
#theme-portal[data-target="grbnk"] .theme-portal__cube-face--right {
  background: rgba(58, 78, 110, 0.65);
  transform: translateZ(28px);
}
#theme-portal[data-target="studio"] .theme-portal__cube-face--top {
  background: rgba(196, 181, 253, 0.5);
  transform: rotateX(90deg) translateZ(28px);
}
#theme-portal[data-target="studio"] .theme-portal__cube-face--left {
  background: rgba(124, 58, 237, 0.55);
  transform: rotateY(-90deg) translateZ(28px);
}
#theme-portal[data-target="studio"] .theme-portal__cube-face--right {
  background: rgba(91, 33, 182, 0.65);
  transform: translateZ(28px);
}
.theme-portal__label {
  margin: 72px 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f4f4f5;
}
.theme-portal__sub {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
}

@keyframes theme-wipe-in {
  from { transform: translateX(110%) skewX(-8deg); }
  to { transform: translateX(0) skewX(-8deg); }
}
@keyframes theme-wipe-out {
  from { transform: translateX(0) skewX(-8deg); }
  to { transform: translateX(-115%) skewX(-8deg); }
}
@keyframes theme-scan {
  0% { transform: translateY(-120%); opacity: 0; }
  35% { opacity: 0.55; }
  100% { transform: translateY(120%); opacity: 0; }
}
@keyframes theme-core-in {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes theme-core-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.04); }
}
@keyframes theme-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes theme-cube-spin {
  0%, 100% { transform: rotateX(-18deg) rotateY(0deg); }
  50% { transform: rotateX(-18deg) rotateY(180deg); }
}

.theme-portal-burst {
  position: fixed;
  inset: 0;
  z-index: 205;
  pointer-events: none;
  overflow: visible;
}
.theme-portal__logo-fly:not(.theme-portal__logo-fly--scroll) {
  position: fixed;
  width: var(--lg-size, 36px);
  height: var(--lg-size, 36px);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  animation: theme-logo-fly var(--lg-dur, 900ms) var(--lg-delay, 0ms) cubic-bezier(0.12, 0.88, 0.28, 1) forwards;
}
.theme-portal__logo-fly--scroll {
  position: fixed;
  width: var(--lg-size, 36px);
  height: var(--lg-size, 36px);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.theme-portal__logo-fly img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.45));
}
#theme-portal-burst[data-target="grbnk"] .theme-portal__logo-fly img,
.theme-portal-burst[data-target="grbnk"] .theme-portal__logo-fly img {
  filter: drop-shadow(0 0 16px rgba(139, 157, 200, 0.75));
}
#theme-portal-burst[data-target="studio"] .theme-portal__logo-fly img,
.theme-portal-burst[data-target="studio"] .theme-portal__logo-fly img {
  filter: drop-shadow(0 0 16px rgba(167, 139, 250, 0.75));
}
@keyframes theme-logo-fly {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.12) rotate(0deg);
  }
  8% { opacity: 1; }
  55% { opacity: 0.85; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--lg-dx)), calc(-50% + var(--lg-dy)))
      scale(1.05)
      rotate(var(--lg-rot));
  }
}

@media (prefers-reduced-motion: reduce) {
  #theme-portal { display: none !important; }
  html.is-portal-pending main,
  html.is-portal-pending #site-chrome {
    visibility: visible !important;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-i, 0) * 80ms);
}
.reveal-stagger > *.is-visible { opacity: 1; transform: translateY(0); }

.hero-split {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: 16px 0 48px;
  text-align: left;
}
.hero-split h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
  margin: 12px 0;
  letter-spacing: -0.03em;
}
.hero-split__lead { color: var(--muted); line-height: 1.65; margin: 0 0 24px; max-width: 36em; }

.media-frame {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.media-frame__corner {
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.85;
  pointer-events: none;
}
.media-frame__corner--tl { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.media-frame__corner--tr { top: 14px; right: 14px; border-width: 2px 2px 0 0; }
.media-frame__corner--bl { bottom: 14px; left: 14px; border-width: 0 0 2px 2px; }
.media-frame__corner--br { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; }
.media-frame__visual {
  width: 62%;
  position: relative;
  transition: transform 0.15s ease-out;
}
.media-frame__ring {
  position: absolute; inset: -18%;
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 50%;
  animation: spin 22s linear infinite;
}
.media-frame__core {
  position: relative;
  z-index: 1;
  padding: 28%;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(167,139,250,0.18), transparent);
  border: 1px solid rgba(255,255,255,0.08);
}
.media-frame__core img { width: 100%; display: block; }
.media-frame__tag {
  position: absolute;
  left: 16px; bottom: 16px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #0a0a0c;
  text-decoration: none;
  font-weight: 600;
}

.spec-strip {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  margin-bottom: 40px;
  overflow: hidden;
}
.spec-strip__label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
  flex-shrink: 0;
}
.spec-ticker {
  overflow: hidden;
  min-width: 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.spec-ticker__track {
  display: flex;
  width: max-content;
  animation: spec-ticker 42s linear infinite;
}
.spec-ticker__group {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-shrink: 0;
}
.spec-ticker__group li {
  position: relative;
  padding: 0 1.35rem 0 0;
  margin-right: 1.35rem;
  font-size: 0.88rem;
  white-space: nowrap;
  color: var(--text);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.spec-ticker__group li:hover {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(167, 139, 250, 0.5);
}
.spec-ticker__group li::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  opacity: 0.85;
}
@keyframes spec-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .spec-ticker__track { animation: none; flex-wrap: wrap; width: auto; }
  .spec-ticker__group[aria-hidden="true"] { display: none; }
  .spec-ticker__group { flex-wrap: wrap; gap: 8px 0; }
  .spec-ticker { mask-image: none; }
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Directions carousel */
.directions-carousel {
  position: relative;
  outline: none;
}
.directions-carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius);
}
.directions-carousel__track.directions-grid,
.directions-grid.directions-carousel__track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.directions-carousel__track .direction-card {
  flex: 0 0 auto;
  box-sizing: border-box;
  margin: 0;
  transform: none;
}
.directions-carousel__track .direction-card:hover {
  transform: translateY(-4px);
}
.directions-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}
.directions-carousel__btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s, transform 0.2s;
}
.directions-carousel__btn:hover:not(:disabled) {
  border-color: rgba(167, 139, 250, 0.5);
  background: var(--accent-dim);
  transform: translateY(-1px);
}
.directions-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.directions-carousel__counter {
  min-width: 64px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.directions-carousel__sep {
  margin: 0 4px;
  opacity: 0.5;
}
@media (prefers-reduced-motion: reduce) {
  .directions-carousel__track.directions-grid {
    transition: none;
  }
}

/* Directions + portfolio teasers */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.directions-foot {
  margin: 20px 0 0;
  text-align: center;
}
.direction-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(155deg, rgba(167, 139, 250, 0.06) 0%, transparent 38%),
    var(--bg-card);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.direction-card:hover {
  border-color: rgba(167, 139, 250, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}
.direction-card--grbnk {
  background:
    linear-gradient(155deg, rgba(139, 157, 200, 0.09) 0%, transparent 38%),
    var(--bg-card);
}
.direction-card--grbnk:hover { border-color: rgba(139, 157, 200, 0.5); }
.direction-card__corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(167, 139, 250, 0.5);
  border-style: solid;
  pointer-events: none;
}
.direction-card--grbnk .direction-card__corner { border-color: rgba(139, 157, 200, 0.5); }
.direction-card__corner--tl { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.direction-card__corner--tr { top: 8px; right: 8px; border-width: 1px 1px 0 0; }
.direction-card__corner--bl { bottom: 8px; left: 8px; border-width: 0 0 1px 1px; }
.direction-card__corner--br { right: 8px; bottom: 8px; border-width: 0 1px 1px 0; }
.direction-card__head { margin-bottom: 14px; }
.direction-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.direction-card__label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.direction-card__code {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 7px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 4px;
  white-space: nowrap;
}
.direction-card--grbnk .direction-card__code {
  color: #a8b8d8;
  border-color: rgba(139, 157, 200, 0.4);
}
.direction-card__title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.direction-card__lead {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

.direction-spec {
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
}
.direction-spec__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.direction-spec__row:last-child { border-bottom: none; }
.direction-spec__row dt {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.direction-spec__row dd {
  margin: 0;
  font-size: 0.76rem;
  text-align: right;
  color: var(--text);
}

.direction-bars {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}
.direction-spec-bar {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.direction-spec-bar__label { color: var(--muted); }
.direction-spec-bar__track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.direction-spec-bar__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.direction-spec-bar__fill--grbnk {
  background: linear-gradient(90deg, #8b9dc8, rgba(139, 157, 200, 0.4));
}
.direction-card.is-visible .direction-spec-bar__fill { width: var(--spec-w, 60%); }
.direction-spec-bar__value {
  color: var(--accent);
  white-space: nowrap;
  font-size: 0.52rem;
}
.direction-card--grbnk .direction-spec-bar__value { color: #a8b8d8; }

.direction-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.direction-tags li {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.direction-card--grbnk .direction-tags li {
  border-color: rgba(139, 157, 200, 0.2);
  color: #9aaac4;
}

.direction-card__case {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.direction-card__case-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.direction-card__link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.direction-card--grbnk .direction-card__link { color: #a8b8d8; }
.direction-card__link:hover { text-decoration: underline; }
.direction-card__works,
.direction-card__case .direction-work { margin-top: 0; }
.direction-work {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.direction-work:hover {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.08);
}
.direction-card--grbnk .direction-work:hover {
  border-color: rgba(139, 157, 200, 0.45);
  background: rgba(139, 157, 200, 0.08);
}
.direction-work__thumb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.28), rgba(15, 17, 24, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  flex-shrink: 0;
}
.direction-work__thumb img,
.direction-work__thumb .direction-work__logo {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.direction-work__thumb .direction-work__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  opacity: 0.95;
}
.direction-work__thumb .direction-work__icon svg {
  width: 22px;
  height: 22px;
}
.direction-work__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.direction-work__body strong {
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.direction-work__tag {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.direction-card--grbnk .direction-work__tag { color: #8b9dc8; }
.direction-work__meta {
  font-size: 0.72rem;
  color: var(--muted);
}
.direction-work__arrow {
  font-size: 0.9rem;
  color: var(--muted);
  transition: transform 0.2s, color 0.2s;
}
.direction-work:hover .direction-work__arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.tech-block {
  padding: 20px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.tech-block--link {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.tech-block--link:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: var(--accent-dim);
}
.tech-block--grbnk:hover { border-color: #8b9dc8; }
.tech-block__go {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.tech-block--grbnk .tech-block__go { color: #a8b8d8; }

.theme-switch {
  text-align: right;
  margin-bottom: 8px;
  min-width: 140px;
  transition: opacity 0.25s;
}
.theme-switch__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.theme-switch__sub {
  display: block;
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 2px;
}
body[data-theme="grbnk"] .theme-switch__label { color: #c7d2e8; }
body[data-theme="grbnk"] #theme-cta-switch { border-color: rgba(139,157,200,0.35); }
body[data-theme="grbnk"] .spec-bar__fill--grbnk,
body[data-theme="grbnk"] .tech-diagram--grbnk .tech-diagram__bar {
  background: linear-gradient(180deg, #8b9dc8, rgba(139,157,200,0.35));
}

.corner--br { flex-direction: column; align-items: flex-end; }
.tech-block__label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  min-height: 2.8em;
}
.tech-diagram {
  height: 100px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}
.tech-diagram__bar {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--accent), rgba(124,58,237,0.35));
  transform-origin: bottom;
  transform: scaleY(0.35);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.tech-block.is-visible .tech-diagram__bar:nth-child(1) { transform: scaleY(0.55); transition-delay: 0ms; }
.tech-block.is-visible .tech-diagram__bar:nth-child(2) { transform: scaleY(0.78); transition-delay: 80ms; }
.tech-block.is-visible .tech-diagram__bar:nth-child(3) { transform: scaleY(1); transition-delay: 160ms; }
.tech-block p { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }

.spec-bar {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.spec-bar__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.spec-bar__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.spec-bar.is-visible .spec-bar__fill { width: var(--spec-w, 60%); }
.spec-bar__value { color: var(--accent); white-space: nowrap; }

.card { transition: transform 0.25s ease, background 0.2s, border-color 0.2s; }
.card:hover { transform: translateY(-4px); }

@media (max-width: 900px) {
  .hero-split, .spec-strip, .tech-grid { grid-template-columns: 1fr; }
  .hero-split { text-align: center; }
  .hero-split__actions { justify-content: center; }
  .quick-grid, .grbnk-hero, .contact-grid, .form-row { grid-template-columns: 1fr; }
  main { padding: 80px 16px 128px; }
}

.mobile-dock {
  display: none;
}

@media (max-width: 720px) {
  .corner--bl,
  .corner--br {
    display: none !important;
  }
  .mobile-dock {
    display: flex;
    position: fixed;
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 0;
    gap: 6px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    background: rgba(6, 9, 18, 0.92);
    border-top: 1px solid rgba(139, 157, 200, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-sizing: border-box;
  }
  .mobile-dock__link,
  .mobile-dock__cta {
    flex: 1 1 0;
    text-align: center;
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    padding: 10px 6px;
    border-radius: 999px;
    border: 1px solid rgba(139, 157, 200, 0.2);
    background: rgba(8, 12, 22, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-dock__cta {
    color: var(--bg);
    background: var(--text);
    border-color: var(--text);
    font-weight: 600;
  }
  body[data-theme="grbnk"] .mobile-dock__cta {
    background: #c7d2e8;
    border-color: #c7d2e8;
    color: #0b1020;
  }
  main {
    padding-bottom: max(96px, calc(76px + env(safe-area-inset-bottom))) !important;
  }
}

@media (max-width: 640px) {
  .corner {
    padding: 10px 12px;
    box-sizing: border-box;
  }
  .corner--tr {
    padding-top: max(10px, env(safe-area-inset-top));
  }
}
