/* ═══════════════════════════════════════════════════════
   aurora-bento.css — тема Bento Grid + Aurora для myaidev.ru
   Загружается ПОСЛЕ main.css — переопределяет нужное
   ═══════════════════════════════════════════════════════ */

/* ─── AURORA VARIABLES ─── */
:root {
  --ab-bg: #080c14;
  --ab-surface: rgba(255,255,255,0.05);
  --ab-border: rgba(255,255,255,0.1);
  --ab-border-hover: rgba(255,255,255,0.18);
  --ab-text: #e8f0fa;
  --ab-muted: rgba(232,240,250,0.5);
  --ab-cyan: #00d4ff;
  --ab-purple: #a855f7;
  --ab-green: #10b981;
  --ab-amber: #f59e0b;
  --ab-blue: #3b82f6;
  --ab-teal: #06b6d4;
  --ab-rose: #f43f5e;
  --ab-grad: linear-gradient(135deg, #00d4ff, #a855f7);
}

/* ─── BODY OVERRIDE ─── */
body {
  background: var(--ab-bg);
  color: var(--ab-text);
}

/* ─── AURORA FIXED BACKGROUND ─── */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #060a1a, #0f0826, #071528, #0c0620, #08151f, #0d0620);
  background-size: 400% 400%;
  animation: auroraShift 20s ease infinite;
}
@keyframes auroraShift {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 100% 50%; }
  50%  { background-position: 50% 0%; }
  75%  { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}
.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  animation: orbFloat 22s ease-in-out infinite;
}
.ao1 { width: 800px; height: 400px; background: rgba(0,212,255,.1);    top: -150px; left: -200px; animation-delay: 0s; }
.ao2 { width: 600px; height: 600px; background: rgba(168,85,247,.09);  bottom: -200px; right: -100px; animation-delay: -9s; }
.ao3 { width: 500px; height: 300px; background: rgba(16,185,129,.07);  top: 35%; left: 20%; animation-delay: -4s; }
.ao4 { width: 300px; height: 300px; background: rgba(245,158,11,.06);  bottom: 20%; right: 30%; animation-delay: -14s; }
@keyframes orbFloat {
  0%,100% { transform: translate(0,0); }
  33%     { transform: translate(40px,-50px); }
  66%     { transform: translate(-30px, 35px); }
}

/* ─── MAIN LAYOUT WRAPPER ─── */
.ab-main {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height, 68px);
}

