/**
 * OMSK360.RU — V2 Impeccable + Taste Responsive Layout & Spatial Bento System
 * Brand Identity: Option 2 «Омский Импульс / Арена» (Omsk Pulse)
 *
 * Enforces:
 * - Impeccable Craft Floor: Themed browser surfaces (::selection, scrollbars, focus-visible, tabular-nums),
 *   full borders (zero one-sided border bars), balanced headings (text-wrap: balance), 65-75ch reading measure.
 * - Design-Taste-Frontend: Visual media frames (.media-frame) on every card with overflow-hidden 1.03x hover zoom
 *   and -2px card lift, zero redundant image captions, equal left/right content edges, pauseable hero reel.
 * - GPT-Taste: Wide 2-3 line H1 hero container with inline visual pills, mathematically gapless Bento grids
 *   (grid-auto-flow: dense), generous section spacing, zero cheap numbered meta-labels.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Themed Browser Surfaces (Impeccable Craft Floor) */
::selection {
  background-color: var(--brand-irtysh-cobalt);
  color: var(--text-on-brand);
}

::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface-elevated);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-surface-elevated);
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 0 calc(var(--mobile-nav-height) + 28px) 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  background-image: var(--bg-hero-mesh);
  background-attachment: fixed;
  overflow-x: hidden;
  caret-color: var(--brand-signal-blue);
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: var(--brand-signal-blue);
  text-decoration: none;
  text-underline-offset: 0.22em;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--brand-arena-orange);
}

h1, h2, h3, h4 {
  margin: 0 0 0.65rem 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.85rem, 3.1vw + 0.9rem, 3.15rem);
  max-width: 26ch;
}

h2 {
  font-size: clamp(1.4rem, 1.9vw + 0.8rem, 2.1rem);
}

h3 {
  font-size: clamp(1.05rem, 0.85vw + 0.82rem, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 0.85rem 0;
  color: var(--text-secondary);
  max-width: 72ch;
}

.tabular-nums {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

/* ==========================================================================
   1. LIVE OMSK PULSE TOP BAR & BESPOKE SVG LOGO HEADER
   ========================================================================== */

.pulse-topbar {
  background-color: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  padding: 0.45rem 0;
}

.pulse-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background-color: var(--brand-arena-orange);
  box-shadow: 0 0 0 3px var(--badge-ad-promoted-glow);
}

.pulse-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 0.6rem 0;
  box-shadow: var(--shadow-float-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--touch-target-min);
  color: var(--text-primary);
}

.brand-logo__img {
  height: 44px;
  width: auto;
  display: block;
}

[data-theme="dark"] .brand-logo__img {
  filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.25));
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: var(--touch-target-min);
  padding: 0 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-link--active {
  background-color: var(--bg-subtle-tint);
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cmdk-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--touch-target-min);
  padding: 0 0.85rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.cmdk-trigger:hover {
  border-color: var(--brand-signal-blue);
  color: var(--text-primary);
}

.cmdk-kbd {
  display: none;
  padding: 0.12rem 0.38rem;
  border-radius: 4px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .cmdk-kbd {
    display: inline-block;
  }
}

/* ==========================================================================
   2. BUTTONS, PILLS & TOUCH TARGETS (>= 44x44px, Step & Press Micro-Motion)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: var(--touch-target-min);
  min-width: var(--touch-target-min);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.18s ease,
              border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--primary {
  background-color: var(--brand-irtysh-cobalt);
  color: var(--text-on-brand);
}

.btn--primary:hover {
  background-color: var(--brand-signal-blue);
  color: var(--text-on-brand);
}

.btn--accent {
  background-color: var(--brand-arena-orange);
  color: var(--text-on-accent);
}

.btn--accent:hover {
  background-color: var(--brand-arena-amber);
  color: var(--text-on-accent);
}

.btn--emerald {
  background-color: var(--brand-cyber-emerald);
  color: var(--text-on-brand);
}

.btn--outline {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn--outline:hover {
  border-color: var(--brand-signal-blue);
  color: var(--brand-signal-blue);
}

.btn--ghost {
  background-color: var(--bg-subtle-tint);
  color: var(--text-primary);
}

/* ==========================================================================
   3. VISUAL MEDIA FRAMES & HOVER PHYSICS (Design-Taste-Frontend Rule 2 & 5)
   ========================================================================== */

.ag-card {
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.22s ease;
}

.ag-card:hover,
.ag-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--brand-signal-blue);
}

.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #090D16;
  border-bottom: 1px solid var(--border-subtle);
}

.media-frame--hero {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.media-frame--compact {
  aspect-ratio: 16 / 9;
}

.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ag-card:hover .media-frame__img,
.ag-card:focus-within .media-frame__img {
  transform: scale(1.03);
}

.media-frame__overlay {
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
}

.media-frame__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  background-color: rgba(9, 13, 22, 0.82);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: var(--text-xs);
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* Inline Visual Pill inside Wide Hero Headline (GPT-Taste Section 3 & 6) */
.hero-inline-visual {
  display: inline-block;
  width: 76px;
  height: 36px;
  vertical-align: middle;
  border-radius: var(--radius-pill);
  background-size: cover;
  background-position: center;
  border: 2px solid var(--brand-signal-blue);
  margin: 0 0.25rem;
  box-shadow: var(--shadow-float-sm);
}

@media (min-width: 768px) {
  .hero-inline-visual {
    width: 104px;
    height: 44px;
  }
}

/* ==========================================================================
   4. AUTOMATION 2: AUTO-CYCLING CINEMA HERO & STORY REEL
   ========================================================================== */

.cinema-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0 2rem 0;
}

