/**
 * BUSINESS BOX — ЕДИНАЯ ДИЗАЙН-СИСТЕМА (DESIGN SYSTEM TOKENS & SHARED CSS)
 * Строгие правила:
 * 1. Идентичные цвета кнопок и градиентов во всех версиях.
 * 2. Запрет на использование emoji в интерфейсе — только векторные SVG.
 * 3. Единые правила адаптивного скролла (100vh snap при >=1024px и >=750px).
 */

:root {
  --color-cobalt: #2563eb;
  --color-cobalt-hover: #1d4ed8;
  --color-cyan: #06b6d4;
  --color-cyan-hover: #0891b2;
  --color-navy: #0a0f1d;
  --color-slate: #475569;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;
  --color-surface: #ffffff;
  --color-bg: #fafafc;
  --color-surface-container: #e2e8f0;
  --color-surface-container-border: #cbd5e1;
  --color-dark-surface: #080d1a;
  --color-emerald: #059669;
  --color-emerald-hover: #047857;
}

/* === ТЕХНОЛОГИЧЕСКИЙ СВЕТЛЫЙ КОНТЕЙНЕР (СЦЕНАРИЙ 2: SURFACE-CONTAINER) === */
.bg-surface-container {
  background-color: var(--color-surface-container);
}

.border-surface-container {
  border-color: var(--color-surface-container-border);
}

.container-tech-panel {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
}

/* === ТАКТИЛЬНЫЕ ПОЛЗУНКИ (SWISS LIGHT SLIDERS) === */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  height: 8px;
  outline: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

input[type=range]:hover {
  background: #cbd5e1;
  border-color: #94a3b8;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35), 0 0 0 1px rgba(37, 99, 235, 0.15);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.08);
  background: #1d4ed8;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.45), 0 0 0 1px rgba(37, 99, 235, 0.2);
}

input[type=range]::-webkit-slider-thumb:active {
  transform: scale(1.15);
  background: #1e40af;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.55);
}

input[type=range]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35), 0 0 0 1px rgba(37, 99, 235, 0.15);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

input[type=range]::-moz-range-track {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  height: 8px;
}

/* Базовые стили: нативный скроллинг без конфликтов с snap-движком */
html {
  scroll-behavior: auto;
}

body {
  background-color: var(--color-bg);
  color: #0f172a;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 {
  font-family: "Unbounded", "Hanken Grotesk", sans-serif;
  text-wrap: balance;
}

p, .lead, .prose {
  text-wrap: pretty;
}

.snap-section {
  min-height: auto;
  box-sizing: border-box;
}

/* Эластичный скролл-режим (Proximity Snap): свободная кинетическая инерция без заиканий и блокировок.
   Активируется при ширине >=1024px и достаточной высоте (>=800px).
   Секции адаптируются по высоте (min-height: 100dvh; overflow-y: visible;), исключая срезание контента. */
@media (min-width: 1024px) and (min-height: 800px) {
  html {
    scroll-snap-type: y proximity;
  }
  .snap-section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    max-height: none;
    overflow-y: visible;
  }
}

/* === ДОСТУПНОСТЬ (A11Y) И КЛАВИАТУРНЫЙ ФОКУС === */
:focus-visible {
  outline: 2px solid var(--color-cobalt) !important;
  outline-offset: 2px !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-cobalt) !important;
  outline-offset: 2px !important;
}

/* === ПОДДЕРЖКА PREFERS-REDUCED-MOTION === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .flip-card-inner {
    transform: none !important;
    transition: none !important;
  }
  .dock-item {
    transform: none !important;
    transition: none !important;
  }
}

/* === КНОПКИ (BUTTON DESIGN TOKENS) === */

/* Главная конверсионная кнопка: канонический Cyan-Cobalt градиент Business Box */
.btn-gradient,
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-gradient:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-gradient:active,
.btn-primary:active {
  transform: scale(0.98);
}

/* Второстепенная белая кнопка с мягкой границей */
.btn-secondary {
  background-color: #ffffff;
  color: #0a0f1d;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
  transform: translateY(-1px);
  color: #2563eb;
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Акцентная зеленая кнопка (экспресс-аудит / экспресс-расчет) */
.btn-emerald {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
  transform: translateY(-1px);
}

.btn-emerald:active {
  transform: scale(0.98);
}

/* === ГРАДИЕНТНЫЙ ТЕКСТ === */
.text-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === КАРТОЧКИ PRIMORA === */
.primora-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .primora-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 32px -10px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
  }
}