/* ─── NAVIGATION OVERRIDE ─── */
.site-nav {
  background: rgba(8,12,20,0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.site-nav.scrolled {
  background: rgba(8,12,20,0.85);
  border-bottom-color: rgba(255,255,255,0.09);
}
.nav-brand { color: var(--ab-text) !important; }
.nav-link   { color: rgba(232,240,250,0.55) !important; }
.nav-link:hover, .nav-link.active { color: var(--ab-cyan) !important; }
.nav-cta {
  background: var(--ab-grad) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.nav-hamburger span { background: var(--ab-text) !important; }

/* ─── BENTO GRID ─── */
.bento-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.75rem 3%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

/* ─── GLASS CELL BASE ─── */
.bcell {
  border-radius: 20px;
  padding: 1.75rem;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  transition: border-color 0.3s, transform 0.3s;
}
.bcell:hover {
  border-color: var(--ab-border-hover);
}

/* ─── HERO CELL — 8col × 2row ─── */
.bc-hero {
  grid-column: span 8;
  grid-row: span 2;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(135deg, rgba(0,212,255,0.07), rgba(168,85,247,0.05));
}
.bc-hero-deco {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 5rem;
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--ab-cyan);
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  width: fit-content;
}
.bc-hero h1 {
  font-size: clamp(2.2rem,4.5vw,3.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ab-text);
  margin-bottom: 1rem;
}
.bc-hero h1 .gradient-text {
  background: var(--ab-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bc-hero .hero-typing {
  font-size: 1rem;
  color: var(--ab-muted);
  margin-bottom: 1.75rem;
  min-height: 1.6em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bc-hero .hero-typing-prefix { color: rgba(232,240,250,0.35); }
#typing-target {
  color: var(--ab-cyan);
  border-right-color: var(--ab-cyan);
}
.bc-hero .hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ─── STAT CELLS — 2col ─── */
.bc-stat {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 190px;
}
.bc-stat .stat-num-big {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.bc-stat .stat-lbl-big {
  font-size: 0.72rem;
  color: var(--ab-muted);
  margin-top: 0.35rem;
}

/* ─── FEATURED SERVICE CELL — 8col ─── */
.bc-featured {
  grid-column: span 8;
  min-height: 200px;
}
.bc-featured .feat-emoji  { font-size: 2rem; margin-bottom: 1rem; display: block; }
.bc-featured .feat-title  { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--ab-text); }
.bc-featured .feat-sub    { font-size: 0.85rem; color: var(--ab-muted); line-height: 1.6; margin-bottom: 1rem; max-width: 600px; }
.bc-featured .feat-list   { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
.bc-featured .feat-list li { font-size: 0.8rem; color: rgba(232,240,250,0.65); display: flex; gap: 0.4rem; }
.bc-featured .feat-list li::before { content: '✓'; font-weight: 700; }
.bc-featured .feat-price  { font-size: 1rem; font-weight: 700; }
.bc-featured .feat-btns   { display: flex; gap: 0.65rem; margin-top: 1.1rem; flex-wrap: wrap; }

/* ─── INDUSTRY / TAG CELL — 4col ─── */
.bc-industry {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bc-industry h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--ab-text); }
.bc-industry .ind-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.bc-industry .ind-tag {
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  font-size: 0.75rem;
  color: var(--ab-muted);
}

/* ─── SERVICES ROW — full 12col, inner grid ─── */
.bc-services-section {
  grid-column: span 12;
}
.bc-services-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}
.bc-services-header h2 { font-size: 1.3rem; font-weight: 800; color: var(--ab-text); letter-spacing: -0.02em; }
.bc-services-header a  { font-size: 0.82rem; color: var(--ab-cyan); text-decoration: none; }

/* ─── GLASS SERVICE CARDS ─── */
.glass-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.glass-card {
  border-radius: 18px;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-top: 2px solid var(--card-accent, rgba(0,212,255,0.4));
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, var(--card-accent-bg, rgba(0,212,255,0.05)) 0%, transparent 60%);
  pointer-events: none;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
  border-color: var(--card-accent, rgba(0,212,255,0.5));
  border-top-color: var(--card-accent, var(--ab-cyan));
}

.gc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.gc-emoji-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.gc-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--card-accent, var(--ab-cyan));
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  white-space: nowrap;
}
.gc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ab-text);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.gc-sub {
  font-size: 0.82rem;
  color: var(--ab-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.gc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}
.gc-features li {
  font-size: 0.79rem;
  color: rgba(232,240,250,0.55);
  display: flex;
  gap: 0.5rem;
}
.gc-features li::before {
  content: '→';
  color: var(--card-accent, var(--ab-cyan));
  flex-shrink: 0;
  font-size: 0.75rem;
}
.gc-footer {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ─── CASE CELLS — 4col ─── */
.bc-case {
  grid-column: span 4;
}
.bc-case .case-badge-ab {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  font-size: 0.68rem;
  color: var(--ab-muted);
  margin-bottom: 0.85rem;
}
.bc-case .case-num-ab {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ab-cyan);
  line-height: 1;
}
.bc-case .case-lbl-ab {
  font-size: 0.72rem;
  color: var(--ab-muted);
  margin: 0.25rem 0 0.65rem;
}
.bc-case .case-text-ab {
  font-size: 0.8rem;
  color: rgba(232,240,250,0.55);
  line-height: 1.55;
}
.bc-case .case-stack-ab {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.bc-case .case-stack-ab span {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  font-size: 0.68rem;
  color: rgba(232,240,250,0.4);
}

/* ─── CTA CELL — 12col ─── */
.bc-cta {
  grid-column: span 12;
  text-align: center;
  padding: 2.75rem 2rem;
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(168,85,247,0.06));
  border-color: rgba(0,212,255,0.15);
}
.bc-cta h2 {
  font-size: clamp(1.6rem,3.5vw,2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ab-text);
  margin-bottom: 0.65rem;
}
.bc-cta p {
  color: var(--ab-muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}
.bc-cta .cta-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn-ab-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  background: var(--ab-grad);
  color: #fff;
  font-size: 0.9rem; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer;
}
.btn-ab-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,212,255,0.35);
}
.btn-ab-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--ab-text);
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn-ab-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.btn-ab-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* ─── SECTIONS OVERRIDE ─── */
.section-light { background: transparent !important; }
.section       { background: transparent !important; }
.stats-strip   { background: transparent !important; }
.results-strip { background: transparent !important; }
.cta-section   {
  background: transparent !important;
  position: relative; z-index: 1;
}
.cta-section h2, .cta-section p { color: var(--ab-text) !important; }