@media (min-width: 1024px) {
  .cinema-hero {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    align-items: stretch;
  }
  .cinema-hero__copy {
    grid-column: span 7;
  }
  .cinema-hero__stage {
    grid-column: span 5;
  }
}

.cinema-hero__copy {
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .cinema-hero__copy {
    padding: 2.25rem;
  }
}

.cinema-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #090D16;
  color: #F8FAFC;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  min-height: 360px;
}

.cinema-slide {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  flex: 1;
}

.cinema-slide--active {
  display: flex;
}

.cinema-slide__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #090D16;
}

.cinema-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cinema-slide__body {
  padding: 1.15rem 1.35rem;
  background: linear-gradient(180deg, #0D1526 0%, #090D16 100%);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cinema-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: #070A12;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cinema-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
}

.cinema-tab {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.cinema-tab--active {
  background-color: var(--brand-arena-orange);
}

.cinema-pause-btn {
  min-height: 34px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  background-color: rgba(255, 255, 255, 0.1);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   5. AUTOMATION 1: INTERACTIVE OMSK 5-DISTRICT SVG MAP EXPLORER
   ========================================================================== */

.map-explorer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .map-explorer {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    align-items: center;
  }
  .map-explorer__canvas {
    grid-column: span 7;
  }
  .map-explorer__telemetry {
    grid-column: span 5;
  }
}

.omsk-svg-map-wrap {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: #090D16;
}

.omsk-svg-map-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.omsk-svg-map-wrap path[data-district] {
  cursor: pointer;
  transition: fill 0.22s ease, stroke-width 0.22s ease, transform 0.22s ease;
}

.omsk-svg-map-wrap path[data-district]:hover,
.omsk-svg-map-wrap path[data-district].district-poly--active {
  fill: #2563EB;
  stroke-width: 3.5px;
  stroke-opacity: 1;
}

.telemetry-panel {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

.telemetry-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1rem 0;
}

.telemetry-stat {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.telemetry-stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-irtysh-cobalt);
}

.telemetry-stat__lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   6. OMSK 5-DISTRICT FILTER SPINE & GAPLESS BENTO GRIDS
   ========================================================================== */

.district-spine {
  margin: 1rem 0 1.25rem 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
}

.district-spine__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.pill-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.pill {
  scroll-snap-align: start;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--touch-target-min);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pill:hover {
  border-color: var(--brand-signal-blue);
  color: var(--text-primary);
}

.pill--active {
  background-color: var(--brand-irtysh-cobalt);
  border-color: var(--brand-irtysh-cobalt);
  color: var(--text-on-brand);
}

.pill--active:hover {
  color: var(--text-on-brand);
}

.pill--events.pill--active {
  background-color: var(--brand-arena-orange);
  border-color: var(--brand-arena-orange);
}

.pill--directory.pill--active {
  background-color: var(--brand-cyber-emerald);
  border-color: var(--brand-cyber-emerald);
}

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.search-bar__input {
  flex: 1 1 220px;
  min-height: var(--touch-target-min);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
}

/* Main 12-Column Portal Grid (8-col Main + 4-col Sticky Right Rail) */
.portal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .portal-layout {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
  .portal-layout__main {
    grid-column: span 8;
  }
  .portal-layout__rail {
    grid-column: span 4;
    position: sticky;
    top: 86px;
  }
}

/* Gapless Dense Bento Grids (GPT-Taste Section 4) */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
  gap: 1.15rem;
}

@media (min-width: 768px) {
  .cards-grid--2col {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .cards-grid--3col {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .cards-grid--3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
  }
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 2.5rem 0 1.15rem 0;
}

.section-header--first {
  margin-top: 0;
}

.pillar-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
}

.pillar-tag--directory {
  background-color: var(--pillar-directory-bg);
  color: var(--pillar-directory-accent);
  border: 1px solid var(--pillar-directory-border);
}

.pillar-tag--news {
  background-color: var(--pillar-news-bg);
  color: var(--pillar-news-accent);
  border: 1px solid var(--pillar-news-border);
}

.pillar-tag--events {
  background-color: var(--pillar-events-bg);
  color: var(--pillar-events-accent);
  border: 1px solid var(--pillar-events-border);
}

/* ==========================================================================
   7. DIRECTORY LISTING, NEWS & EVENT CARDS
   ========================================================================== */

.card-body {
  padding: 1.2rem 1.3rem;
}

.card-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  background-color: var(--pillar-directory-bg);
  color: var(--pillar-directory-accent);
  font-weight: 600;
  font-size: var(--text-xs);
}