/* === ИНТЕРАКТИВНЫЙ macOS DOCK === */
.dock-item {
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  transform-origin: bottom center;
  will-change: transform;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* === НАВИГАЦИОННАЯ ПАНЕЛЬ И ФОНЫ === */
.glass-nav {
  background: rgba(250, 250, 252, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.hero-grid-bg {
  background-image: 
    radial-gradient(circle at 1.5px 1.5px, #2563eb 2px, transparent 0),
    linear-gradient(to right, rgba(226, 232, 240, 0.7) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.7) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px, 48px 48px;
  background-position: -1px -1px, -1px -1px, -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 58%, transparent 10%, rgba(0, 0, 0, 0.4) 55%, black 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 58%, transparent 10%, rgba(0, 0, 0, 0.4) 55%, black 100%);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* === ЕДИНЫЙ АДАПТИВНЫЙ ПОДВАЛ И СЕКЦИЯ ИНТЕЙКА === */
.section-intake {
  padding-bottom: 0 !important;
}

.site-footer {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  padding-bottom: 5.5rem; /* Запас под мобильную плавающую конверсионную панель */
}

@media (min-width: 640px) {
  .site-footer {
    margin-top: 2.75rem;
    padding-bottom: 5.5rem;
  }
}

@media (min-width: 768px) {
  .site-footer {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    margin-top: auto;
  }
}

/* === UI-СОСТОЯНИЯ ФОРМ И АНТИСПАМ (LOADING, ERROR, HONEYPOT) === */
.btn-spinner {
  display: inline-block;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.input-error {
  border-color: #ef4444 !important;
  background-color: rgba(254, 242, 242, 0.6) !important;
  box-shadow: 0 0 0 1px #ef4444 !important;
}

.input-error-msg {
  color: #ef4444;
  font-size: 0.75rem;
  line-height: 1rem;
  margin-top: 0.25rem;
  display: block;
}

.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* === МОБИЛЬНЫЙ ДОК МЕТРИК: ДВУХСТОРОННИЙ ГРАДИЕНТ, SNAP И ПЛАВНЫЙ СКРОЛЛ === */
.dock-scroll-mask {
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

@media (min-width: 1024px) {
  .dock-scroll-mask {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}

/* === 3D FLIP КАРТОЧКИ КЕЙСОВ (NEO-SWISS 3D CARDS) === */
.flip-card-wrapper {
  background-color: transparent;
  width: 100%;
  min-height: 410px;
  perspective: 1200px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 410px;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  border-radius: 1.5rem;
  cursor: pointer;
}

@media (hover: hover) {
  .flip-card-wrapper:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

.flip-card-inner.is-flipped {
  transform: rotateY(180deg) !important;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 1.5rem;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Front Face (Light Theme) */
.flip-card-front {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  transform: rotateY(0deg) translateZ(1px);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.08);
}

.front-glow-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: 1.5rem;
}

.front-glow-lines::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250%;
  height: 250%;
  transform: translate(-50%, -50%);
  animation: rotate-glow 4.5s linear infinite;
}

.front-glow-lines::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: #ffffff;
  border-radius: calc(1.5rem - 1.5px);
}

/* Back Face (Light Theme with Ambient Glow) */
.flip-card-back {
  background-color: #f8fafc;
  transform: rotateY(180deg) translateZ(1px);
  position: relative;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #cbd5e1;
  box-shadow: 0 20px 36px -8px rgba(15, 23, 42, 0.12);
}

.flip-card-back .blur-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
}

.flip-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

.flip-info-box {
  background: rgba(241, 245, 249, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  padding: 0.75rem 0.875rem;
}

@keyframes rotate-glow {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Legal Card Variations Glows */
.v-legal-corp .front-glow-lines::before {
  background: conic-gradient(from 0deg, transparent 0deg, transparent 180deg, rgba(37, 99, 235, 0.8) 240deg, rgba(6, 182, 212, 0.8) 300deg, transparent 360deg);
}
.v-legal-corp .flip-card-back .blur-bg {
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.25) 0%, rgba(6, 182, 212, 0.15) 100%);
}

.v-legal-debt .front-glow-lines::before {
  background: conic-gradient(from 0deg, transparent 0deg, transparent 180deg, rgba(16, 185, 129, 0.8) 240deg, rgba(5, 150, 105, 0.8) 300deg, transparent 360deg);
}
.v-legal-debt .flip-card-back .blur-bg {
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.15) 100%);
}

.v-legal-creditors .front-glow-lines::before {
  background: conic-gradient(from 0deg, transparent 0deg, transparent 180deg, rgba(245, 158, 11, 0.8) 240deg, rgba(217, 119, 6, 0.8) 300deg, transparent 360deg);
}
.v-legal-creditors .flip-card-back .blur-bg {
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.15) 100%);
}