/* ─── INDUSTRIES CAROUSEL OVERRIDE ─── */
.carousel-wrap { background: transparent; }
.industry-card {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  color: var(--ab-text) !important;
  border-radius: 16px !important;
}
.industry-name { color: var(--ab-text) !important; }
.industry-example { color: var(--ab-muted) !important; }

/* ─── SERVICES PAGE: page-hero OVERRIDE ─── */
.page-hero {
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(168,85,247,0.05)) !important;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative; z-index: 1;
}
.page-hero h1, .page-hero p, .page-hero .section-label { color: var(--ab-text) !important; }
.page-hero .section-subtitle { color: var(--ab-muted) !important; }

/* ─── FILTER BUTTONS OVERRIDE ─── */
.filter-btn {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: rgba(232,240,250,0.6) !important;
  border-radius: 8px !important;
}
.filter-btn.active, .filter-btn:hover {
  background: rgba(0,212,255,0.1) !important;
  border-color: rgba(0,212,255,0.3) !important;
  color: var(--ab-cyan) !important;
}

/* ─── TYPOGRAPHY OVERRIDES ─── */
.section-label { color: var(--ab-cyan) !important; }
.section-title { color: var(--ab-text) !important; }
.section-subtitle { color: var(--ab-muted) !important; }
h2, h3 { color: var(--ab-text); }
p { color: var(--ab-muted); }

/* ─── STEPS CARDS OVERRIDE ─── */
.step-card {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  border-radius: 18px !important;
}
.step-card h3 { color: var(--ab-text) !important; }
.step-card p  { color: var(--ab-muted) !important; }
.step-num     { color: var(--ab-cyan) !important; }
.step-icon    { background: rgba(0,212,255,0.1) !important; border-color: rgba(0,212,255,0.2) !important; }

/* ─── FOOTER OVERRIDE ─── */
.site-footer {
  background: rgba(8,12,20,0.9) !important;
  border-top: 1px solid rgba(255,255,255,0.07);
  position: relative; z-index: 1;
}
.footer-brand, .site-footer, .footer-links a, .footer-stack .stack-tag {
  color: var(--ab-text) !important;
}
.footer-slogan { color: var(--ab-muted) !important; }
.footer-bottom { border-top-color: rgba(255,255,255,0.07) !important; color: var(--ab-muted) !important; }
.stack-tag {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  color: var(--ab-muted) !important;
}

/* ─── MOBILE MENU OVERRIDE ─── */
.nav-mobile {
  background: rgba(8,12,20,0.97) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-mobile .nav-link { color: var(--ab-text) !important; }
.nav-mobile .nav-cta  { background: var(--ab-grad) !important; color: #fff !important; }

/* ─── SERVICES PAGE: services-grid OVERRIDE ─── */
.services-container {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto; padding: 0 3% 4rem;
}
.ab-filter-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  padding: 1.25rem 0; margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ab-filter-bar span {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ab-muted); align-self: center; margin-right: 0.25rem;
}

/* ─── CARD-GRID OVERRIDE on services page ─── */
#services-all-grid.glass-cards-grid { gap: 1rem; }

/* ─── CHAT WIDGET POSITION ─── */
#portfolio-chat-root { position: relative; z-index: 200; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .bc-hero      { grid-column: span 12; min-height: 300px; }
  .bc-stat      { grid-column: span 3; }
  .bc-featured  { grid-column: span 12; }
  .bc-industry  { grid-column: span 12; }
  .bc-case      { grid-column: span 6; }
}
@media (max-width: 720px) {
  .bento-grid   { gap: 0.7rem; padding: 1rem 3%; }
  .bc-stat      { grid-column: span 6; min-height: 140px; }
  .bc-stat .stat-num-big { font-size: 1.8rem; }
  .bc-case      { grid-column: span 12; }
  .bc-cta       { padding: 2rem 1.25rem; }
}
@media (max-width: 480px) {
  .bc-stat { grid-column: span 6; }
}
