.page-prototypes {
  --glass-blur: 10px;
  --glass-blur-lg: 14px;
  --glass-radius: 16px;
  --glass-radius-lg: 20px;
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-border-soft: rgba(255, 255, 255, 0.1);
  --glass-bg-light: rgba(255, 255, 255, 0.08);
  --glass-bg-dark: rgba(11, 13, 16, 0.62);
  --text-primary-light: rgba(20, 20, 30, 0.9);
  --text-secondary-light: rgba(20, 20, 30, 0.65);
  --text-primary-dark: rgba(255, 255, 255, 0.92);
  --text-secondary-dark: rgba(255, 255, 255, 0.68);
  --ink: var(--text-primary-dark);
  --muted: var(--text-secondary-dark);
  background:
    radial-gradient(circle at 12% 12%, rgba(102, 227, 255, 0.1), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.06), transparent 24%),
    linear-gradient(180deg, #071016 0%, #0b0d10 36%, #0d1218 100%);
}

.page-prototypes::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 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: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 92%);
  opacity: 0.14;
}

.page-prototypes .header {
  border-bottom-color: transparent;
  background: transparent;
  backdrop-filter: none;
}

.page-prototypes .hero-actions {
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.page-prototypes .hero-actions .btn {
  min-height: 50px;
  padding: 0 20px;
  border-radius: var(--glass-radius);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.page-prototypes .hero-actions .btn-primary {
  box-shadow:
    0 6px 20px rgba(79, 140, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.page-prototypes .hero-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.gateway-hero {
  padding: 110px 0 44px;
}

.gateway-hero-grid,
.gateway-contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.gateway-hero-copy,
.gateway-hero-panel,
.gateway-kpi,
.prototype-card,
.prototype-step,
.gateway-contact-card,
.gateway-mini-card,
.gateway-process-shell,
.gateway-process-intro,
.gateway-process-note {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  background: linear-gradient(180deg, rgba(20, 20, 30, 0.74), rgba(20, 20, 30, 0.58));
  backdrop-filter: blur(var(--glass-blur)) saturate(1.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.gateway-hero-copy::before,
.gateway-hero-panel::before,
.prototype-card::before,
.gateway-contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(102, 227, 255, 0.12), transparent 34%);
}

.gateway-hero-copy {
  min-height: 100%;
  padding: 30px;
}

.gateway-hero-copy h1 {
  max-width: 11ch;
}

.gateway-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(102, 227, 255, 0.08);
  border: 1px solid rgba(102, 227, 255, 0.16);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gateway-copy-note {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.03rem;
}

.gateway-hero-panel {
  display: grid;
  gap: 18px;
}

.gateway-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gateway-mini-card {
  min-height: 142px;
  padding: 18px;
  border-radius: var(--glass-radius);
  border: 1px solid var(--glass-border-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gateway-mini-card span,
.prototype-meta,
.prototype-preview span,
.prototype-tag,
.prototype-step strong,
.gateway-contact-note strong {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gateway-mini-card span,
.prototype-preview span,
.prototype-step strong,
.gateway-contact-note strong {
  color: var(--accent);
}

.gateway-mini-card strong,
.prototype-preview strong,
.gateway-kpi strong,
.prototype-card h3,
.gateway-contact-card h3 {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.18rem;
  line-height: 1.18;
}

.gateway-mini-card p,
.prototype-card p,
.prototype-step p,
.gateway-contact-card p {
  margin: 0;
  color: var(--muted);
}

.gateway-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.gateway-kpi {
  padding: 18px;
  border-radius: var(--glass-radius);
}

.gateway-kpi strong {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.gateway-kpi p {
  margin: 0;
  color: var(--muted);
}

.gateway-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.gateway-section-head > :last-child {
  max-width: 46ch;
}

.prototype-grid,
.prototype-steps {
  display: grid;
  gap: 20px;
}

.prototype-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: stretch;
}

.prototype-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}

.prototype-preview {
  position: relative;
  min-height: 168px;
  padding: 18px;
  border-radius: var(--glass-radius);
  overflow: hidden;
  border: 1px solid var(--glass-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(8, 16, 22, 0.28)),
    linear-gradient(180deg, rgba(8, 16, 22, 0.08), rgba(8, 16, 22, 0.22));
}

.prototype-preview::before,
.prototype-preview::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.prototype-preview::before {
  width: 92px;
  height: 92px;
  right: -24px;
  top: -18px;
  background: rgba(255, 255, 255, 0.1);
}

.prototype-preview::after {
  width: 132px;
  height: 132px;
  left: -34px;
  bottom: -58px;
  background: rgba(5, 16, 22, 0.18);
}

.prototype-preview--dentistry {
  background-color: #0f766e;
}

.prototype-preview--construction {
  background-color: #8b5e1a;
}

.prototype-preview--furniture {
  background-color: #704b37;
}

.prototype-preview--legal {
  background-color: #1f3b63;
}

.prototype-preview--autoservice {
  background-color: #324252;
}

.prototype-preview--metal {
  background-color: #3f4f65;
}

.prototype-preview--logistics {
  background-color: #315472;
}

.prototype-preview--education {
  background-color: #3d4e8c;
}

.prototype-preview--glass {
  background-color: #3b6f87;
}

.prototype-preview strong,
.prototype-preview span {
  position: relative;
  z-index: 1;
}

.prototype-meta {
  color: rgba(255, 255, 255, 0.7);
}

.prototype-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prototype-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--glass-radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.prototype-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.gateway-process-shell {
  padding: 34px;
  border-radius: var(--glass-radius-lg);
}

.gateway-section-head-process {
  margin-bottom: 32px;
}

.gateway-process-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 22px;
  align-items: start;
}

.gateway-process-intro {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: var(--glass-radius);
}

.gateway-process-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(102, 227, 255, 0.16);
  background: rgba(102, 227, 255, 0.08);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gateway-process-intro h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.08;
}

.gateway-process-intro p {
  margin: 0;
  color: var(--muted);
}

.gateway-process-notes {
  display: grid;
  gap: 12px;
}

.gateway-process-note {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--glass-radius);
  border: 1px solid var(--glass-border-soft);
  background: rgba(255, 255, 255, 0.05);
}

.gateway-process-note strong,
.gateway-process-note span {
  display: block;
}

.gateway-process-note strong {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gateway-process-note span {
  color: var(--muted);
  line-height: 1.5;
}

.prototype-steps {
  position: relative;
  grid-template-columns: 1fr;
  gap: 18px;
}

.prototype-steps::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 32px;
  bottom: 32px;
  width: 1px;
  background: linear-gradient(180deg, rgba(102, 227, 255, 0.3), rgba(102, 227, 255, 0.04));
}

.prototype-step {
  position: relative;
  margin-left: 42px;
  padding: 22px 24px 24px 30px;
  border-radius: var(--glass-radius);
}

.prototype-step::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 34px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(102, 227, 255, 0.08), 0 0 18px rgba(102, 227, 255, 0.24);
}

.prototype-step--primary {
  background:
    linear-gradient(180deg, rgba(102, 227, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(20, 20, 30, 0.74), rgba(20, 20, 30, 0.58));
}

.prototype-step--offset {
  margin-left: 90px;
}

.prototype-step-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.prototype-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--glass-radius);
  border: 1px solid rgba(102, 227, 255, 0.2);
  background: rgba(102, 227, 255, 0.1);
  color: var(--accent);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}

.prototype-step-label {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prototype-step-title {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.gateway-contact-card {
  display: grid;
  gap: 18px;
}

.gateway-contact-links {
  display: grid;
  gap: 12px;
}

.gateway-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: var(--glass-radius);
  border: 1px solid var(--glass-border-soft);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 700;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.gateway-contact-link:hover,
.gateway-contact-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(102, 227, 255, 0.32);
  background: rgba(102, 227, 255, 0.1);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gateway-contact-link img {
  width: 18px;
  height: 18px;
}

.gateway-contact-note {
  padding: 18px;
  border-radius: var(--glass-radius);
  border: 1px solid rgba(102, 227, 255, 0.14);
  background: rgba(102, 227, 255, 0.08);
}

.gateway-contact-note p {
  margin: 10px 0 0;
}

.page-prototypes .footer {
  padding-top: 10px;
}

@media (max-width: 1120px) {
  .prototype-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .gateway-hero-grid,
  .gateway-contact-grid,
  .prototype-steps,
  .gateway-process-layout {
    grid-template-columns: 1fr;
  }

  .gateway-kpis {
    grid-template-columns: 1fr;
  }

  .gateway-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gateway-section-head > :last-child {
    max-width: none;
  }

  .gateway-process-intro {
    position: static;
  }

  .prototype-step--offset {
    margin-left: 42px;
  }
}

@media (max-width: 760px) {
  .gateway-hero {
    padding-top: calc(env(safe-area-inset-top) + 148px);
  }

  .prototype-grid,
  .gateway-panel-grid {
    grid-template-columns: 1fr;
  }

  .gateway-hero-copy,
  .gateway-hero-panel,
  .prototype-step,
  .gateway-contact-card,
  .gateway-process-shell,
  .gateway-process-intro {
    padding: 20px;
  }

  .prototype-card .btn,
  .gateway-contact-card .btn {
    width: 100%;
    justify-content: center;
  }

  .page-prototypes .hero-actions .btn {
    width: 100%;
  }

  .prototype-step,
  .prototype-step--offset {
    margin-left: 0;
    padding: 20px;
  }

  .prototype-step::before {
    display: none;
  }

  .prototype-steps::before {
    display: none;
  }

  .prototype-step-topline {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 14px;
  }

  .prototype-step-number {
    width: 48px;
    height: 48px;
    font-size: 1.04rem;
  }

  .page-prototypes .hero-actions .btn {
    min-height: 48px;
    padding: 0 18px;
  }
}

@media (max-width: 1240px) {
  .page-prototypes.nav-open {
    background: #0b0d10;
  }

  .page-prototypes.nav-open::before {
    opacity: 0;
  }

  .page-prototypes.nav-open::after {
    content: none;
  }

  .page-prototypes.nav-open .bg-orb {
    display: none;
  }

  .page-prototypes.nav-open .header .nav-wrap {
    position: relative;
    z-index: 1;
  }
}