.v-legal-eng .front-glow-lines::before {
  background: conic-gradient(from 0deg, transparent 0deg, transparent 180deg, rgba(37, 99, 235, 0.8) 240deg, rgba(99, 102, 241, 0.8) 300deg, transparent 360deg);
}
.v-legal-eng .flip-card-back .blur-bg {
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.25) 0%, rgba(99, 102, 241, 0.15) 100%);
}

/* --- Grid Glow Metric Cards (60fps animation) --- */
.grid-glow-card {
  position: relative;
  width: 100%;
  min-height: 180px;
  height: 100%;
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #cbd5e1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
  .grid-glow-card:hover {
    transform: translateY(-2px);
    border-color: #94a3b8;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  }
}

/* Grid lines overlay */
.grid-glow-card::before,
.grid-glow-card::after,
.grid-lines::before,
.grid-lines::after {
  content: '';
  position: absolute;
  background: rgba(15, 23, 42, 0.06);
  z-index: 1;
  pointer-events: none;
}

.grid-glow-card::before {
  top: 28px;
  left: 0;
  right: 0;
  height: 1px;
}

.grid-glow-card::after {
  bottom: 28px;
  left: 0;
  right: 0;
  height: 1px;
}

.grid-lines::before {
  left: 28px;
  top: 0;
  bottom: 0;
  width: 1px;
}

.grid-lines::after {
  right: 28px;
  top: 0;
  bottom: 0;
  width: 1px;
}

/* Glare Effect */
.grid-glow-card .glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: 220px;
  filter: blur(28px);
  transform: translate(-30%, -30%);
  z-index: 0;
  pointer-events: none;
}

/* Travelling Dot */
.grid-glow-card .dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  z-index: 2;
  margin-top: -3px;
  margin-left: -3px;
  animation: moveDotGrid 6s linear infinite;
}

/* Move dot along the inner grid rectangle (28px offset) */
@keyframes moveDotGrid {
  0% {
    top: 28px;
    left: 28px;
  }
  25% {
    top: 28px;
    left: calc(100% - 28px);
  }
  50% {
    top: calc(100% - 28px);
    left: calc(100% - 28px);
  }
  75% {
    top: calc(100% - 28px);
    left: 28px;
  }
  100% {
    top: 28px;
    left: 28px;
  }
}

/* Text Content */
.grid-glow-card .content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 1.25rem;
}

.grid-glow-card .content h1 {
  font-size: 3.25rem;
  margin: 0;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .grid-glow-card .content h1 {
    font-size: 3.75rem;
  }
}

.grid-glow-card .content p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Variations */
/* V-Silver */
.v-silver .glare {
  background: radial-gradient(circle, rgba(15, 23, 42, 0.08) 0%, transparent 60%);
}

.v-silver .dot {
  background: #0f172a;
  box-shadow: 0 0 10px 2px rgba(15, 23, 42, 0.4);
}