.price-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target-min);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-weight: 600;
}

.contact-chip:hover {
  border-color: var(--brand-signal-blue);
  color: var(--brand-signal-blue);
}

.contact-chip--phone {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  background-color: var(--brand-irtysh-cobalt);
  color: var(--text-on-brand);
  border-color: var(--brand-irtysh-cobalt);
}

.contact-chip--phone:hover {
  background-color: var(--brand-signal-blue);
  color: var(--text-on-brand);
}

/* ==========================================================================
   8. AUTOMATION 4: INTERACTIVE INVESTOR & ADVERTISER ROI CALCULATOR
   ========================================================================== */

.investor-bento {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-float-lg);
}

@media (min-width: 768px) {
  .investor-bento {
    padding: 2.25rem;
  }
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.35rem 0;
}

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-box {
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

.metric-box__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--brand-irtysh-cobalt);
  margin-bottom: 0.25rem;
}

.metric-box__label {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.metric-box__detail {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0;
}

.roi-calculator {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.75rem 0;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

@media (min-width: 1024px) {
  .roi-calculator {
    grid-template-columns: 7fr 5fr;
    gap: 1.75rem;
    align-items: center;
  }
}

.roi-range {
  width: 100%;
  accent-color: var(--brand-arena-orange);
  cursor: pointer;
  height: 8px;
}

.roi-output-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.roi-stat-card {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.roi-stat-card__val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-arena-orange);
}

/* ==========================================================================
   9. AUTOMATION 3: INSTANT SEARCH & FILTER COMMAND MODAL (Cmd/Ctrl + K)
   ========================================================================== */

.cmdk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background-color: rgba(9, 13, 22, 0.65);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 16px 16px;
}

.cmdk-backdrop--open {
  display: flex;
}

.cmdk-dialog {
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-bot-window);
  overflow: hidden;
}

.cmdk-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cmdk-input {
  flex: 1;
  min-height: 44px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.05rem;
}

.cmdk-input:focus {
  outline: none;
}

.cmdk-results {
  max-height: 55vh;
  overflow-y: auto;
  padding: 0.75rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cmdk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.cmdk-item:hover {
  border-color: var(--brand-signal-blue);
}

/* ==========================================================================
   10. FORMS, VENDOR CABINET, SUPPORT BOTS, MOBILE NAV & FOOTER
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .form-grid--2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: var(--touch-target-min);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
}

.form-input--mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.alert-box {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: var(--text-sm);
  font-weight: 500;
}

.alert-box--error {
  background-color: var(--badge-age-adult-bg);
  color: var(--badge-age-adult-text);
  border: 1px solid var(--badge-age-adult-border);
}

.alert-box--success {
  background-color: var(--pillar-directory-bg);
  color: var(--pillar-directory-accent);
  border: 1px solid var(--pillar-directory-border);
}

.bot-launcher-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 95;
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  background-color: var(--bot-visitor-accent);
  color: var(--text-on-brand);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-float-lg);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .bot-launcher-btn {
    display: inline-flex;
  }
}

.bot-window {
  position: fixed;
  right: 16px;
  bottom: calc(var(--mobile-nav-height) + 12px);
  z-index: 100;
  width: calc(100vw - 32px);
  max-width: 390px;
  max-height: 75vh;
  display: none;
  flex-direction: column;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-bot-window);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .bot-window {
    right: 24px;
    bottom: 84px;
    width: 385px;
    height: 540px;
  }
}

.bot-window--open {
  display: flex;
}

.bot-window__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  background-color: var(--bot-visitor-accent);
  color: var(--text-on-brand);
}

.bot-window--vendor .bot-window__header {
  background-color: var(--bot-vendor-accent);
}

.bot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: var(--bg-surface);
}

.bot-bubble {
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: 1.45;
  white-space: pre-line;
}

.bot-bubble--bot {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  align-self: flex-start;
  max-width: 92%;
}

.bot-bubble--user {
  background-color: var(--bot-visitor-bubble-user);
  color: var(--text-on-brand);
  align-self: flex-end;
  max-width: 85%;
}

.bot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background-color: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
}

.bot-chip-btn {
  min-height: 36px;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
}

.bot-chip-btn:hover {
  border-color: var(--brand-signal-blue);
  color: var(--brand-signal-blue);
}

.bot-input-row {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  height: var(--mobile-nav-height);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  box-shadow: var(--shadow-float-lg);
}

@media (min-width: 1024px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: var(--touch-target-min);
  height: 100%;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.mobile-nav-item--active,
.mobile-nav-item:hover {
  color: var(--brand-signal-blue);
}

.cookie-banner {
  position: fixed;
  left: 16px;
  bottom: calc(var(--mobile-nav-height) + 12px);
  z-index: 92;
  max-width: 520px;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float-lg);
  display: none;
}

@media (min-width: 1024px) {
  .cookie-banner {
    bottom: 20px;
  }
}

.cookie-banner--visible {
  display: block;
}

.site-footer {
  margin-top: 3.5rem;
  padding: 2.5rem 0 2rem 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
  }
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-legal-bar {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