.v-silver .content h1 {
  background: linear-gradient(180deg, #0f172a 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* V-Neon (Cobalt/Cyan) */
.v-neon .glare {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
}

.v-neon .dot {
  background: #2563eb;
  box-shadow: 0 0 12px 3px rgba(37, 99, 235, 0.5);
}

.v-neon .content h1 {
  background: linear-gradient(180deg, #2563eb 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* V-Emerald (Green) */
.v-emerald .glare {
  background: radial-gradient(circle, rgba(5, 150, 105, 0.12) 0%, transparent 60%);
}

.v-emerald .dot {
  background: #059669;
  box-shadow: 0 0 12px 3px rgba(5, 150, 105, 0.5);
}

.v-emerald .content h1 {
  background: linear-gradient(180deg, #059669 0%, #047857 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* V-Gold (Amber) */
.v-gold .glare {
  background: radial-gradient(circle, rgba(217, 119, 6, 0.12) 0%, transparent 60%);
}

.v-gold .dot {
  background: #d97706;
  box-shadow: 0 0 12px 3px rgba(217, 119, 6, 0.5);
}

.v-gold .content h1 {
  background: linear-gradient(180deg, #d97706 0%, #92400e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   DARK MONOLITH PRESET (БЛОК 03. ПОДТВЕРЖДЕННЫЕ КЕЙСЫ)
   ========================================================================== */
.preset-monolith .flip-card-wrapper {
  perspective: 1200px;
  height: 480px;
  min-height: 480px;
}

.preset-monolith .flip-card-inner {
  height: 100%;
  min-height: 480px;
  border-radius: 1.5rem;
}

.preset-monolith .flip-card-front,
.preset-monolith .flip-card-back {
  background: #080d1a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4) !important;
  border-radius: 1.5rem;
  overflow: hidden;
  padding: 1.5rem;
}

.preset-monolith .card-bg-layer {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  max-width: none !important;
  object-fit: cover;
  z-index: 1;
  opacity: 0.53;
  filter: saturate(90%) contrast(115%);
  transition: transform 0.4s ease;
}

.preset-monolith .flip-card-wrapper:hover .card-bg-layer {
  transform: scale(1.04);
}

.preset-monolith .card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    circle at center,
    rgba(8, 13, 26, 0.4) 0%,
    rgba(8, 13, 26, 0.95) 100%
  );
}

.preset-monolith .card-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.preset-monolith .card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 2.25rem;
}

.preset-monolith .growth-badge {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #34d399; /* WCAG AAA 10:1 */
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  height: 26px;
  line-height: 1;
  white-space: nowrap;
}

.preset-monolith .growth-badge.badge-amber {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fbbf24;
}

.preset-monolith .growth-badge.badge-blue {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(96, 165, 250, 0.45);
  color: #60a5fa;
}

.preset-monolith .growth-badge.badge-emerald {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.45);
  color: #34d399;
}

.preset-monolith .location-meta {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.preset-monolith .location-city {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f8fafc;
}

.preset-monolith .location-area {
  font-weight: 500;
  color: #94a3b8;
}

.preset-monolith .card-center-block {
  text-align: center;
  margin: auto 0;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preset-monolith .card-icon-bubble {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35), inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.45);
  color: #38bdf8;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.preset-monolith .card-icon-bubble svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.preset-monolith .flip-card-wrapper:hover .card-icon-bubble {
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.10) 100%);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.45), inset 0 1px 2px 0 rgba(255, 255, 255, 0.55);
  color: #60a5fa;
}

.preset-monolith .card-title {
  color: #ffffff !important;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  line-height: 1.25;
  min-height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preset-monolith .card-desc {
  color: #cbd5e1 !important;
  font-size: 0.78rem;
  line-height: 1.45;
  max-width: 240px;
  margin: 0 auto;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preset-monolith .card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 2.5rem;
}

.preset-monolith .card-metric-tag {
  color: #34d399; /* WCAG AAA */
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
}

.preset-monolith .card-flip-btn {
  color: #38bdf8; /* WCAG AAA 9:1 */
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  background: transparent;
  border: none;
}

/* Оборот для Dark Monolith */
.preset-monolith .card-back {
  background: #080d1a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.preset-monolith .back-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 2.25rem;
}

.preset-monolith .back-status-badge {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #34d399;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  height: 26px;
  line-height: 1;
}

.preset-monolith .back-profit-tag {
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.preset-monolith .back-solutions-box {
  margin: auto 0;
  padding: 0.75rem 0;
}

.preset-monolith .back-solutions-header {
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}

.preset-monolith .solutions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
}

.preset-monolith .solution-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #f1f5f9;
}

.preset-monolith .solution-check-icon {
  width: 14px;
  height: 14px;
  color: #34d399;
  flex-shrink: 0;
  margin-top: 2px;
}

.preset-monolith .back-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 2.5rem;
}

.preset-monolith .back-ratio-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.preset-monolith .back-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.preset-monolith .back-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

/* ==========================================================================
   КОМАНДА: ЧЁРНОЕ МАТОВОЕ СТЕКЛО (BLACK FROSTED GLASS)
   ========================================================================== */
.team-glass-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 520px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #0f172a;
  user-select: none;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.team-glass-card .avatar-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-glass-card:hover .avatar-bg {
  transform: scale(1.02);
}

.team-glass-card .glass-panel {
  position: relative;
  z-index: 10;
  padding: 1.75rem 1.125rem 1.125rem 1.125rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 17, 32, 0.45) 20px, rgba(11, 17, 32, 0.88) 55px, rgba(11, 17, 32, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 35px, black 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 35px, black 100%);
}

.team-glass-card .team-desc {
  font-size: 0.75rem;
  line-height: 1.45;
  color: #d4d4d8;
  min-height: 35px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.25rem;
}

.team-glass-card .glass-action-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 0.875rem;
  background-color: #ffffff;
  color: #09090b;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1rem;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  margin-top: 0.625rem;
}

.team-glass-card .glass-action-btn:hover {
  background-color: #f4f4f5;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.team-glass-card .glass-action-btn:active {
  transform: scale(0.98);
}




