/* AI Studio - Enhanced Modern Design */

:root {
  /* Colors */
  --bg-primary: #050505;
  --bg-secondary: #0e0d12;
  --bg-card: rgba(15, 14, 19, 0.75);
  --text-primary: #f5f2eb;
  --text-secondary: rgba(245, 242, 235, 0.75);
  --text-muted: rgba(245, 242, 235, 0.45);
  
  /* Gradients & Accents */
  --accent-primary: #ff9b4a;
  --accent-secondary: #7e63ff;
  --accent-contrast: #33f5c8;
  --gradient-primary: linear-gradient(135deg, #ff9b4a 0%, #ff6a3a 35%, #a642ff 100%);
  --gradient-accent: linear-gradient(135deg, #33f5c8, #7e63ff);
  --gradient-text: linear-gradient(120deg, #ffd8a8 0%, #b790ff 50%, #6dd6ff 100%);
  --gradient-gold: linear-gradient(135deg, #f1c27c, #f7931a);

  /* Header palette */
  --nav-bg: #000000;
  --nav-border: rgba(255, 255, 255, 0.08);
  --nav-pill-bg: #f1f3f4;
  --nav-pill-border: #d5d8de;
  --nav-pill-text: #0b0b0b;
  --nav-icon-bg: rgba(255, 255, 255, 0.02);
  --nav-icon-border: rgba(255, 255, 255, 0.92);
  --nav-cta-bg: linear-gradient(135deg, #ff33ff 0%, #ff00ff 100%);
  --nav-cta-bg-hover: linear-gradient(135deg, #ff66ff 0%, #ff33ff 100%);
  --nav-cta-bg-active: linear-gradient(135deg, #ff00ff 0%, #e600e6 100%);
  --nav-cta-border: #ff00ff;
  --nav-cta-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 28px rgba(255, 51, 255, 0.6);
  --nav-cta-glow: 0 0 46px rgba(255, 51, 255, 0.7);

  /* Fonts */
  --font-display: 'Unbounded', system-ui, -apple-system, sans-serif;
  --font-body: 'Spline Sans', system-ui, -apple-system, sans-serif;
  --font-primary: var(--font-display);
  --font-numerals: 'Space Grotesk', 'Unbounded', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --container-max-width: 1900px;
  --section-padding: 120px 0;

  /* Buttons */
  --btn-height: 54px;
  --btn-padding-y: 14px;
  --btn-padding-x: 26px;
  --btn-radius: 16px;
  --btn-font-family: var(--font-body);
  --btn-font-size: 14px;
  --btn-font-weight: 600;
  --btn-letter-spacing: 0.08em;
  --btn-shadow-primary: 0 18px 40px rgba(255, 155, 74, 0.35);
  --btn-shadow-primary-strong: 0 26px 60px rgba(255, 155, 74, 0.45);
  --btn-shadow-primary-active: 0 10px 26px rgba(255, 155, 74, 0.35);
  --btn-shadow-secondary: 0 12px 28px rgba(255, 255, 255, 0.08);
  --btn-shadow-focus: 0 0 0 2px rgba(51, 245, 200, 0.6);

  /* Service cards – Neuro Twin reference sizes (сняты с блока salevideo при ширине 1920px) */
  --service-card-height-desktop: 582px;   /* фактическая высота большого блока ~582px */
  --service-card-height-tablet: 460px;
  --service-card-height-mobile: 380px;

  /* Panels */
  --panel-bg: rgba(10, 10, 10, 0.92);
  --panel-border: 1px solid rgba(255, 255, 255, 0.12);
  --panel-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
  --panel-radius: 26px;

  /* Унифицированные вертикальные отступы секций */
  --section-space: 64px;
  --section-space-compact: 48px;
  --section-space-mobile: 44px;
  --section-gap-tight: 28px;
}

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: #000000;
  background-image: none;
  background-size: auto;
  background-position: initial;
  background-attachment: scroll;
  background-repeat: repeat;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.no-scroll {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: rgba(10, 10, 10, 0.95);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  z-index: 1200;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  transform: translateY(-2px);
  outline: none;
  background: var(--bg-card);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), var(--btn-shadow-focus);
}

/* Матовый оверлей поверх фона */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.25);
  pointer-events: none;
  z-index: 0;
}

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

/* Специальный широкий контейнер для услуг (как у Neuro Twin - на всю ширину) */
.services .container {
  max-width: none;
  padding: 0;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 155, 74, 0.09), transparent 32%),
    radial-gradient(circle at 78% 24%, rgba(166, 66, 255, 0.08), transparent 30%),
    radial-gradient(circle at 60% 70%, rgba(51, 245, 200, 0.08), transparent 32%),
    linear-gradient(145deg, #0f0d14 0%, #09080d 48%, #0c0a12 100%);
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  will-change: opacity, visibility;
  padding: 0;
  color: var(--text-primary);
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 0;
  width: auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
  animation: fadeInPreloader 0.45s ease;
  isolation: isolate;
  margin: 0;
}

.preloader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-primary);
  margin-bottom: 6px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42), 0 0 32px rgba(166, 66, 255, 0.16);
}

.preloader-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  align-items: center;
}

.preloader-kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.preloader-title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.loading-bar {
  width: 100%;
  max-width: 320px;
  height: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.35), 0 0 22px rgba(166, 66, 255, 0.18);
  position: relative;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.loading-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 155, 74, 0.16), rgba(166, 66, 255, 0.22), rgba(51, 245, 200, 0.16));
  opacity: 0.6;
  pointer-events: none;
}

.loading-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff9b4a, #ff6a3a, #a642ff 65%, #33f5c8);
  border-radius: 999px;
  transition: width 0.35s ease, opacity 0.2s ease;
  position: relative;
  box-shadow: 0 10px 30px rgba(255, 155, 74, 0.4), 0 0 18px rgba(166, 66, 255, 0.4);
}

.loading-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.1s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-30%); }
  100% { transform: translateX(30%); }
}

@keyframes fadeInPreloader {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.preloader-hint {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.25px;
  opacity: 0.9;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .preloader-content {
    padding: 0;
    gap: 12px;
  }

  .loading-bar {
    height: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-progress::after {
    animation: none;
  }
}
@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#particle-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  display: none !important;
  z-index: 1001;
  transition: width 0.1s ease;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  z-index: 1001;
  padding: 8px 0;
  box-shadow: none;
  transition: all 0.3s ease, box-shadow 0.25s ease;
}

/* Полупрозрачная навигация на главной странице */
.home-page .navbar {
  background: var(--nav-bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Полупрозрачная навигация только на новогодней странице */
.new-year-page .navbar {
  background: var(--nav-bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.nav-container {
  width: 100%;
  max-width: none;
  margin: 0;
  /* Чуть ближе к левому краю, правый отступ оставляем тем же */
  padding: 0 40px 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  /* Правый блок уводим вправо через margin-left:auto у .nav-right */
  justify-content: flex-start;
  position: relative; /* нужно для абсолютного центрирования заголовка */
  min-height: 64px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Логотип именно в шапке скрываем, оставляем только кнопки навигации слева */
.site-header .nav-logo {
  display: none !important;
}

.nav-center {
  /* Центровой заголовок в шапке — всегда по геометрическому центру
     и не зависит от ширины блоков слева/справа */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  width: max-content;
}

.nav-center-title {
  pointer-events: auto;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto; /* фиксируем правый блок у правого края, независимо от ширины nav-left */
}

.nav-right > * {
  margin: 0;
  flex-shrink: 0;
}

.nav-pill-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-pill {
  border-radius: var(--btn-radius);
  border: 1px solid var(--nav-pill-border);
  background: var(--nav-pill-bg);
  color: var(--nav-pill-text);
  padding: 8px 17px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease,
    box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.nav-pill:hover {
  background: #ffffff;
  border-color: #cfd4db;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  color: #0d0d0d;
}

.nav-icon-btn {
  /* Увеличенные в 2 раза иконки по сравнению с предыдущим состоянием (44x44 -> 88x88) */
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 44px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  box-shadow: none;
}

/* Правая иконка (телефон) — чуть компактнее, чем две первые */
.nav-icon-btn[data-contact-link="phone"] {
  width: 76px;
  height: 76px;
  font-size: 36px;
}

.nav-icon-btn + .nav-icon-btn {
  /* Максимально стягиваем вторую и третью иконку к предыдущей при увеличенном размере */
  margin-left: -44px;
}

/* Сдвигаем всю тройку иконок правее относительно границы блока */
.nav-right .nav-icon-btn:first-child {
  /* Возвращаем базовый отступ, дальнейший сдвиг делаем через кнопку номера */
  margin-left: 0;
}

.nav-icon-btn:hover {
  background: transparent;
  border-color: transparent;
  transform: none;
  box-shadow: none;
  color: #ffffff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 70px;
  padding: 14px 28px;
  /* Лёгкий сдвиг группы левее: уменьшаем отрицательный отступ номера относительно иконок */
  margin-left: -16px;
  border-radius: 999px;
  min-width: 200px;
  text-decoration: none;
  background: var(--nav-cta-bg);
  color: #0b0b0b;
  box-shadow: var(--nav-cta-shadow), var(--nav-cta-glow);
  transition: transform 0.2s ease, box-shadow 0.25s ease,
    background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  letter-spacing: 0.12em;
  text-transform: none;
  border: 1px solid var(--nav-cta-border);
  position: relative;
  isolation: isolate;
  text-align: center;
  line-height: 1.05;
  font-family: var(--font-numerals);
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}

.nav-cta::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(255, 51, 255, 0.55), rgba(255, 0, 255, 0));
  filter: blur(10px);
  z-index: -1;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nav-cta:hover::after {
  opacity: 0;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
  background: #ffffff;
  border-color: #e0e0e0;
  color: #0b0b0b;
  text-decoration: none !important;
}

.nav-cta:hover * {
  text-decoration: none !important;
  border-bottom: none !important;
  text-decoration-line: none !important;
}

.nav-cta:active {
  transform: translateY(0);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.42), 0 0 20px rgba(255, 51, 255, 0.5);
  background: var(--nav-cta-bg-active);
}

.nav-lang-toggle {
  border-radius: 999px;
  border: 1px solid var(--nav-cta-border);
  padding: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nav-cta-bg);
  color: #0b0b0b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 51, 255, 0.6);
}

.nav-lang-toggle:hover {
  background: var(--nav-cta-bg-hover);
  border-color: var(--nav-cta-border);
  color: #0b0b0b;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  /* На мобильных показываем только логотип, скрываем nav-pill-group */
  .nav-left {
    display: flex !important;
  }
  
  .nav-left .nav-pill-group {
    display: none;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }

  /* Уплотняем шапку, чтобы все кнопки вмещались */
  .nav-container {
    padding: 0 12px;
    gap: 10px;
    min-height: 56px;
  }

  .nav-center {
    display: none;
  }

  .nav-right {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-icon-btn {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }

  .nav-icon-btn + .nav-icon-btn {
    margin-left: 0;
  }

  .nav-cta {
    min-width: 0;
    width: 100%;
    padding: 12px 16px;
    margin-left: 0;
    order: 5;
    justify-content: center;
    min-height: 0;
    gap: 6px;
  }

  .nav-lang-toggle {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo .logo-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.studio-name {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
}

.studio-label {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 4px;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 22px 40px;
  z-index: 1200;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.mobile-nav.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mobile-nav-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-brand .brand-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.mobile-nav-brand .brand-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-nav-close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-close:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.mobile-nav-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.mobile-nav-link {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.mobile-nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.mobile-nav-meta {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mobile-nav-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.mobile-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}

.mobile-nav-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.mobile-nav-chip[data-contact-link="phone"] span {
  font-family: var(--font-numerals);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.mobile-nav-lang {
  align-self: flex-start;
  margin-top: 6px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .nav-container {
    padding: 0 20px;
  }

  .nav-center-title {
    font-size: 12px;
    padding: 8px 20px;
  }
}

@media (max-width: 768px) {
  .nav-left .nav-pill-group {
    display: none;
  }

  .nav-right {
    gap: 8px;
  }

  .nav-cta {
    padding: 12px 16px;
  }

  .nav-lang-toggle {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Прижимаем контент к верху, а не по центру экрана */
  justify-content: flex-start;
  text-align: center;
  position: relative;
  z-index: 1;
  /* Отступ от шапки до начала большого контейнера с видео + ещё меньше снизу,
     чтобы вторая секция подошла ближе (примерно вдвое меньше предыдущего) */
  padding: 104px 24px 16px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255, 155, 74, 0.35), transparent 55%),
              radial-gradient(circle at 80% 20%, rgba(111, 87, 255, 0.35), transparent 60%);
  opacity: 0.6;
  filter: blur(50px);
  z-index: -1;
}

.hero-reel {
  position: relative;
  width: 94vw;
  max-width: 1400px;
  min-height: clamp(520px, 72vh, 860px);
  aspect-ratio: 16 / 9;
  /* Контейнер теперь позиционируется через паддинг у .hero */
  margin-top: 0;
  border-radius: 30px;
  overflow: hidden;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.hero-reel-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05);
}

.hero-reel-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 5, 5, 0.05), rgba(5, 5, 5, 0.9)),
    radial-gradient(circle at 15% 20%, rgba(255, 155, 74, 0.45), transparent 60%),
    radial-gradient(circle at 85% 80%, rgba(126, 99, 255, 0.5), transparent 60%);
  mix-blend-mode: normal;
  pointer-events: none; /* Позволяет кликам проходить через overlay */
  z-index: 1;
}

/* --- Hero background clip reveal --- */
/* Clip-path reveal is handled by JavaScript (hero-reveal.js) */
/* Initial state will be set by JavaScript */

/* Убеждаемся, что overlay не обрезается и остаётся поверх видео */
.hero-reel-overlay {
  clip-path: none;
  -webkit-clip-path: none;
}


/* --- Hero enter animation --- */
@keyframes heroFadeUpBlur {
  0% {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Hero enter animation - базовое состояние */
.hero.hero-enter .hero-content > * {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
}

/* Disable old hero animation styles when using new one */
.hero.hero-enter.hero-animate-ready .hero-reel-content > *,
.hero.hero-enter.hero-in-view .hero-reel-content > * {
  animation: none;
}

.hero.hero-enter .hero-content > *:nth-child(1) {
  animation: heroFadeUpBlur 0.7s ease-out 0s both;
}

.hero.hero-enter .hero-content > *:nth-child(2) {
  animation: heroFadeUpBlur 0.7s ease-out 0.15s both;
}

.hero.hero-enter .hero-content > *:nth-child(3) {
  animation: heroFadeUpBlur 0.7s ease-out 0.30s both;
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero-enter .hero-content > * {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.hero-sound-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-sound-toggle:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.hero-sound-toggle:active {
  transform: scale(0.95);
}

.hero-sound-toggle i {
  transition: transform 0.2s ease;
}

.hero-sound-toggle:hover i {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .hero-sound-toggle {
    width: 40px;
    height: 40px;
    font-size: 18px;
    top: 15px;
    right: 15px;
  }
}

.hero-reel-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  pointer-events: auto; /* Разрешаем клики на контент */
  z-index: 2; /* Контент выше overlay, чтобы кнопки были кликабельны */
}

@media (max-width: 1200px) {
  .hero-reel {
    width: 96vw;
    max-width: 1200px;
    min-height: clamp(480px, 70vh, 760px);
  }
}

@media (max-width: 1024px) {
  .hero-reel {
    width: 100%;
    max-width: 100%;
    min-height: 440px;
    aspect-ratio: 16 / 9;
    border-radius: 26px;
  }
}

@media (max-width: 640px) {
  .hero-reel {
    min-height: 320px;
    border-radius: 20px;
  }
}

.hero-tagline {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  animation: heroReveal 1.2s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 14, 19, 0.6);
  border: 1px solid rgba(255, 155, 74, 0.4);
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 32px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero-badge i {
  color: #ffd700;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 15px 45px rgba(0, 0, 0, 0.65);
}

.hero-title-reel {
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 14px;
  max-width: 640px;
  color: var(--text-secondary);
  margin: 10px auto 0;
}

/* Скрываем надписи и кнопки в герое при полноэкранном режиме видео */
.hero-fullscreen-active .hero-tagline,
.hero-fullscreen-active .hero-title,
.hero-fullscreen-active .hero-title-reel,
.hero-fullscreen-active .hero-subtitle,
.hero-fullscreen-active .hero-cta-row {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(8px, 2vh, 16px);
  transform: translateY(8px);
  width: calc(100% - 64px);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  /* Используем margin: auto для центрирования вместо left: 50% + transform */
  gap: 10px;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 3;
}

.hero:hover .hero-controls,
.hero-controls:hover,
.hero-controls:focus-within {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-controls.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-control-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hero-control-btn {
  width: auto;
  height: auto;
  padding: 4px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.2s ease;
  box-shadow: none;
  font-size: 18px;
}

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

.hero-control-btn:active {
  transform: scale(0.96);
}

.hero-progress {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.hero-control-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.hero-progress-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.hero-progress-track:hover {
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.hero-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--gradient-primary);
  box-shadow: 0 4px 16px rgba(255, 155, 74, 0.3);
  border-radius: inherit;
  transition: width 0.12s linear;
}

.hero-progress-time {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 110px;
  text-align: right;
  letter-spacing: 0.02em;
}

.hero-control-speed {
  min-width: 36px;
  justify-content: center;
}

.hero-btn-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
}

@media (max-width: 768px) {
  .hero-controls {
    flex-direction: column;
    gap: 8px;
    padding: 0;
    width: 94%;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
  }

  /* Показываем контролы при взаимодействии (тап) */
  .hero:active .hero-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hero-progress {
    width: 100%;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .hero-progress-time {
    min-width: 90px;
    text-align: left;
  }

  .hero-control-right {
    width: 100%;
    justify-content: flex-end;
  }
}

.hero-menu {
  position: absolute;
  right: 10px;
  bottom: 46px;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  z-index: 4;
}

.hero-menu.visible {
  display: flex;
}

.hero-menu-item {
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-menu-item:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.hero-menu-item:active {
  transform: scale(0.98);
}

.hero-cta-row {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.hero-secondary-btn {
  width: 95px !important;
  height: 95px !important;
  min-width: 95px !important;
  min-height: 95px !important;
  padding: 11px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-align: center;
  line-height: 1.3;
  white-space: normal;
  word-wrap: break-word;
}

.hero-secondary-btn::before {
  display: none;
}

.hero-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-color: rgba(255, 255, 255, 0.7) !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4),
              0 0 20px rgba(255, 255, 255, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero-secondary-btn:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Стили для кнопки новогодних предложений на главной странице */
.hero-actions .new-year-button,
.hero .new-year-button {
  display: block;
  text-decoration: none;
  transition: filter 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
  animation: newYearPulse 3s ease-in-out infinite !important;
  margin: 10px auto 0;
  width: 478px !important;
  height: 96px !important;
  max-width: 478px !important;
  max-height: 96px !important;
  overflow: visible;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}


.new-year-button:hover {
  filter: drop-shadow(0 10px 30px rgba(255, 155, 74, 0.5));
  box-shadow: 0 12px 40px rgba(255, 155, 74, 0.6);
  /* Анимация продолжается, transform уже в анимации */
}

.new-year-button:active {
  /* transform уже применяется через анимацию, не перезаписываем */
  filter: drop-shadow(0 15px 35px rgba(255, 155, 74, 0.7)) !important;
}

/* Стили для видео в кнопке новогодних предложений на главной странице */
.hero-actions .new-year-video,
.hero .new-year-video,
.new-year-button .new-year-video {
  width: 100% !important;
  height: 100% !important;
  max-width: 478px !important;
  max-height: 96px !important;
  display: block;
  object-fit: cover !important;
  object-position: center;
  border-radius: 12px;
  transition: filter 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  animation: newYearPulse 3s ease-in-out infinite !important;
}

.new-year-button:hover .new-year-video {
  /* transform уже применяется через анимацию кнопки */
}

@keyframes newYearPulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.02);
    filter: brightness(1.1);
  }
}

.gradient-text {
  background: linear-gradient(90deg, 
    #33f5c8 0%, 
    #6dd6ff 15%,
    #7e63ff 35%, 
    #d946ef 55%,
    #ff0080 70%, 
    #ff6b4a 85%,
    #ffb74a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes rainbowFlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-description {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.new-year-banner-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  position: relative;
}

.new-year-text-left,
.new-year-text-right {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  color: #ffffff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  text-align: center;
}

.new-year-text-left {
  top: 30%;
  font-size: 18px;
}

.new-year-text-right {
  top: 65%;
  font-size: 16px;
}

.hero-actions .new-year-button,
.hero .new-year-button {
  flex-shrink: 0;
}

/* Hero Stats - Скрыто */
.hero-stats {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Скрываем индикаторы под карточками статистики */
.hero-stats::after,
.hero-stats::before,
.stat-item::after,
.stat-item::before,
.stat-label::after,
.stat-label::before,
.stat-number::after,
.stat-number::before {
  display: none !important;
  content: none !important;
}

/* Скрываем все возможные индикаторы в секции hero, кроме карусели услуг */
.hero .indicator:not(.services-carousel-wrapper .indicator),
.hero [class*="indicator"]:not(.services-carousel-wrapper [class*="indicator"]),
.hero [class*="dot"]:not(.services-carousel-wrapper [class*="dot"]),
.hero [class*="pagination"]:not(.services-carousel-wrapper [class*="pagination"]),
.hero-stats .indicator,
.hero-stats [class*="indicator"],
.hero-stats [class*="dot"],
.hero-stats [class*="pagination"],
.hero-stats + .indicator,
.hero-stats + [class*="indicator"],
.hero-stats + [class*="dot"],
.hero-stats + [class*="pagination"],
.hero-container .indicator:not(.services-carousel-wrapper .indicator),
.hero-container [class*="indicator"]:not(.services-carousel-wrapper [class*="indicator"]),
.hero-container [class*="dot"]:not(.services-carousel-wrapper [class*="dot"]),
.hero-container [class*="pagination"]:not(.services-carousel-wrapper [class*="pagination"]) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Скрываем индикаторы, которые могут быть созданы через псевдоэлементы */
.hero-stats .stat-item::after,
.hero-stats .stat-item::before,
.hero-stats .stat-label::after,
.hero-stats .stat-label::before,
.hero-stats .stat-number::after,
.hero-stats .stat-number::before {
  display: none !important;
  content: none !important;
}

/* Buttons */
.btn,
.btn-primary,
.btn-secondary,
.service-simple-btn,
.contact-link,
.try-assistant-btn {
  min-height: var(--btn-height);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  font-family: var(--btn-font-family);
  font-weight: var(--btn-font-weight);
  font-size: var(--btn-font-size);
  letter-spacing: var(--btn-letter-spacing);
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
  text-transform: uppercase;
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.service-simple-btn:focus-visible,
.contact-link:focus-visible,
.try-assistant-btn:focus-visible {
  outline: none;
  box-shadow: var(--btn-shadow-focus);
  transform: translateY(-1px);
}

.nav-cta:focus-visible {
  outline: none;
  box-shadow: var(--btn-shadow-focus), var(--nav-cta-glow), 0 12px 22px rgba(0, 0, 0, 0.42);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #120b07;
  box-shadow: var(--btn-shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-primary-strong);
  filter: saturate(1.05);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--btn-shadow-primary-active);
}

.btn-secondary {
  background: rgba(246, 240, 223, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(246, 240, 223, 0.35);
  box-shadow: var(--btn-shadow-secondary);
}

/* Переопределяем для hero-секции - делаем круглой */
.hero-cta-row .btn-secondary,
.hero-cta-row .btn-secondary.hero-secondary-btn {
  border-radius: 50% !important;
  width: 95px !important;
  height: 95px !important;
  min-width: 95px !important;
  min-height: 95px !important;
  padding: 11px !important;
}

/* Анимация живого свечения для боковых кнопок */
@keyframes warmGlow {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 0 15px rgba(255, 155, 74, 0.4),
                0 0 30px rgba(255, 155, 74, 0.25),
                0 0 50px rgba(255, 155, 74, 0.15);
  }
  50% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(255, 155, 74, 0.5),
                0 0 40px rgba(255, 155, 74, 0.35),
                0 0 65px rgba(255, 155, 74, 0.2);
  }
}

/* Hero CTA: левая и правая кнопки — прозрачные с белой обводкой */
.hero-cta-row .btn-primary {
  width: 95px;
  height: 95px;
  min-width: 95px;
  min-height: 95px;
  padding: 11px;
  border-radius: 50%;
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
              0 0 15px rgba(255, 155, 74, 0.4),
              0 0 30px rgba(255, 155, 74, 0.25),
              0 0 50px rgba(255, 155, 74, 0.15);
  animation: warmGlow 3s ease-in-out infinite;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-align: center;
  line-height: 1.3;
  white-space: normal;
  word-wrap: break-word;
  position: relative;
  overflow: visible;
}

.hero-cta-row .btn-primary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  animation: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4),
              0 0 25px rgba(255, 155, 74, 0.6),
              0 0 50px rgba(255, 155, 74, 0.4),
              0 0 80px rgba(255, 155, 74, 0.25);
}

.hero-cta-row .btn-primary::before {
  display: none;
}

.hero-cta-row .btn-primary::after {
  display: none;
}

.hero-cta-row .btn-primary > * {
  position: relative;
  z-index: 1;
}

.hero-cta-row .btn-primary:hover {
  background: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.hero-cta-row .btn-primary:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent-contrast);
  color: var(--accent-contrast);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.1);
}

/* Аватар кота Бро в кнопке */
.btn-bro-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-image: url('../images/bro-avatar.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  border: 1px solid rgba(255, 120, 73, 0.3);
  box-shadow: 0 2px 4px rgba(255, 120, 73, 0.2);
}

.btn-bro-avatar.fallback {
  display: none !important;
}

.btn-bro-avatar.fallback::after {
  display: none !important;
  content: none !important;
}

/* Sections */
.services, .stats-section, .about, .testimonials, .contact {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.about.about-intro {
  padding-top: 80px;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: stretch;
}

.about-intro-kicker {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.about-intro-title {
  margin-bottom: 20px;
}

.about-intro-description {
  max-width: 520px;
}

.highlight-services-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.highlight-service-card {
  position: relative;
  border-radius: var(--panel-radius);
  overflow: hidden;
  min-height: 220px;
  background: var(--panel-bg);
  border: var(--panel-border);
  box-shadow: var(--panel-shadow);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.highlight-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.82);
  border-color: rgba(255, 255, 255, 0.18);
}

.highlight-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.highlight-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(150deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.25)),
    radial-gradient(circle at 0% 100%, rgba(0, 0, 0, 0.6), transparent 55%);
}

.highlight-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}

.highlight-label {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.5));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.highlight-service-card:hover .highlight-bg {
  transform: scale(1.06);
  transition: transform 0.4s ease;
}

.highlight-service-card:hover .highlight-label {
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.8), rgba(255, 255, 255, 0.08));
}

.highlight-services-grid > .highlight-service-card:nth-child(1) {
  grid-column: span 8;
  min-height: 260px;
}

.highlight-services-grid > .highlight-service-card:nth-child(2) {
  grid-column: span 4;
  min-height: 220px;
}

.highlight-services-grid > .highlight-service-card:nth-child(3) {
  grid-column: span 4;
  min-height: 220px;
}

.highlight-services-grid > .highlight-service-card:nth-child(4) {
  grid-column: span 8;
  min-height: 260px;
}

@media (max-width: 1024px) {
  .highlight-services-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .highlight-services-grid > .highlight-service-card:nth-child(1) {
    grid-column: span 6;
  }

  .highlight-services-grid > .highlight-service-card:nth-child(2) {
    grid-column: span 3;
  }

  .highlight-services-grid > .highlight-service-card:nth-child(3) {
    grid-column: span 3;
  }

  .highlight-services-grid > .highlight-service-card:nth-child(4) {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .highlight-services-grid {
    grid-template-columns: 1fr;
  }

  .highlight-services-grid > .highlight-service-card {
    grid-column: auto;
    min-height: 200px;
  }
}

/* Benefits */
.benefits-section {
  /* Опускаем блок преимуществ, чтобы секции визуально не накладывались друг на друга,
     и даём небольшой отступ снизу, чтобы карточки не прилипали к границе секции */
  margin-top: 0;
  padding: var(--section-space-compact) 0;
  background: radial-gradient(circle at 10% 0%, rgba(255, 155, 74, 0.15), transparent 60%),
              radial-gradient(circle at 90% 100%, rgba(126, 99, 255, 0.25), transparent 60%);
}

/* Ширина и отступы блока преимуществ как у Neuro Twin:
   больше воздуха слева/справа и между карточками */
.benefits-section .container {
  max-width: none;
  padding: 0 72px;
}

.benefits-grid {
  /* Чуть поднимаем карточки ближе к заголовку "Преимущества AI Studio" */
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* Фиксированная высота рядов, чтобы размеры карточек совпадали с референсом:
     боковые блоки — одна ячейка, центральный — две ячейки по высоте */
  grid-auto-rows: 260px;
  gap: 40px;
  grid-template-areas:
    "benefit-speed benefit-main benefit-team"
    "benefit-business benefit-main benefit-innovation";
  align-items: stretch;
}

.benefit-card {
  /* Форма и скругления как у карточек Neuro Twin */
  border-radius: 40px;
  /* Жирная белая граница и прозрачный внутренний фон */
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  padding: 32px 36px;
  box-shadow: var(--panel-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.benefit-card--speed {
  grid-area: benefit-speed;
}

.benefit-card--business {
  grid-area: benefit-business;
}

.benefit-card--team {
  grid-area: benefit-team;
}

.benefit-card--innovation {
  grid-area: benefit-innovation;
}

.benefit-card-main {
  position: relative;
  grid-area: benefit-main;
  padding: 40px 40px;
  border-radius: 40px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: flex-start;
}

.benefit-main-content {
  position: relative;
  z-index: 1;
  max-width: 100%;
  color: #ffffff;
}

.benefit-main-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.benefit-main-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 16px;
}

.benefit-main-text {
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0.9;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.78);
  border-color: rgba(255, 255, 255, 0.18);
}

.benefit-title {
  font-size: 19px;
  margin-bottom: 10px;
}

.benefit-text {
  font-size: 14px;
  color: #f5f5f5;
}

/* Neon projects banner & reel */
.projects-banner-section {
  /* Чуть поднимаем блок с примерами работ, уменьшая верхний внутренний отступ */
  padding: var(--section-space-compact) 0;
  /* Делаем фон секции с примерами работ прозрачным,
     оставляя цвет только у внутренних элементов при необходимости */
  background: transparent;
  color: #050505;
}

.projects-banner-inner {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 18px 28px;
  border-radius: 28px;
  background: #d2ff46;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.projects-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.projects-banner-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.projects-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: #050505;
  color: #f5f2eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.25s ease;
}

.projects-arrow:hover {
  background: #111;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.projects-reel-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px; /* вертикальный зазор между рядами */
}

.projects-row {
  display: grid;
  grid-template-rows: var(--service-card-height-desktop);
  column-gap: 30px; /* расстояние между большим и малым контейнером */
  row-gap: 30px;
}

/* Ряды с большим контейнером слева */
.projects-row-big-left {
  grid-template-columns: 925px 445px;
}

/* Ряды с маленьким контейнером слева */
.projects-row-small-left {
  grid-template-columns: 445px 925px;
}

.projects-reel-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--panel-radius);
  overflow: hidden;
  background: var(--panel-bg);
  border: var(--panel-border);
  box-shadow: var(--panel-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.projects-reel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.82);
  border-color: rgba(255, 255, 255, 0.18);
}

.projects-reel-media {
  position: relative;
  overflow: hidden;
  flex: 1;
}

.projects-reel-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.projects-reel-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.projects-reel-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: radial-gradient(circle at 30% 0%, #ffffff, #7e63ff);
  color: #050505;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.projects-reel-play:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.9);
}

.projects-reel-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 10px 12px;
  margin: 0;
  max-width: calc(100% - 24px);
  font-size: clamp(0.82rem, 0.95vw, 0.92rem);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.12));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--btn-radius);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

@media (max-width: 1024px) {
  .about-intro-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .highlight-service-card,
  .highlight-service-card-wide {
    min-height: 190px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    grid-template-areas: none;
  }

  .benefit-card,
  .benefit-card-main {
    grid-area: auto;
  }

  .projects-banner-inner {
    border-radius: 0;
  }

  .projects-reel-grid {
    max-width: none;
    gap: 16px;
  }

  .projects-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: var(--service-card-height-tablet);
    column-gap: 16px;
    row-gap: 16px;
  }
}

@media (max-width: 768px) {
  .highlight-services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .highlight-service-card-wide {
    grid-column: auto;
  }

  .benefits-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .projects-banner-section {
    padding: var(--section-space-mobile) 0;
  }

  .projects-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .projects-reel-grid {
    gap: 14px;
  }

  .projects-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    column-gap: 0;
    row-gap: 14px;
  }
}

/* Footer-like studio block */
.studio-footer-block {
  background: #d2ff46;
  color: #050505;
  padding: var(--section-space) 0;
}

.studio-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px 28px;
  border-radius: 40px 40px 0 0;
  background: #d2ff46;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr) 180px;
  gap: 32px;
  position: relative;
}

.studio-footer-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.studio-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.studio-footer-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #050505;
  background: #050505;
  color: #f5f2eb;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease,
    box-shadow 0.25s ease;
}

.studio-footer-chip:hover {
  background: transparent;
  color: #050505;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.studio-footer-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
}

.studio-footer-meta {
  margin: 0;
}

.studio-footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.studio-footer-legal a {
  color: #050505;
  text-decoration: none;
  font-size: 13px;
}

.studio-footer-legal a:hover {
  text-decoration: underline;
}

.studio-footer-mark {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.studio-footer-logo-mark {
  width: 140px;
  height: 140px;
  border-radius: 40px;
  background: #050505;
  color: #d2ff46;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .studio-footer-inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  }

  .studio-footer-mark {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .studio-footer-inner {
    border-radius: 30px 30px 0 0;
    padding: 24px 20px 22px;
    grid-template-columns: minmax(0, 1fr);
  }

  .studio-footer-logo-mark {
    width: 110px;
    height: 110px;
    font-size: 30px;
  }

  /* Мобильные стили для кнопок hero-cta-row */
  .hero-cta-row {
    gap: 16px;
    margin-top: 32px;
  }

  .hero-cta-row .btn-primary {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    padding: 8px;
    font-size: 11px;
    line-height: 1.2;
    border-radius: 50%;
  }

  .hero-cta-row .btn-secondary {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    padding: 8px;
    font-size: 11px;
    line-height: 1.2;
    border-radius: 50%;
  }

  .hero-cta-row .btn-primary:hover,
  .hero-cta-row .btn-secondary:hover {
    transform: translateY(-2px) scale(1.05);
  }

  .hero-cta-row .btn-primary:active,
  .hero-cta-row .btn-secondary:active {
    transform: translateY(0) scale(1.02);
  }
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(2.4rem, 4.6vw, 3.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 64px;
  line-height: 1.2;
}

/* Чуть ближе карточки к заголовку именно в секции "Преимущества AI Studio" */
.benefits-section .section-title {
  margin-top: -20px;
  margin-bottom: 28px;
}

/* Поднимаем заголовок в секции "Как работает AI Studio" */
.process-section .section-title {
  margin-top: 0;
}

/* Поднимаем заголовок в секции "НАШИ AI АССИСТЕНТЫ" */
.assistants-section .section-title {
  margin-top: 0;
  margin-bottom: 18px;
}


/* ============================================
   SERVICES FLAT GRID (INSTEAD OF 3D CAROUSEL)
   ============================================ */

.services {
  background: radial-gradient(circle at 0% 0%, rgba(255, 155, 74, 0.14), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(126, 99, 255, 0.18), transparent 55%),
              linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.92) 40%, rgba(0, 0, 0, 0.85) 100%);
}

.cta-section,
.portfolio-section,
.testimonials,
.contact,
.process-section,
.value-highlight {
  padding: var(--section-space) 0;
}

/* Уменьшаем нижний padding для секции assistants-section */
.assistants-section {
  padding: var(--section-space) 0 calc(var(--section-space) * 0.8) 0; /* Увеличиваем нижний padding, опускаем границу ниже */
}

/* Поднимаем всю секцию "НАШИ AI АССИСТЕНТЫ" выше */
.assistants-section {
  margin-top: 0;
}

@media (max-width: 768px) {
  .cta-section,
  .portfolio-section,
  .assistants-section,
  .testimonials,
  .contact,
  .process-section,
  .value-highlight {
    padding: var(--section-space-mobile) 0;
  }

  /* Поднимаем всю секцию "НАШИ AI АССИСТЕНТЫ" выше на мобильных */
  .assistants-section {
    margin-top: 0;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .contact-actions .btn-primary,
  .contact-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .service-simple-card {
    min-height: 220px;
  }
}

.cta-section {
  padding: var(--section-space) 0;
  background: radial-gradient(circle at 0% 0%, rgba(255, 155, 74, 0.12), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(126, 99, 255, 0.12), transparent 55%);
}

.cta-panel {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: var(--panel-radius);
  box-shadow: var(--panel-shadow);
  padding: 32px 32px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-copy {
  max-width: 640px;
}

.cta-kicker {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 12px;
}

.cta-text {
  color: var(--text-secondary);
  margin: 0;
  font-size: 16px;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn-primary,
  .cta-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.value-highlight {
  /* Сжимаем высоту всей секции с карточкой "До 10 раз дешевле" */
  padding: var(--section-space) 0;
  background: radial-gradient(circle at 0% 0%, rgba(255, 155, 74, 0.14), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(126, 99, 255, 0.16), transparent 55%);
}

.value-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: var(--panel-radius);
  /* Максимально компактные отступы внутри карты ценности */
  padding: 8px 24px;
  box-shadow: var(--panel-shadow);
}

.value-kicker {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.value-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin: 0;
}

.value-text {
  /* Убираем лишний отступ снизу, чтобы не раздувать высоту контейнера */
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
}

.value-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .value-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .value-right {
    justify-content: flex-start;
  }
}

.services-simple-grid {
  margin-top: 4px;
  width: min(100%, 1400px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Adjust services section spacing so the heading sits ещё ближе к верхнему краю блока */
.services {
  padding: 0 0 var(--section-space-compact);
  margin-top: -8px;
}

/* Tighter space specifically under the "Услуги AI STUDIO" heading */
.services .section-title {
  margin-bottom: 4px;
  margin-top: -4px;
}

.service-row {
  display: grid;
  grid-template-rows: var(--service-card-height-desktop);
  column-gap: 30px; /* расстояние между большим и малым контейнером в ряду */
  row-gap: 30px;
}

/* Ряды с большим контейнером слева */
.service-row-big-left {
  grid-template-columns: 925px 445px;
}

/* Ряды с маленьким контейнером слева */
.service-row-small-left {
  grid-template-columns: 445px 925px;
}

/* Ряды с тремя контейнерами одинакового размера */
.service-row-three {
  grid-template-columns: repeat(3, 1fr);
  column-gap: 30px;
}

/* Ряд: два маленьких слева (один под другим), один большой справа */
.service-row-two-small-one-big {
  display: grid;
  grid-template-columns: 445px 925px;
  grid-template-rows: var(--service-card-height-desktop) var(--service-card-height-desktop);
  column-gap: 30px;
  row-gap: 30px;
}

/* Первый маленький контейнер - слева, сверху */
.service-row-two-small-one-big .service-simple-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

/* Второй маленький контейнер - слева, снизу */
.service-row-two-small-one-big .service-simple-card:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

/* Большой контейнер - справа, занимает обе строки */
.service-row-two-small-one-big .service-simple-card:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / -1;
  height: calc(var(--service-card-height-desktop) * 2 + 30px);
}

.service-simple-card {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  /* Фиксированная высота для десктопа (как на Neuro Twin); для tablet/mobile переопределяется медиазапросами */
  height: var(--service-card-height-desktop);
  background-color: #ffffff;
  border: var(--panel-border);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  cursor: pointer;
}

.service-simple-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.78);
  border-color: rgba(255, 255, 255, 0.18);
}

.service-simple-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  display: block;
}

/* Показываем нижнюю часть изображения с духами для контейнера "ИИ АНИМАЦИЯ И ИНФОГРАФИКА ДЛЯ E-CON" */
article.service-simple-card.service-card-animation .service-simple-bg-image,
article.service-simple-card:has(img[alt="ИИ АНИМАЦИЯ И ИНФОГРАФИКА ДЛЯ E-CON"]) .service-simple-bg-image {
  object-position: center 75% !important;
  object-fit: cover !important;
}

/* Изображение заполняет весь контейнер AI-АВАТАРЫ */
article.service-simple-card:has(img[alt="AI-АВАТАРЫ"]) .service-simple-bg-image {
  object-fit: cover !important;
  object-position: center center !important;
}

/* Изображение заполняет весь контейнер "СОЗДАНИЕ САЙТОВ С AI ФУНКЦИЯМИ" без черных полос */
article.service-simple-card:has(img[alt="Создание сайтов с AI функциями"]) .service-simple-bg-image {
  object-fit: cover !important;
  object-position: center 60% !important;
  width: 110% !important;
  height: 110% !important;
  left: -5% !important;
  top: -5% !important;
}

/* Изображение 16:9 в контейнере "КАСТОМНЫЕ GPTs" */
article.service-simple-card:has(img[alt="КАСТОМНЫЕ GPTs"]) .service-simple-bg-image {
  object-fit: cover !important;
  object-position: center center !important;
}

/* Убираем белый фон у карточек с изображениями */
article.service-simple-card:has(img.service-simple-bg-image) {
  background-color: transparent;
}

.service-simple-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}

/* Убираем белый фон у карточек с видео */
article.service-simple-card:has(video.service-simple-bg-video) {
  background-color: transparent;
}

.service-simple-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.service-simple-content {
  position: relative;
  z-index: 1;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.service-simple-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #000000;
}

.service-simple-description {
  font-size: 14px;
  color: #333333;
  margin-bottom: 10px;
}

.service-simple-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 13px;
  color: #333333;
}

.service-simple-list li + li {
  margin-top: 4px;
}

.service-simple-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--btn-radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 16px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  min-height: 50px;
  font-family: var(--font-primary);
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.service-simple-footer:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.service-simple-footer:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.12);
}

.service-simple-price {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
}

.service-simple-btn {
  /* Используем общую систему кнопок, но оставляем лёгкий оранжевый акцент */
  border-radius: var(--btn-radius);
  background: var(--gradient-primary);
  color: #120b07;
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  border-color: rgba(255, 155, 74, 0.6);
  gap: 8px;
  box-shadow: var(--btn-shadow-primary);
  text-transform: none;
}

.service-simple-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-primary-strong);
  filter: saturate(1.05);
}

.service-simple-btn:active {
  transform: translateY(0);
  box-shadow: var(--btn-shadow-primary-active);
}

@media (max-width: 1024px) {
  .services-simple-grid {
    width: 100%;
    max-width: none;
    gap: 16px;
  }

  .service-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: var(--service-card-height-tablet);
    column-gap: 16px;
    row-gap: 16px;
  }

  .service-row-two-small-one-big {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: var(--service-card-height-tablet) var(--service-card-height-tablet);
    column-gap: 16px;
    row-gap: 16px;
  }

  .service-row-two-small-one-big .service-simple-card:nth-child(3) {
    grid-row: 1 / -1;
    height: calc(var(--service-card-height-tablet) * 2 + 16px);
  }

  .service-simple-card {
    height: var(--service-card-height-tablet);
  }
}

@media (max-width: 768px) {
  .services {
    padding-top: 60px;
  }

  .services-simple-grid {
    width: 100%;
    gap: 14px;
  }

  .service-row {
    grid-template-columns: 1fr;
    grid-template-rows: var(--service-card-height-mobile);
    column-gap: 0;
    row-gap: 14px;
  }

  .service-row-two-small-one-big {
    grid-template-columns: 1fr;
    grid-template-rows: var(--service-card-height-mobile);
    column-gap: 0;
    row-gap: 14px;
  }

  .service-row-two-small-one-big .service-simple-card:nth-child(3) {
    grid-row: auto;
    height: var(--service-card-height-mobile);
  }

  .service-simple-card {
    height: var(--service-card-height-mobile);
  }
}

/* ============================================
   3D SERVICES CAROUSEL (LEGACY, NOT USED)
   ============================================ */

.services-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  margin-top: 64px;
  perspective: 2000px;
  overflow: visible;
}

.services-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-carousel-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 400px;
  max-width: 90vw;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 32px 28px;
  text-align: center;
  transform-origin: center center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  
  /* GPU Acceleration для плавной анимации */
  transform: translateZ(0);
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  
  /* Базовые transitions */
  transition: none;
  
  /* Курсор для интерактивности */
  cursor: pointer;
  user-select: none;
}

/* Gradient overlay on hover */
.service-carousel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  border-radius: 24px;
}

.service-carousel-card:hover::before {
  opacity: 0.08;
}

/* Стили для карточки с фоновым изображением */
.service-carousel-card.service-card-with-bg {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  /* position: absolute сохраняется от .service-carousel-card */
  background-color: rgba(5, 5, 5, 0.3) !important; /* Легкий базовый цвет для совместимости */
  backdrop-filter: none !important; /* Отключаем blur для четкости фонового изображения */
  -webkit-backdrop-filter: none !important;
}

.service-card-with-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 5, 5, 0.85) 0%,
    rgba(5, 5, 5, 0.75) 50%,
    rgba(5, 5, 5, 0.85) 100%
  );
  border-radius: 24px;
  z-index: 0;
  pointer-events: none;
}

.service-card-with-bg > * {
  position: relative;
  z-index: 2; /* Увеличиваем z-index для гарантии видимости поверх overlay */
}

.service-card-with-bg:hover::after {
  background: linear-gradient(
    135deg,
    rgba(5, 5, 5, 0.75) 0%,
    rgba(5, 5, 5, 0.65) 50%,
    rgba(5, 5, 5, 0.75) 100%
  );
  transition: background 0.4s ease;
}

/* Hover эффект для левой карточки */
.service-carousel-card.left-card:hover {
  filter: brightness(1.3) !important;
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 60px rgba(99, 102, 241, 0.5) !important;
  transition: filter 0.3s ease, box-shadow 0.3s ease !important;
}

/* Hover эффект для правой карточки */
.service-carousel-card.right-card:hover {
  filter: brightness(1.3) !important;
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 60px rgba(99, 102, 241, 0.5) !important;
  transition: filter 0.3s ease, box-shadow 0.3s ease !important;
}

/* Центральная карточка - hover эффект для подсветки */
.service-carousel-card.center-card:hover {
  filter: brightness(1.1) !important;
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 50px rgba(255, 155, 74, 0.5) !important;
  transition: filter 0.3s ease, box-shadow 0.3s ease !important;
}

.service-carousel-card.center-card {
  cursor: default;
}

/* Стили для состояния перетаскивания */
.services-carousel-wrapper {
  cursor: grab;
}

.services-carousel-wrapper:active {
  cursor: grabbing;
}

/* Кнопки и интерактивные элементы не должны переключать карточку */
.service-carousel-card .service-btn,
.service-carousel-card a,
.service-carousel-card button {
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

/* All content above gradient */
.service-carousel-card > * {
  position: relative;
  z-index: 1;
}

/* Класс для анимации карточек */
.service-carousel-card.carousel-animating {
  transition: 
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important,
    opacity 0.8s ease-in-out !important,
    filter 0.6s ease-in-out !important,
    box-shadow 0.8s ease-in-out !important,
    visibility 0s linear 0.8s !important;
  will-change: transform, opacity, filter !important;
}

/* Свечение центральной карточки */
.service-carousel-card.center-card {
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 40px rgba(255, 155, 74, 0.4) !important;
}

/* Card content styles */
.service-carousel-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--text-primary);
}

.service-carousel-card .service-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  text-align: left;
}

.service-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features li i {
  color: var(--accent-contrast);
  font-size: 12px;
}

.service-price {
  margin: 18px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.price-value {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-btn {
  width: 100%;
  padding: 14px 28px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  color: white;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.service-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 155, 74, 0.4);
}

.service-btn i {
  font-size: 18px;
}

/* Navigation buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
  color: var(--text-primary);
  font-size: 19px;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 155, 74, 0.5);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(255, 155, 74, 0.3);
}

.carousel-prev {
  left: -80px;
}

.carousel-next {
  right: -80px;
}

/* Indicators */
.carousel-indicators {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  z-index: 100;
  width: 100%;
  margin: 0;
  padding: 0;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.2);
}

.indicator.active {
  background: var(--gradient-primary);
  border-color: var(--accent-primary);
  width: 32px;
  border-radius: 6px;
}

/* Section description */
.section-description {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: -16px;
  margin-bottom: 32px;
}

/* Service icon for carousel cards */
.service-carousel-card .service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  color: white;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-carousel-card .service-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s ease;
  z-index: -1;
}

.service-carousel-card:hover .service-icon::before {
  transform: scale(1);
}

.service-carousel-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(255, 155, 74, 0.5);
}

/* Стили для изображений в карточках услуг */
.service-icon-image {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.service-icon-image::before {
  display: none; /* Отключаем псевдоэлемент для изображений */
}

.service-carousel-card .service-icon-image::before {
  display: none; /* Отключаем псевдоэлемент для изображений в иконке */
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 18px;
  position: relative;
  z-index: 1;
}

/* Стили для изображения в круглой иконке */
.service-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.service-carousel-card:hover .service-icon-image {
  border-color: rgba(255, 155, 74, 0.4);
  box-shadow: 0 15px 40px rgba(255, 155, 74, 0.5);
  transform: scale(1.1) rotate(5deg); /* Сохраняем эффект как у обычной иконки */
}

.service-carousel-card:hover .service-image {
  transform: scale(1.02);
  transition: transform 0.4s ease;
}

.service-carousel-card:hover .service-icon-img {
  transform: scale(1.05);
  transition: transform 0.4s ease;
}

/* Old grid styles (kept for backwards compatibility if needed) */
.service-card .service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 32px;
  color: white;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card h3 {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

.service-card .service-description {
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.service-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.service-card li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-card li:last-child {
  border-bottom: none;
}

.price {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 14px;
}

/* Stats Section */
.stats-section {
  background: rgba(255, 255, 255, 0.02);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 24px;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon::before {
  transform: scale(1);
}

.stat-card:hover .stat-icon {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.stat-value {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-text {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Process Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 0;
  position: relative;
}

/* --- Process steps scroll animation --- */
.process-step {
  text-align: center;
  padding: 0;
  position: relative;
  background: transparent;
  border: var(--panel-border);
  border-radius: var(--panel-radius);
  box-shadow: var(--panel-shadow);
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 16 / 9;
  /* Animation styles */
  opacity: 0;
  transform: translateX(0);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out,
    box-shadow 0.35s ease,
    border-color 0.3s ease;
}

.process-step--left {
  transform: translateX(-40px);
}

.process-step--right {
  transform: translateX(40px);
}

.process-step.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.15) 0%, 
    rgba(118, 75, 162, 0.15) 50%,
    rgba(255, 120, 73, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.process-step:hover::before {
  opacity: 1;
}

.process-step:hover {
  transform: translateY(-8px);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 
    0 26px 76px rgba(0, 0, 0, 0.78),
    0 12px 40px rgba(102, 126, 234, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 2px solid rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s ease;
}

.process-step:hover .step-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 
    0 12px 48px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Стили для изображений в карточках процесса - занимают всю площадь */
.step-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  transition: transform 0.4s ease;
}

/* Overlay для читаемости текста */
.step-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
  transition: opacity 0.4s ease;
}

/* Контент поверх картинки */
.step-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.process-step:hover .step-image {
  transform: scale(1.05);
}

.process-step:hover .step-overlay {
  opacity: 0.9;
}

.step-footer {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  text-align: left;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--btn-radius);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 3px 7px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  min-height: 0;
  font-family: var(--font-display);
  font-size: clamp(0.56rem, 0.68vw, 0.7rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  margin: 0;
}

/* Уменьшаем размер контейнера для первого шага */
.process-step:nth-child(1) .step-footer {
  padding: 3px 7px;
  min-height: 0;
}

/* Центр. шаг: держим подпись в одну строку на десктопе */
.process-step:nth-child(2) .step-footer {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

/* Левый/правый шаги: такая же компактная одна строка */
.process-step:nth-child(1) .step-footer,
.process-step:nth-child(3) .step-footer {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .process-step:nth-child(2) .step-footer {
    white-space: normal;
  }
  .process-step:nth-child(1) .step-footer,
  .process-step:nth-child(3) .step-footer {
    white-space: normal;
  }
}

.step-footer:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.step-footer:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.12);
}

.step-content:hover h3 {
  transform: translateY(-2px);
}

.step-content p {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  font-size: 16px;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.step-content:hover p {
  color: rgba(255, 255, 255, 1);
}

/* Добавляем декоративные элементы */
.process-step::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
  z-index: 1;
}

.process-step:hover::after {
  opacity: 1;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: rotate(45deg) translateX(-100%); }
  100% { transform: rotate(45deg) translateX(100%); }
}

/* Специальные стили для каждого этапа */
.process-step:nth-child(1) .step-number {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.process-step:nth-child(2) .step-number {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.process-step:nth-child(3) .step-number {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.process-step:nth-child(4) .step-number {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Соединительные линии между этапами */
.process-grid::before {
  content: '';
  position: absolute;
  top: 90px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(102, 126, 234, 0.3) 25%, 
    rgba(118, 75, 162, 0.3) 50%, 
    rgba(255, 120, 73, 0.3) 75%, 
    transparent 100%);
  z-index: 0;
}

/* Testimonials */
.testimonials {
  background: radial-gradient(circle at 0% 0%, rgba(255, 155, 74, 0.12), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(126, 99, 255, 0.16), transparent 55%);
}

/* Поднимаем заголовок в секции testimonials */
.testimonials .section-title {
  margin-top: -40px; /* Поднимаем заголовок выше */
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: -30px auto 0; /* Поднимаем контейнер с отзывами выше */
  overflow: hidden;
  border-radius: 26px;
}

.testimonial-card {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: var(--panel-radius);
  padding: 40px;
  backdrop-filter: blur(10px);
  display: none;
  animation: fadeIn 0.5s ease;
  box-shadow: var(--panel-shadow);
}

.testimonial-card.active {
  display: block;
}

.testimonial-content {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 32px;
  font-style: italic;
  color: var(--text-secondary);
}

.testimonial-content::before {
  content: '"';
  font-size: 48px;
  color: var(--gradient-primary);
  line-height: 1;
  float: left;
  margin-right: 8px;
  margin-top: -8px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.author-name {
  font-family: var(--font-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.author-position {
  color: var(--text-secondary);
  font-size: 14px;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px; /* Уменьшаем отступ сверху, поднимаем индикаторы выше */
}

.testimonial-btn {
  min-width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.25s ease;
}

.testimonial-btn.active {
  background: var(--gradient-primary);
  width: 32px;
  box-shadow: 0 12px 32px rgba(255, 155, 74, 0.35);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Contact Section */
.contact {
  text-align: center;
  background: radial-gradient(circle at 0% 0%, rgba(255, 155, 74, 0.12), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(126, 99, 255, 0.16), transparent 55%);
}

.contact-description {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.contact-card {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: var(--panel-radius);
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.78);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon::before {
  transform: scale(1);
}

.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.contact-card h3 {
  font-family: var(--font-primary);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 14px;
}

.contact-link {
  min-height: calc(var(--btn-height) - 6px);
  padding: calc(var(--btn-padding-y) - 4px) calc(var(--btn-padding-x) - 6px);
  border-radius: var(--btn-radius);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: var(--btn-font-weight);
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-family: var(--btn-font-family);
  text-transform: none;
  letter-spacing: 0.02em;
  box-shadow: var(--btn-shadow-secondary);
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-link:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 120%);
  width: min(1100px, calc(100% - 32px));
  background: rgba(10, 10, 10, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 1100;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-banner.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-banner p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--accent-contrast);
  text-decoration: underline;
}

.cookie-banner .cookie-action {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }

  .cookie-banner .cookie-action {
    width: 100%;
  }

  .cookie-banner .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px; /* Переместили влево, чтобы не перекрывать ботов */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  color: #0b0b0b;
  font-size: 19px;
  z-index: 999; /* Ниже ботов */
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Chat Interface Enhancements */
.chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

.chat-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.chat-container {
  width: 90%;
  max-width: 500px;
  height: 600px;
  background: rgba(18, 18, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(1);
  transition: transform 0.3s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chat-overlay.hidden .chat-container {
  transform: scale(0.9);
}

.chat-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.chat-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff7849 0%, #ff4500 50%, #ffa500 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(255, 120, 73, 0.3);
  border: 2px solid rgba(255, 165, 0, 0.4);
  background-image: url('../images/bro-avatar.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.chat-avatar.fallback {
  display: none !important;
}

.chat-info h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.chat-info p {
  font-size: 14px;
  color: #ff7849;
  margin: 0;
}

.chat-close {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.chat-close:hover {
  background: rgba(255, 120, 73, 0.1);
  color: #ff7849;
  transform: scale(1.1);
}

.chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.chat-message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ff7849 0%, #ff4500 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  margin-right: 12px;
  box-shadow: 0 2px 8px rgba(255, 120, 73, 0.3);
  background-image: url('../images/bro-avatar.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.message-avatar.fallback {
  display: none !important;
}

.chat-message.user .message-avatar {
  background: rgba(255, 255, 255, 0.1);
  margin-right: 0;
  margin-left: 12px;
}

.message-content {
  background: rgba(255, 120, 73, 0.15);
  border: 1px solid rgba(255, 120, 73, 0.3);
  border-radius: 18px;
  padding: 12px 16px;
  max-width: 70%;
  word-wrap: break-word;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.chat-message.user .message-content {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-left: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Quick Questions */
.quick-questions {
  padding: 16px;
  border-top: 1px solid rgba(255, 120, 73, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-btn {
  padding: 8px 16px;
  border: 1px solid rgba(255, 120, 73, 0.3);
  border-radius: 20px;
  background: rgba(255, 120, 73, 0.1);
  color: #ff7849;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-btn:hover {
  background: rgba(255, 120, 73, 0.2);
  border-color: #ff7849;
  transform: translateY(-1px);
}

/* Chat Input */
#chat-input {
  flex: 1;
  background: rgba(255, 120, 73, 0.05);
  border: 1px solid rgba(255, 120, 73, 0.2);
  border-radius: 25px;
  padding: 12px 20px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

#chat-input::placeholder {
  color: rgba(255, 120, 73, 0.6);
}

#chat-input:focus {
  border-color: #ff7849;
  box-shadow: 0 0 0 3px rgba(255, 120, 73, 0.1);
}

#chat-send {
  background: linear-gradient(135deg, #ff7849 0%, #ff4500 100%);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  font-size: 16px;
}

#chat-send:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 120, 73, 0.4);
}

/* Tilt Effect */
[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 100px 0 80px;
  }

  .hero-title {
    font-size: 36px;
    line-height: 1.2;
  }

  .hero-actions {
    flex-direction: column;
    gap: 16px;
  }

  .new-year-banner-wrapper {
    flex-direction: row;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .new-year-text-left,
  .new-year-text-right {
    font-size: 14px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .new-year-text-left {
    top: 30%;
    font-size: 14px;
  }
  
  .new-year-text-right {
    top: 65%;
    font-size: 13px;
  }

  /* Дополнительная защита для главной страницы в мобильной версии */
  .hero-actions .new-year-button,
  .hero .new-year-button {
    width: 478px !important;
    max-width: 478px !important;
    height: 96px !important;
    max-height: 96px !important;
    aspect-ratio: 478 / 96;
  }

  .hero-actions .new-year-video,
  .hero .new-year-video,
  .new-year-button .new-year-video {
    width: 100% !important;
    height: 100% !important;
    max-width: 478px !important;
    max-height: 96px !important;
    object-fit: cover !important;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 16px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
}

  .service-card {
    padding: 30px 20px;
  }

  /* Mobile carousel adjustments */
  .services-carousel-wrapper {
    height: 700px;
    margin-top: 40px;
    perspective: 1200px;
  }

  .service-carousel-card {
    width: 340px;
    padding: 28px 24px;
  }

  .service-carousel-card .service-icon {
    width: 65px;
    height: 65px;
    font-size: 26px;
    margin-bottom: 16px;
  }

  .service-carousel-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
  }

  .service-carousel-card .service-description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .service-features {
    margin: 16px 0;
  }

  .service-features li {
    font-size: 13px;
    padding: 7px 0;
  }

  .service-price {
    margin: 16px 0;
    padding: 14px;
  }

  .price-value {
    font-size: 24px;
  }

  .carousel-nav {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .carousel-indicators {
    bottom: -50px;
    left: 0;
    right: 0;
    gap: 8px;
    justify-content: center;
    width: 100%;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }

  .indicator.active {
    width: 28px;
  }

  .section-description {
    font-size: 16px;
    margin-top: -20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .process-grid::before {
    display: none;
  }
  
  .process-step {
    padding: 30px 20px;
  }
  
  .step-number {
    width: 70px;
    height: 70px;
    font-size: 19px;
    margin-bottom: 24px;
  }
  
  .process-step h3 {
    font-size: 19px;
    margin-bottom: 16px;
  }
  
  .process-step p {
    font-size: 14px;
  }

  .testimonials-slider {
    padding: 0 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-actions {
    flex-direction: column;
    gap: 16px;
  }

  /* Chat Mobile Styles */
  .chat-container {
    width: 95%;
    height: 90vh;
    max-height: 600px;
  }

  .chat-header {
    padding: 16px 20px;
  }

  .chat-messages {
  padding: 20px;
  }

  .quick-questions {
    padding: 12px 20px;
  }

  .quick-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .chat-input-container {
    padding: 16px 20px;
   }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .new-year-banner-wrapper {
    gap: 10px;
  }

  .new-year-text-left,
  .new-year-text-right {
    font-size: 12px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .new-year-text-left {
    top: 30%;
    font-size: 12px;
  }
  
  .new-year-text-right {
    top: 65%;
    font-size: 11px;
  }

  /* Защита для главной страницы в мобильной версии (480px) */
  .hero-actions .new-year-button,
  .hero .new-year-button {
    width: 478px !important;
    max-width: 478px !important;
    height: 96px !important;
    max-height: 96px !important;
    aspect-ratio: 478 / 96;
  }

  .hero-actions .new-year-video,
  .hero .new-year-video,
  .new-year-button .new-year-video {
    width: 100% !important;
    height: 100% !important;
    max-width: 478px !important;
    max-height: 96px !important;
    object-fit: cover !important;
  }
  
  .hero-description {
    font-size: 18px;
  }
  
  .section-title {
     font-size: 2rem;
   }
  
  .service-card {
    padding: 32px 24px;
  }
  
  /* Small mobile carousel adjustments */
  .services-carousel-wrapper {
    height: 750px;
    margin-top: 30px;
  }

  .service-carousel-card {
    width: 300px;
    padding: 24px 20px;
  }

  .service-carousel-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .service-carousel-card .service-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
    margin-bottom: 16px;
  }

  .service-carousel-card .service-description {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .service-features {
    margin: 14px 0;
  }

  .service-features li {
    font-size: 12px;
    padding: 6px 0;
  }

  .service-price {
    margin: 14px 0;
    padding: 14px;
  }

  .price-value {
    font-size: 22px;
  }

  .service-btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .carousel-nav {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .carousel-prev {
    left: 5px;
  }

  .carousel-next {
    right: 5px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}

/* Service Icons Enhanced */
.service-card:nth-child(1) .service-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service-card:nth-child(2) .service-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.service-card:nth-child(3) .service-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.service-card:nth-child(4) .service-icon {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Stats Icons Enhanced */
.stat-card:nth-child(1) .stat-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(2) .stat-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) .stat-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) .stat-icon {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Contact Icons Enhanced */
.contact-card:nth-child(1) .contact-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.contact-card:nth-child(2) .contact-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.contact-card:nth-child(3) .contact-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.contact-card:nth-child(4) .contact-icon {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon::before {
  transform: scale(1);
}

.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Assistants Section */
.assistants-section {
  background: radial-gradient(circle at 0% 0%, rgba(255, 155, 74, 0.12), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(126, 99, 255, 0.16), transparent 55%);
  position: relative;
  isolation: isolate;
  z-index: 1;
}

/* Ограничиваем body::before оверлей - он заканчивается над карточками ботов */
.assistants-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  /* Вычисляем высоту: заголовок (~60px) + описание (~80px) + отступ до сетки (30px) - граница заканчивается прямо под описанием */
  height: calc(60px + 80px + 30px); /* Поднимаем нижнюю границу оверлея - она заканчивается сразу после описания, до карточек */
  /* Перекрываем body::before оверлей */
  background: rgba(5, 5, 5, 0.25);
  pointer-events: none;
  z-index: 1;
}

/* Убираем body::before оверлей над карточками - поднимаем карточки выше */
.assistants-section .container {
  position: relative;
  z-index: 1;
}

.assistants-section .assistants-grid {
  position: relative;
  z-index: 10; /* Поднимаем выше body::before (z-index: 0) */
}

.assistants-section .assistant-card {
  position: relative;
  z-index: 10; /* Поднимаем карточки выше body::before оверлея */
}

@media (max-width: 768px) {
  .assistants-section::before {
    height: calc(50px + 80px + 30px); /* Поднимаем нижнюю границу оверлея - она заканчивается сразу после описания на мобильных */
  }
}


.section-description {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 40px;
}

/* Поднимаем описание в секции "НАШИ AI АССИСТЕНТЫ" */
.assistants-section .section-description {
  margin-top: 12px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .section-title {
    margin-bottom: 32px;
    line-height: 1.18;
  }

  .benefits-section .section-title,
  .process-section .section-title,
  .assistants-section .section-title,
  .testimonials .section-title {
    margin-top: 0;
  }

  .section-description {
    font-size: 16px;
    margin-top: 12px;
    margin-bottom: 26px;
  }

  .process-grid {
    margin-top: 0;
    gap: 24px;
  }

  .testimonials-slider {
    margin: 12px auto 0;
  }
}

.assistants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px; /* Поднимаем контейнер с ботами выше */
  margin-bottom: -20px; /* Небольшое уменьшение отступа снизу */
  grid-template-rows: calc(var(--service-card-height-desktop) * 1.2);
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .assistants-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: calc(var(--service-card-height-tablet) * 1.2);
  }
}

@media (max-width: 768px) {
  .assistants-grid {
    grid-template-columns: 1fr;
    grid-template-rows: calc(var(--service-card-height-mobile) * 1.2);
    gap: 14px;
  }
}

.assistant-card {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: var(--panel-radius);
  padding: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--panel-shadow);
  width: 100%;
  height: calc(var(--service-card-height-desktop) * 1.2);
}

@media (max-width: 1024px) {
  .assistant-card {
    height: calc(var(--service-card-height-tablet) * 1.2);
  }
}

@media (max-width: 768px) {
  .assistant-card {
    height: calc(var(--service-card-height-mobile) * 1.2);
  }
}

.assistant-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
  opacity: 0.85; /* Увеличиваем видимость изображений */
  transition: opacity 0.3s ease;
}

.assistant-card:hover .assistant-bg-image {
  opacity: 1; /* При наведении изображение полностью видно */
}

/* Убираем фон у карточки с фоновым изображением */
.assistant-card:has(.assistant-bg-image) {
  background-color: transparent;
}

.assistant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.1), 
    rgba(118, 75, 162, 0.1),
    rgba(240, 147, 251, 0.1),
    rgba(245, 87, 108, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.assistant-card:hover::before {
  opacity: 1;
}

.assistant-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.82);
}

.assistant-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 28px;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.assistant-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.assistant-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.assistant-card:hover .assistant-icon::before {
  transform: scale(1);
}

.assistant-card:hover .assistant-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.assistant-content {
  position: relative;
  z-index: 1;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.assistant-footer {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  text-align: left;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--btn-radius);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  min-height: 0;
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 0.9vw, 0.86rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  line-height: 1.4;
  width: fit-content;
  max-width: calc(100% - 16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .assistant-footer {
    position: static;
    margin-top: auto;
    white-space: normal;
    max-width: 100%;
  }
}

.assistant-footer:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.assistant-footer:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.12);
}

.assistant-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  margin-bottom: 0;
  text-align: center;
  position: relative;
  z-index: 2;
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  letter-spacing: 0.02em;
}

.assistant-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.feature-tag {
  background: rgba(102, 126, 234, 0.2);
  color: var(--accent-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.assistant-card:hover .feature-tag {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
}

.try-assistant-btn {
  width: 100%;
  background: var(--gradient-primary);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  font-weight: var(--btn-font-weight);
  font-size: 16px;
  letter-spacing: var(--btn-letter-spacing);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--btn-shadow-primary);
  text-transform: none;
}

/* Скрываем кнопки в секции ассистентов */
.assistants-section .try-assistant-btn,
.assistants-section .try-assistant-btn.featured,
.assistants-section .assistant-card button {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.try-assistant-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-primary-strong);
}

.try-assistant-btn:active {
  transform: translateY(0);
  box-shadow: var(--btn-shadow-primary-active);
}

/* Уникальные градиенты для каждого ассистента */
/* Хипыч - синий градиент */
.assistant-card:nth-child(1) .assistant-icon {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

/* Кот Бро - оранжевый градиент (featured) */
.assistant-card:nth-child(2) .assistant-icon {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

/* НейроVалюша - фиолетовый градиент */
.assistant-card:nth-child(3) .assistant-icon {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

/* Хипыч - Выделенная карточка */
.assistant-card.featured-bot {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(251, 191, 36, 0.15) 100%);
  border: 2px solid rgba(249, 115, 22, 0.4);
  transform: scale(1); /* Такой же размер, как у боковых карточек */
  order: 0; /* В центре (между первой и третьей) */
  z-index: 1;
}

.assistant-card.featured-bot::before {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0.15;
}

.assistant-card.featured-bot:hover::before {
  opacity: 0.25;
}

.assistant-card.featured-bot .assistant-icon.featured {
  background: var(--gradient-primary);
  color: white;
  font-size: 32px;
  border: 3px solid rgba(102, 126, 234, 0.5);
}

.assistant-card.featured-bot .assistant-icon.featured::before {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0.8;
}

.assistant-card.featured-bot h3 {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 24px;
  margin: 24px 0 16px;
}

.try-assistant-btn.featured {
  background: var(--gradient-primary);
  font-weight: 600;
  font-size: 16px;
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.try-assistant-btn.featured:hover {
  transform: scale(1.15);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .assistant-card.featured-bot {
    transform: scale(1);
    order: unset;
  }
  
  .try-assistant-btn.featured {
    transform: scale(1);
  }
  
  .try-assistant-btn.featured:hover {
    transform: scale(1.05);
  }
}

/* =============================================
   ПОРТФОЛИО / НАШИ РАБОТЫ
   ============================================= */

.portfolio-section {
  padding: var(--section-space) 0;
  position: relative;
  z-index: 1;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.portfolio-card {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: var(--panel-radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--panel-shadow);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 
    0 28px 80px rgba(0, 0, 0, 0.82),
    0 12px 40px rgba(102, 126, 234, 0.14);
}

.portfolio-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.portfolio-video,
.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-video,
.portfolio-card:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-content {
  padding: 24px;
}

.portfolio-content h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.4;
}

.portfolio-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* =============================================
   КОТ БРО - РЫЖИЙ AI-ПОМОЩНИК
   ============================================= */

/* ===== ХИПЫЧ ВИДЖЕТ ===== */

/* ===== GLASS UI КНОПКИ - Убраны, стили создаются динамически через JS ===== */

/* Кнопка вызова Хипыча - СТАРАЯ (для совместимости) */
.hipych-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-hipych 2s infinite;
  background-image: url('../images/hipych-avatar.jpg');
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(102, 126, 234, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1002;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1) !important;
}

.hipych-trigger:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.7);
}

.hipych-trigger.active {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  background-image: url('../images/hipych-avatar.jpg');
  background-size: cover;
  background-position: center;
}

@keyframes pulse-hipych {
  0% { box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5); }
  50% { box-shadow: 0 6px 25px rgba(102, 126, 234, 0.8); }
  100% { box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5); }
}

/* =============================================
   GLASS UI КНОПКИ - ПЛАВАЮЩИЕ АНИМАЦИИ И СВЕЧЕНИЕ
   ============================================= */

/* Плавающая анимация для Хипыча */
@keyframes glassFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
    filter: hue-rotate(0deg);
  }
  25% { 
    transform: translateY(-8px) rotate(2deg);
    filter: hue-rotate(5deg);
  }
  50% { 
    transform: translateY(-5px) rotate(-1deg);
    filter: hue-rotate(10deg);
  }
  75% { 
    transform: translateY(-10px) rotate(1deg);
    filter: hue-rotate(5deg);
  }
}

/* Плавающая анимация для Кота Бро */
@keyframes catFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
    filter: hue-rotate(0deg);
  }
  33% { 
    transform: translateY(-6px) rotate(-2deg);
    filter: hue-rotate(8deg);
  }
  66% { 
    transform: translateY(-3px) rotate(1deg);
    filter: hue-rotate(15deg);
  }
}

/* Плавающая анимация для НейроVалюши */
@keyframes valyushaFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
    filter: hue-rotate(0deg);
  }
  33% { 
    transform: translateY(-6px) rotate(-2deg);
    filter: hue-rotate(8deg);
  }
  66% { 
    transform: translateY(-3px) rotate(1deg);
    filter: hue-rotate(15deg);
  }
}

/* Блики для Хипыча */
@keyframes buttonShine {
  0%, 100% { 
    transform: translateX(-100%) rotate(45deg);
    opacity: 0;
  }
  50% { 
    transform: translateX(100%) rotate(45deg);
    opacity: 1;
  }
}

/* Блики для Кота Бро */
@keyframes catShine {
  0%, 100% { 
    transform: translateX(-100%) rotate(45deg) scale(0.8);
    opacity: 0;
  }
  50% { 
    transform: translateX(100%) rotate(45deg) scale(1.2);
    opacity: 1;
  }
}

/* Блики для НейроVалюши */
@keyframes valyushaShine {
  0%, 100% { 
    transform: translateX(-100%) rotate(45deg) scale(0.8);
    opacity: 0;
  }
  50% { 
    transform: translateX(100%) rotate(45deg) scale(1.2);
    opacity: 1;
  }
}

/* Вращающаяся граница для Хипыча */
@keyframes borderRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Вращающаяся граница для Кота Бро */
@keyframes catBorderRotate {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.05); }
  to { transform: rotate(360deg) scale(1); }
}

/* Вращающаяся граница для НейроVалюши */
@keyframes valyushaBorderRotate {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.05); }
  to { transform: rotate(360deg) scale(1); }
}

/* Пульсация бейджа для Хипыча */
@keyframes badgePulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% { 
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

/* Пульсация бейджа для Кота Бро */
@keyframes catBadgePulse {
  0%, 100% { 
    transform: scale(1) rotate(0deg);
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
  }
  50% { 
    transform: scale(1.3) rotate(180deg);
    box-shadow: 0 0 0 8px rgba(251, 191, 36, 0);
  }
}

/* Пульсация бейджа для НейроVалюши */
@keyframes valyushaBadgePulse {
  0%, 100% { 
    transform: scale(1) rotate(0deg);
    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
  }
  50% { 
    transform: scale(1.3) rotate(180deg);
    box-shadow: 0 0 0 8px rgba(236, 72, 153, 0);
  }
}

/* Пульсирующее свечение для Хипыча */
@keyframes glowPulseHipych {
  0%, 100% {
    box-shadow: 
      0 15px 35px rgba(59, 130, 246, 0.4),
      0 0 20px rgba(59, 130, 246, 0.3),
      0 0 40px rgba(59, 130, 246, 0.2),
      inset 0 2px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 
      0 15px 35px rgba(59, 130, 246, 0.7),
      0 0 30px rgba(59, 130, 246, 0.5),
      0 0 60px rgba(59, 130, 246, 0.3),
      inset 0 2px 0 rgba(255, 255, 255, 0.4);
  }
}

/* Пульсирующее свечение для Кота Бро */
@keyframes glowPulseCat {
  0%, 100% {
    box-shadow: 
      0 15px 35px rgba(249, 115, 22, 0.4),
      0 0 20px rgba(249, 115, 22, 0.3),
      0 0 40px rgba(249, 115, 22, 0.2),
      inset 0 2px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 
      0 15px 35px rgba(249, 115, 22, 0.7),
      0 0 30px rgba(249, 115, 22, 0.5),
      0 0 60px rgba(249, 115, 22, 0.3),
      inset 0 2px 0 rgba(255, 255, 255, 0.4);
  }
}

/* Пульсирующее свечение для НейроVалюши */
@keyframes glowPulseValyusha {
  0%, 100% {
    box-shadow: 
      0 15px 35px rgba(168, 85, 247, 0.4),
      0 0 20px rgba(236, 72, 153, 0.3),
      0 0 40px rgba(168, 85, 247, 0.2),
      inset 0 2px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 
      0 15px 35px rgba(168, 85, 247, 0.7),
      0 0 30px rgba(236, 72, 153, 0.5),
      0 0 60px rgba(168, 85, 247, 0.3),
      inset 0 2px 0 rgba(255, 255, 255, 0.4);
  }
}

/* =============================================
   GLASS UI КНОПКИ - АНИМАЦИИ И ЭФФЕКТЫ
   ============================================= */

/* Принудительное применение анимаций для Хипыча */
.glass-ui-hipych-button {
  animation: glassFloat 4s ease-in-out infinite !important;
  will-change: transform, filter !important;
  backface-visibility: hidden !important;
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 1002 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Блики для Хипыча - внутренний div */
.glass-ui-hipych-button > div:first-of-type {
  animation: buttonShine 3s ease-in-out infinite !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Пульсирующий бейдж для Хипыча */
.glass-ui-hipych-button .glass-notification-badge {
  animation: badgePulse 2s infinite !important;
}

/* Вращающаяся граница для Хипыча */
.glass-ui-hipych-button::before {
  content: '' !important;
  position: absolute !important;
  top: -2px !important;
  left: -2px !important;
  right: -2px !important;
  bottom: -2px !important;
  background: linear-gradient(45deg, #3b82f6, transparent, #3b82f6) !important;
  border-radius: 50% !important;
  z-index: -1 !important;
  animation: borderRotate 4s linear infinite !important;
  pointer-events: none !important;
}

/* Принудительное применение анимаций для Кота Бро */
.glass-ui-bro-cat-button {
  animation: catFloat 3s ease-in-out infinite !important;
  will-change: transform, filter !important;
  backface-visibility: hidden !important;
  position: fixed !important;
  bottom: 100px !important;
  right: 20px !important;
  z-index: 1003 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Принудительное применение анимаций для НейроVалюши */
.glass-ui-valyusha-button {
  animation: valyushaFloat 3.2s ease-in-out infinite !important;
  will-change: transform, filter !important;
  backface-visibility: hidden !important;
  position: fixed !important;
  bottom: 180px !important;
  right: 20px !important;
  z-index: 1004 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important; /* не обрезаем свечение и вращающуюся рамку */
}

/* Блики для Кота Бро - внутренний div */
.glass-ui-bro-cat-button > div:first-of-type {
  animation: catShine 2.5s ease-in-out infinite !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Блики для НейроVалюши - внутренний div */
.glass-ui-valyusha-button > div:first-of-type {
  animation: valyushaShine 2.8s ease-in-out infinite !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Пульсирующий бейдж для Кота Бро */
.glass-ui-bro-cat-button .glass-cat-notification-badge {
  animation: catBadgePulse 1.8s infinite !important;
}

/* Пульсирующий бейдж для НейроVалюши */
.glass-ui-valyusha-button .glass-valyusha-notification-badge {
  animation: valyushaBadgePulse 1.8s infinite !important;
}

/* Вращающаяся граница для Кота Бро */
.glass-ui-bro-cat-button::before {
  content: '' !important;
  position: absolute !important;
  top: -2px !important;
  left: -2px !important;
  right: -2px !important;
  bottom: -2px !important;
  background: linear-gradient(45deg, #f97316, transparent, #f97316) !important;
  border-radius: 50% !important;
  z-index: -1 !important;
  animation: catBorderRotate 3s linear infinite !important;
  pointer-events: none !important;
}

/* Вращающаяся граница для НейроVалюши */
.glass-ui-valyusha-button::before {
  content: '' !important;
  position: absolute !important;
  top: -2px !important;
  left: -2px !important;
  right: -2px !important;
  bottom: -2px !important;
  background: linear-gradient(45deg, #a855f7, transparent, #ec4899) !important;
  border-radius: 50% !important;
  z-index: -1 !important;
  animation: valyushaBorderRotate 3s linear infinite !important;
  pointer-events: none !important;
}

/* =============================================
   GLASS UI КНОПКИ - ДОПОЛНИТЕЛЬНОЕ СВЕЧЕНИЕ
   ============================================= */

/* Свечение вокруг Хипыча (дополнительный слой) - ТОЛЬКО для десктопа */
@media screen and (min-width: 769px) {
  .glass-ui-hipych-button::after {
    content: '' !important;
    position: absolute !important;
    top: -6px !important;
    left: -6px !important;
    right: -6px !important;
    bottom: -6px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, rgba(59, 130, 246, 0.2) 40%, transparent 70%) !important;
    z-index: -2 !important;
    animation: glowPulseHipych 2s ease-in-out infinite !important;
    pointer-events: none !important;
    filter: blur(8px) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Свечение вокруг Кота Бро (дополнительный слой) - ТОЛЬКО для десктопа */
  .glass-ui-bro-cat-button::after {
    content: '' !important;
    position: absolute !important;
    top: -6px !important;
    left: -6px !important;
    right: -6px !important;
    bottom: -6px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.5) 0%, rgba(249, 115, 22, 0.2) 40%, transparent 70%) !important;
    z-index: -2 !important;
    animation: glowPulseCat 2s ease-in-out infinite !important;
    pointer-events: none !important;
    filter: blur(8px) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Свечение вокруг НейроVалюши (дополнительный слой) - ТОЛЬКО для десктопа */
  .glass-ui-valyusha-button::after {
    content: '' !important;
    position: absolute !important;
    top: -6px !important;
    left: -6px !important;
    right: -6px !important;
    bottom: -6px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.5) 0%, rgba(236, 72, 153, 0.2) 40%, transparent 70%) !important;
    z-index: -2 !important;
    animation: glowPulseValyusha 2s ease-in-out infinite !important;
    pointer-events: none !important;
    filter: blur(8px) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Hover эффекты - ТОЛЬКО для десктопа, не конфликтуют с анимацией */
@media screen and (min-width: 769px) {
  .glass-ui-hipych-button.glass-ui-hipych-hover {
    box-shadow: 
      0 25px 50px rgba(59, 130, 246, 0.8),
      0 0 50px rgba(59, 130, 246, 0.6),
      0 0 80px rgba(59, 130, 246, 0.4),
      inset 0 2px 0 rgba(255, 255, 255, 0.5),
      inset 0 -2px 0 rgba(0, 0, 0, 0.2) !important;
    filter: brightness(1.2) saturate(1.1) !important;
  }

  .glass-ui-hipych-button.glass-ui-hipych-hover::after {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.7) 0%, rgba(59, 130, 246, 0.3) 40%, transparent 70%) !important;
    filter: blur(12px) !important;
  }

  .glass-ui-bro-cat-button.glass-ui-bro-cat-hover {
    box-shadow: 
      0 25px 50px rgba(249, 115, 22, 0.8),
      0 0 50px rgba(249, 115, 22, 0.6),
      0 0 80px rgba(249, 115, 22, 0.4),
      inset 0 2px 0 rgba(255, 255, 255, 0.5),
      inset 0 -2px 0 rgba(0, 0, 0, 0.2) !important;
    filter: brightness(1.2) saturate(1.1) hue-rotate(10deg) !important;
  }

  .glass-ui-bro-cat-button.glass-ui-bro-cat-hover::after {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.7) 0%, rgba(249, 115, 22, 0.3) 40%, transparent 70%) !important;
    filter: blur(12px) !important;
  }
}

/* Glass UI анимации создаются динамически через addGlassUIStyles() в JS файлах */
/* Оставляем только старые анимации для совместимости */

/* Виджет Хипыча */
.hipych-widget {
  position: fixed;
  bottom: 90px;
  right: 20px; /* Виджет Хипыча справа */
  width: 380px;
  height: 550px;
  max-height: calc(100vh - 110px);
  background: linear-gradient(135deg, #2e1a3c 0%, #3e2454 50%, #231233 100%);
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(102, 126, 234, 0.4);
  transform: scale(0);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1001; /* Виджет Хипыча выше кота */
}

.hipych-widget.active {
  transform: scale(1);
  opacity: 1;
}

/* Хедер Хипыча */
.hipych-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 18px 25px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hipych-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hipych-avatar {
  font-size: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/hipych-avatar.jpg');
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hipych-title {
  font-weight: 600;
  font-size: 18px;
  margin: 0;
}

.hipych-subtitle {
  font-size: 13px;
  opacity: 0.9;
  margin: 0;
}

.hipych-close {
  background: none;
  border: none;
  color: white;
  font-size: 19px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.hipych-close:hover {
  opacity: 1;
}

/* Сообщения Хипыча */
.hipych-messages {
  height: calc(100% - 80px); /* Уменьшаю отступы еще больше */
  min-height: 400px; /* Увеличиваю минимальную высоту */
  max-height: 460px; /* Увеличиваю максимальную высоту */
  overflow-y: auto;
  padding: 18px;
  background: #1a1a2e;
}

.hipych-message {
  display: flex;
  margin-bottom: 18px;
  animation: fadeInUp 0.3s ease;
}

.hipych-message.user {
  justify-content: flex-end;
}

.hipych-message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  background-image: url('../images/hipych-avatar.jpg');
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(102, 126, 234, 0.5);
}

.hipych-message.user .hipych-message-avatar {
  order: 1;
  margin-right: 0;
  margin-left: 12px;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  background-image: none;
  font-size: 19px;
}

.hipych-message-content {
  max-width: 280px;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.hipych-message.assistant .hipych-message-content {
  background: linear-gradient(135deg, #2d2d44 0%, #3a3a5c 100%);
  color: #e0e0e0;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.hipych-message.user .hipych-message-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* Быстрые кнопки */
.hipych-quick-actions {
  padding: 10px 15px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.1);
}

.hipych-quick-btn {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  border: 1px solid rgba(102, 126, 234, 0.3);
  color: #a1a1aa;
  padding: 12px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  text-align: center;
  line-height: 1.3;
}

.hipych-quick-btn:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
  border-color: rgba(102, 126, 234, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Поле ввода */
.hipych-input-container {
  padding: 15px;
  background: #16213e;
  display: flex;
  gap: 10px;
  align-items: center;
}

.hipych-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 20px;
  padding: 10px 15px;
  color: #e0e0e0;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.hipych-input:focus {
  border-color: rgba(102, 126, 234, 0.6);
}

.hipych-input::placeholder {
  color: rgba(224, 224, 224, 0.5);
}

.hipych-send {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.hipych-send:hover {
  transform: scale(1.1);
}

.hipych-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Индикатор печатания */
.hipych-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  color: rgba(224, 224, 224, 0.6);
  font-size: 12px;
}

.hipych-typing-dots {
  display: flex;
  gap: 3px;
}

.hipych-typing-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #667eea;
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.hipych-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.hipych-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Скроллбар для сообщений */
.hipych-messages::-webkit-scrollbar {
  width: 4px;
}

.hipych-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.hipych-messages::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.5);
  border-radius: 2px;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Статус подключения */
.hipych-status {
  position: absolute;
  top: 12px;
  right: 50px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-status 2s infinite;
}

.hipych-status.offline {
  background: #ef4444;
}

@keyframes pulse-status {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .hipych-widget {
    bottom: 100px;
    right: 10px;
    left: 10px;
    width: auto;
    height: 450px; /* Уменьшаем для мобильных */
    max-height: calc(100vh - 120px);
  }
  
  .hipych-trigger {
    bottom: 20px;
    right: 10px;
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
}

/* =============================================
   КОТ БРО - РЫЖИЙ AI-ПОМОЩНИК
   ============================================= */

/* ===== GLASS UI КНОПКА КОТА БРО - Убрана, стили создаются динамически через JS ===== */

/* Кнопка вызова Кота Бро - СТАРАЯ (для совместимости) */
.bro-cat-trigger {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 100%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(255, 140, 66, 0.5);
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  animation: pulse-bro-cat 2s infinite;
  background-image: url('../images/bro-avatar.jpg');
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(255, 140, 66, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1003 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1) !important;
}

.bro-cat-trigger:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(255, 140, 66, 0.7);
}

.bro-cat-trigger.active {
  background: linear-gradient(135deg, #ff6b1a 0%, #ff8c42 100%);
  background-image: url('../images/bro-avatar.jpg');
  background-size: cover;
  background-position: center;
}

@keyframes pulse-bro-cat {
  0% { box-shadow: 0 6px 25px rgba(255, 140, 66, 0.5); }
  50% { box-shadow: 0 6px 25px rgba(255, 140, 66, 0.8); }
  100% { box-shadow: 0 6px 25px rgba(255, 140, 66, 0.5); }
}

/* Скрываем аватар кота когда открыт чат Хипыча - УДАЛЕНО */
/* .hipych-widget.active ~ .bro-cat-trigger {
  opacity: 0.3;
  pointer-events: none;
  transform: scale(0.8);
} */

/* Скрываем аватар Хипыча когда открыт чат кота - УДАЛЕНО */
/* .bro-cat-widget.active ~ .hipych-trigger {
  opacity: 0.3;
  pointer-events: none;
  transform: scale(0.8);
} */

/* Виджет Кота Бро */
.bro-cat-widget {
  position: fixed;
  bottom: 90px;
  right: 100px; /* Виджет кота левее Хипыча */
  width: 380px;
  height: 550px;
  max-height: calc(100vh - 110px);
  background: linear-gradient(135deg, #2e1a0c 0%, #3e2414 50%, #231208 100%);
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(255, 140, 66, 0.3);
  border: 2px solid rgba(255, 140, 66, 0.4);
  transform: scale(0);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000; /* Виджет кота ниже Хипыча */
}

.bro-cat-widget.active {
  transform: scale(1);
  opacity: 1;
}

/* Хедер Кота Бро */
.bro-cat-header {
  background: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 100%);
  padding: 18px 25px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bro-cat-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.bro-cat-avatar {
  font-size: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/bro-avatar.jpg');
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.bro-cat-title {
  font-weight: 600;
  font-size: 18px;
  margin: 0;
}

.bro-cat-subtitle {
  font-size: 13px;
  opacity: 0.9;
  margin: 0;
}

.bro-cat-close {
  background: none;
  border: none;
  color: white;
  font-size: 19px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.bro-cat-close:hover {
  opacity: 1;
}

/* Сообщения Кота Бро */
.bro-cat-messages {
  height: calc(100% - 100px); /* Уменьшаю отступы еще больше */
  min-height: 380px; /* Увеличиваю минимальную высоту */
  max-height: 440px; /* Увеличиваю максимальную высоту */
  overflow-y: auto;
  padding: 18px;
  background: rgba(46, 26, 10, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bro-cat-message {
  display: flex;
  margin-bottom: 18px;
  animation: fadeInUp 0.3s ease;
}

.bro-cat-message.user {
  justify-content: flex-end;
}

.bro-cat-message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 12px;
  background: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 100%);
  color: white;
  background-image: url('../images/bro-avatar.jpg');
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 140, 66, 0.5);
}

.bro-cat-message.user .bro-cat-message-avatar {
  order: 1;
  margin-right: 0;
  margin-left: 12px;
  background: linear-gradient(135deg, #ff6b1a 0%, #ff8c42 100%);
  background-image: none;
  font-size: 19px;
}

.bro-cat-message-content {
  max-width: 280px;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.bro-cat-message.assistant .bro-cat-message-content {
  background: rgba(68, 44, 29, 0.8);
  color: #f4e8dc;
  border: 1px solid rgba(255, 140, 66, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bro-cat-message.user .bro-cat-message-content {
  background: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 100%);
  color: white;
}

/* Быстрые кнопки Кота Бро */
.bro-cat-quick-actions {
  padding: 10px 15px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.2);
}

.bro-cat-quick-btn {
  background: linear-gradient(135deg, rgba(255, 140, 66, 0.15) 0%, rgba(255, 107, 26, 0.15) 100%);
  border: 1px solid rgba(255, 140, 66, 0.3);
  color: #f4e8dc;
  padding: 12px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  text-align: center;
  line-height: 1.3;
}

.bro-cat-quick-btn:hover {
  background: linear-gradient(135deg, rgba(255, 140, 66, 0.25) 0%, rgba(255, 107, 26, 0.25) 100%);
  border-color: rgba(255, 140, 66, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Поле ввода Кота Бро */
.bro-cat-input-container {
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.bro-cat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 140, 66, 0.3);
  border-radius: 25px;
  background: rgba(255, 140, 66, 0.08);
  color: #f4e8dc;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bro-cat-input:focus {
  border-color: rgba(255, 140, 66, 0.6);
  background: rgba(255, 140, 66, 0.12);
}

.bro-cat-input::placeholder {
  color: rgba(244, 232, 220, 0.6);
}

.bro-cat-send {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 100%);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 16px;
}

.bro-cat-send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
}

.bro-cat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Индикатор печатания Кота Бро */
.bro-cat-typing {
  display: flex;
  margin-bottom: 18px;
  animation: fadeInUp 0.3s ease;
}

.bro-cat-typing-content {
  background: rgba(68, 44, 29, 0.8);
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 140, 66, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bro-cat-typing-dots {
  display: flex;
  gap: 4px;
}

.bro-cat-typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff8c42;
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.bro-cat-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.bro-cat-typing-dot:nth-child(2) { animation-delay: -0.16s; }

/* Статус подключения Кота Бро */
.bro-cat-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4CAF50;
  border: 2px solid white;
  animation: pulse-status 2s infinite;
}

.bro-cat-status.offline {
  background: #f44336;
}

/* Скроллбар для сообщений Кота Бро */
.bro-cat-messages::-webkit-scrollbar {
  width: 6px;
}

.bro-cat-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.bro-cat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 140, 66, 0.4);
  border-radius: 3px;
}

/* Мобильная адаптация для Кота Бро */
@media (max-width: 768px) {
  .bro-cat-widget {
    bottom: 180px; /* Выше Хипыча на мобильных */
    right: 10px;
    left: 10px;
    width: auto;
    height: 420px;
    max-height: calc(100vh - 190px);
  }
  
  .bro-cat-trigger {
    bottom: 90px; /* Выше Хипыча на мобильных */
    right: 15px;
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
  
  .hipych-widget {
    bottom: 80px;
    right: 10px;
    left: 10px;
    width: auto;
    height: 420px;
    max-height: calc(100vh - 100px);
  }
  
  .hipych-trigger {
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
  
  /* Обновляем высоту сообщений для мобильных */
  .bro-cat-messages {
    min-height: 240px;
    max-height: 280px;
  }
  
  .hipych-messages {
    min-height: 240px;
    max-height: 280px;
  }
}

/* Для очень маленьких мобильных экранов */
@media (max-width: 480px) {
  .bro-cat-widget {
    height: 380px;
    max-height: calc(100vh - 170px);
    bottom: 160px;
  }
  
  .hipych-widget {
    height: 380px;
    max-height: calc(100vh - 90px);
    bottom: 70px;
  }
  
  .bro-cat-trigger {
    bottom: 80px;
    width: 55px;
    height: 55px;
    font-size: 24px;
  }
  
  .hipych-trigger {
    bottom: 10px;
    width: 55px;
    height: 55px;
    font-size: 24px;
  }
  
  .bro-cat-messages, .hipych-messages {
    min-height: 200px;
    max-height: 240px;
  }
}

/* Дополнительные медиа-запросы для больших экранов */
@media (min-height: 900px) {
  .hipych-widget {
    height: 550px;
  }
  
  .bro-cat-widget {
    height: 550px;
  }
  
  .hipych-messages {
    max-height: 380px;
  }
  
  .bro-cat-messages {
    max-height: 380px;
  }
}

/* Стили для очень маленьких экранов */
@media (max-height: 600px) {
  .hipych-widget, .bro-cat-widget {
    height: 350px;
    max-height: calc(100vh - 80px);
  }
  
  .hipych-messages, .bro-cat-messages {
    height: 200px;
  }
}

/* Логика для предотвращения перекрытия виджетов - УДАЛЕНО */
/* .bro-cat-widget.active ~ .hipych-widget {
  opacity: 0.3;
  pointer-events: none;
  transform: scale(0.8);
  z-index: 999;
} */

/* .hipych-widget.active ~ .bro-cat-widget {
  opacity: 0.3;
  pointer-events: none;
  transform: scale(0.8);
  z-index: 999;
} */

/* Улучшенное позиционирование для очень маленьких экранов */
@media (max-height: 500px) {
  .hipych-widget, .bro-cat-widget {
    height: 400px;
  }
  
  .hipych-widget {
    max-height: calc(100vh - 80px);
    bottom: 20px;
  }
  
  .bro-cat-widget {
    max-height: calc(100vh - 120px);
    bottom: 100px;
  }
  
  .hipych-messages, .bro-cat-messages {
    min-height: 220px;
    max-height: 260px;
  }
  
  .bro-cat-trigger {
    bottom: 70px;
  }
  
  .hipych-trigger {
    bottom: 10px;
  }
}

/* Дополнительные стили для очень широких экранов */
@media (min-width: 1400px) {
  .hipych-widget, .bro-cat-widget {
    right: 50px;
  }
  
  .hipych-trigger, .bro-cat-trigger {
    right: 50px;
  }
}

/* Логика скрытия аватаров при активном виджете */

/* Когда открыт виджет Хипыча - скрываем кота */
/* .hipych-widget.active ~ .bro-cat-trigger {
  opacity: 0.3;
  pointer-events: none;
  transform: scale(0.8);
  transition: all 0.3s ease;
} */

/* Когда открыт виджет кота - скрываем Хипыча */
/* .bro-cat-widget.active ~ .hipych-trigger {
  opacity: 0.3;
  pointer-events: none;
  transform: scale(0.8);
  transition: all 0.3s ease;
} */

/* Дополнительное правило если элементы идут в другом порядке в DOM */
/* .hipych-trigger.active ~ .bro-cat-trigger {
  opacity: 0.3;
  pointer-events: none;
  transform: scale(0.8);
} */

/* .bro-cat-trigger.active ~ .hipych-trigger {
}

.bro-cat-trigger.active ~ .hipych-trigger {
  opacity: 0.3;
  pointer-events: none;
  transform: scale(0.8);
}

/* Улучшенные отступы для быстрых действий */
.hipych-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
  background: rgba(46, 26, 60, 0.3);
  border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.bro-cat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
  background: rgba(46, 26, 10, 0.5);
  border-top: 1px solid rgba(255, 140, 66, 0.2);
}

/* Z-index иерархия для корректного отображения */
.hipych-trigger {
  z-index: 1002; /* Хипыч выше кота */
}

.bro-cat-trigger {
  z-index: 1003 !important; /* Кот выше всего */
}

.hipych-widget {
  z-index: 1001; /* Виджет Хипыча выше кота */
}

.bro-cat-widget {
  z-index: 1000; /* Виджет кота ниже Хипыча */
}

/* Предотвращение перекрытия виджетов */
.hipych-widget.active {
  transform: scale(1);
  opacity: 1;
}

.bro-cat-widget.active {
  transform: scale(1);
  opacity: 1;
}

/* Когда активен один виджет, другой полностью скрывается - УДАЛЕНО */
/* .hipych-widget.active ~ .bro-cat-widget {
  display: none;
}

.bro-cat-widget.active ~ .hipych-widget {
  display: none;
} */

/* Адаптивные стили для средних экранов */
@media (max-height: 700px) {
  .hipych-widget, .bro-cat-widget {
    height: 480px;
    max-height: calc(100vh - 80px);
    bottom: 70px;
  }
  
  .hipych-messages, .bro-cat-messages {
    min-height: 280px;
    max-height: 320px;
  }
  
  .hipych-trigger, .bro-cat-trigger {
    bottom: 20px;
  }
}

/* Стили для маленьких экранов */
@media (max-height: 500px) {
  .hipych-widget, .bro-cat-widget {
    height: 400px;
    max-height: calc(100vh - 60px);
    bottom: 50px;
  }
  
  .hipych-messages, .bro-cat-messages {
    min-height: 200px;
    max-height: 250px;
  }
  
  .hipych-trigger, .bro-cat-trigger {
    bottom: 10px;
  }
}

/* Адаптивные стили для чатов - только базовые правила */
@media (max-width: 768px) {
  .bro-cat-widget, .hipych-widget {
    width: 350px;
    right: 10px;
  }
  
  .bro-cat-trigger {
    right: 90px;
  }
  
  .hipych-trigger {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .bro-cat-widget, .hipych-widget {
    width: 320px;
    height: 500px;
    max-height: calc(100vh - 80px);
  }
  
  .bro-cat-trigger {
    right: 80px;
    width: 60px;
    height: 60px;
  }
  
  .hipych-trigger {
    right: 10px;
    width: 60px;
    height: 60px;
  }
  
  .bro-cat-messages, .hipych-messages {
    min-height: 280px;
    max-height: 320px;
  }
}

/* Удаляем все остальные дублирующиеся медиа-запросы */

/* Glass UI Integration - скрываем старый чат по умолчанию */
.chat-overlay {
  display: none !important;
}

/* Показываем старый чат только если Glass UI не загружен */
.glass-ui-fallback .chat-overlay {
  display: flex !important;
}

/* Специальные стили для каждого этапа */
.process-step:nth-child(1) .step-icon {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  border-color: rgba(102, 126, 234, 0.4);
}

.process-step:nth-child(2) .step-icon {
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.15) 0%, rgba(245, 87, 108, 0.15) 100%);
  border-color: rgba(240, 147, 251, 0.4);
}

.process-step:nth-child(3) .step-icon {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.15) 0%, rgba(0, 242, 254, 0.15) 100%);
  border-color: rgba(79, 172, 254, 0.4);
}

.process-step:nth-child(4) .step-icon {
  background: linear-gradient(135deg, rgba(67, 233, 123, 0.15) 0%, rgba(56, 249, 215, 0.15) 100%);
  border-color: rgba(67, 233, 123, 0.4);
}

.process-step:nth-child(1):hover .step-icon {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
  border-color: rgba(102, 126, 234, 0.6);
}

.process-step:nth-child(2):hover .step-icon {
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.25) 0%, rgba(245, 87, 108, 0.25) 100%);
  border-color: rgba(240, 147, 251, 0.6);
}

.process-step:nth-child(3):hover .step-icon {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.25) 0%, rgba(0, 242, 254, 0.25) 100%);
  border-color: rgba(79, 172, 254, 0.6);
}

.process-step:nth-child(4):hover .step-icon {
  background: linear-gradient(135deg, rgba(67, 233, 123, 0.25) 0%, rgba(56, 249, 215, 0.25) 100%);
  border-color: rgba(67, 233, 123, 0.6);
}

/* Специальные стили для заголовков этапов */
.process-step:nth-child(1) h3 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process-step:nth-child(2) h3 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process-step:nth-child(3) h3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process-step:nth-child(4) h3 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* AI Assistant Styles */
.ai-assistant-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  height: 600px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(100%) scale(0.8);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  overflow: hidden;
}

.ai-assistant-widget.active {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ai-assistant-header {
  display: flex;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-assistant-avatar {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.ai-assistant-avatar i {
  color: white;
  font-size: 24px;
}

.ai-assistant-info h3 {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.ai-assistant-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0;
}

.ai-assistant-close {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ai-assistant-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.ai-assistant-messages {
  height: 320px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-assistant-message {
  display: flex;
  gap: 12px;
  animation: fadeInUp 0.3s ease;
}

.ai-assistant-message.user {
  flex-direction: row-reverse;
}

.ai-assistant-message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-assistant-message.user .ai-assistant-message-avatar {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.ai-assistant-message-avatar i {
  color: white;
  font-size: 16px;
}

.ai-assistant-message-content {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px 16px;
  color: white;
  font-size: 14px;
  line-height: 1.5;
  max-width: 280px;
  word-wrap: break-word;
  white-space: pre-line;
}

.ai-assistant-message.user .ai-assistant-message-content {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 242, 254, 0.2) 100%);
  border-color: rgba(79, 172, 254, 0.3);
}

.ai-assistant-quick-actions {
  padding: 0 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-assistant-quick-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 12px;
  color: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.ai-assistant-quick-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.ai-assistant-input-container {
  display: flex;
  padding: 20px;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-assistant-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  color: white;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.ai-assistant-input:focus {
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.ai-assistant-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.ai-assistant-send {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ai-assistant-send:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
}

.ai-assistant-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.ai-assistant-typing {
  display: flex;
  gap: 12px;
  animation: fadeInUp 0.3s ease;
}

.ai-assistant-typing-dots {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.ai-assistant-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.ai-assistant-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.ai-assistant-typing-dot:nth-child(2) { animation-delay: -0.16s; }

.ai-assistant-messages::-webkit-scrollbar {
  width: 4px;
}

.ai-assistant-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.ai-assistant-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .ai-assistant-widget {
    width: calc(100vw - 40px);
    height: calc(100vh - 40px);
    bottom: 20px;
    right: 20px;
    left: 20px;
  }
  
  .ai-assistant-messages {
    height: calc(100vh - 280px);
  }
}

@media (max-width: 480px) {
  .ai-assistant-widget {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
  
  .ai-assistant-quick-btn {
    font-size: 11px;
    padding: 6px 10px;
  }
  
  .ai-assistant-messages {
    height: calc(100vh - 260px);
    padding: 16px;
  }
}

/* === ЛОГОТИП FALLBACK === */
.nav-logo i.fas.fa-brain::before {
  content: "🧠" !important;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-size: 1.2em !important;
}

/* Дополнительная поддержка для логотипа */
.nav-logo i.fas {
  font-family: "Font Awesome 6 Free", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-weight: 900;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

/* ===== CRITICAL MOBILE FIXES ===== */

/* ===== SERVICE DETAIL PAGE ===== */
.service-detail-section {
  min-height: 100vh;
  padding: 120px 0 80px;
  background: var(--bg-primary);
  position: relative;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 16px;
  margin-bottom: 40px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-5px);
  color: var(--accent-contrast);
}

.back-button i {
  font-size: 14px;
}

.service-detail-card {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  padding: 60px 50px;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: rgba(5, 5, 5, 0.3) !important;
}

.service-detail-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 5, 5, 0.85) 0%,
    rgba(5, 5, 5, 0.75) 50%,
    rgba(5, 5, 5, 0.85) 100%
  );
  border-radius: 32px;
  z-index: 0;
  pointer-events: none;
}

.service-detail-content {
  position: relative;
  z-index: 2;
}

/* Matte and translucent card style (for Creating Smart Bots) */
.service-detail-card-matte {
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.service-detail-card-matte::after {
  display: none !important;
}

/* Service detail section - transparent background when body has background */
.service-detail-section {
  background: transparent !important;
  position: relative;
  min-height: 100vh;
  padding: 104px 24px 60px;
}

/* Service Detail Hero Container */
.service-detail-hero {
  width: 100%;
  max-width: 1400px;
  margin: 40px auto 60px;
  display: flex;
  justify-content: center;
}

.service-detail-hero-bottom {
  margin-top: 60px;
}

.service-detail-hero .hero-reel {
  width: 94vw;
  max-width: 1400px;
}

/* Service Detail CTA Section with Large Green Button */
.service-detail-cta-section {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.service-detail-cta-btn {
  /* Same size and form as btn-primary, but with green color */
  /* Same width as hero-reel container above */
  width: 94vw;
  max-width: 1400px;
  min-height: calc(var(--btn-height) * 2 * 1.33);
  padding: calc(var(--btn-padding-y) * 2 * 1.33) var(--btn-padding-x);
  border-radius: 40px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: none;
  /* Green button with black text */
  background: #00ff00;
  color: #000000;
  box-shadow: 0 8px 24px rgba(0, 255, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}

.service-detail-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 255, 0, 0.5);
  filter: brightness(1.1);
}

.service-detail-cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 24px rgba(0, 255, 0, 0.3);
}

.service-detail-cta-text {
  width: 100%;
  max-width: 1400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  color: #ffffff;
  font-family: var(--font-primary);
}

.cta-text-left {
  text-align: left;
}

.cta-text-right {
  text-align: left;
}

.cta-text-line {
  margin: 0 0 8px 0;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
}

.cta-text-left .cta-text-line {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Service Detail Services Grid - Three containers in a row */
.service-detail-services-grid {
  width: 94vw;
  max-width: 1400px;
  margin: 0 auto;
}

.service-detail-services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  grid-template-rows: calc(var(--service-card-height-desktop) * 1.2);
}

.service-detail-services-row .service-simple-card {
  width: 100%;
  height: calc(var(--service-card-height-desktop) * 1.2);
}

@media (max-width: 1024px) {
  .service-detail-services-row {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: calc(var(--service-card-height-tablet) * 1.2);
  }
  
  .service-detail-services-row .service-simple-card {
    height: calc(var(--service-card-height-tablet) * 1.2);
  }
}

@media (max-width: 768px) {
  .service-detail-services-row {
    grid-template-columns: 1fr;
    grid-template-rows: calc(var(--service-card-height-mobile) * 1.2);
    gap: 14px;
  }
  
  .service-detail-services-row .service-simple-card {
    height: calc(var(--service-card-height-mobile) * 1.2);
  }
}

@media (max-width: 1024px) {
  .service-detail-cta-text {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .cta-text-left,
  .cta-text-right {
    text-align: center;
  }
  
  .service-detail-cta-btn {
    min-height: 70px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .service-detail-section {
    padding: 100px 20px 40px;
  }
  
  .service-detail-hero {
    margin-bottom: 40px;
  }
  
  .service-detail-cta-section {
    margin-bottom: 40px;
    gap: 24px;
  }
  
  .service-detail-cta-btn {
    min-height: 60px;
    font-size: 1rem;
  }
  
  .cta-text-line {
    font-size: 0.9rem;
  }
  
  .cta-text-left .cta-text-line {
    font-size: 1rem;
  }
}

.service-detail-card .service-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.service-detail-card .service-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-detail-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--text-primary);
}

.service-detail-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.service-detail-features {
  margin: 40px 0;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.service-detail-features h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-primary);
}

.service-detail-card .service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-detail-card .service-features li {
  padding: 12px 0;
  font-size: 16px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-detail-card .service-features li:last-child {
  border-bottom: none;
}

.service-detail-card .service-features li i {
  color: var(--accent-contrast);
  font-size: 14px;
  flex-shrink: 0;
}

.service-detail-card .service-price {
  margin: 40px auto;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 400px;
}

.service-detail-card .price-label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-detail-card .price-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-contrast);
  font-family: var(--font-display);
}

.service-detail-card .service-btn {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 18px 32px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 16px;
  color: white;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(255, 155, 74, 0.3);
}

.service-detail-card .service-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 155, 74, 0.5);
}

.service-detail-card .service-btn i {
  font-size: 19px;
}

.service-detail-loading {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
}

.service-error {
  text-align: center;
  padding: 60px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.service-error h3 {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.service-error p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.service-error .btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.service-error .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 155, 74, 0.4);
}

/* Detailed service content styles */
.service-detail-lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.service-detail-content-section {
  margin: 50px 0;
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.service-detail-section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
}

.service-detail-item {
  margin-bottom: 30px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.service-detail-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.service-detail-item-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.4;
}

.service-detail-item-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.service-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-detail-list li {
  padding: 16px 24px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  position: relative;
  padding-left: 40px;
  transition: all 0.3s ease;
}

.service-detail-list li::before {
  content: '✓';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: 18px;
}

.service-detail-list li:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.service-detail-about-person {
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.service-detail-person-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
  line-height: 1.4;
}

.service-detail-about-person .service-detail-list {
  margin-top: 0;
}

.service-detail-about-person .service-detail-list li {
  padding: 12px 0;
  padding-left: 24px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.6;
  position: relative;
}

.service-detail-about-person .service-detail-list li:last-child {
  border-bottom: none;
}

.service-detail-about-person .service-detail-list li::before {
  content: '•';
  position: absolute;
  left: 8px;
  top: 12px;
  transform: none;
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: 18px;
}

.service-detail-about-person .service-detail-list li:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
  transform: none;
}

/* Mobile styles for service detail page */
@media (max-width: 768px) {
  .service-detail-section {
    padding: 100px 0 60px;
  }

  .back-button {
    font-size: 14px;
    padding: 10px 20px;
    margin-bottom: 30px;
  }

  .service-detail-card {
    padding: 40px 30px;
    border-radius: 24px;
  }

  .service-detail-card .service-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
  }

  .service-detail-title {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .service-detail-description {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .service-detail-features {
    margin: 30px 0;
  }

  .service-detail-features h3 {
    font-size: 19px;
    margin-bottom: 16px;
  }

  .service-detail-card .service-features li {
    font-size: 14px;
    padding: 10px 0;
  }

  .service-detail-card .service-price {
    margin: 30px auto;
    padding: 20px;
  }

  .service-detail-card .price-value {
    font-size: 28px;
  }

  .service-detail-card .service-btn {
    padding: 16px 28px;
    font-size: 16px;
  }

  .service-detail-lead {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .service-detail-content-section {
    margin: 40px 0;
  }

  .service-detail-section-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .service-detail-item {
    padding: 20px;
    margin-bottom: 20px;
  }

  .service-detail-item-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .service-detail-item-description {
    font-size: 14px;
  }

  .service-detail-list li {
    padding: 14px 20px;
    padding-left: 36px;
    font-size: 14px;
    margin-bottom: 10px;
  }

  .service-detail-list li::before {
    left: 12px;
    font-size: 16px;
  }

  .service-detail-about-person {
    padding: 20px;
  }

  .service-detail-person-name {
    font-size: 19px;
    margin-bottom: 10px;
  }

  .service-detail-about-person .service-detail-list li {
    padding: 10px 0;
    padding-left: 20px;
    font-size: 14px;
  }

  .service-detail-about-person .service-detail-list li::before {
    left: 6px;
  }
}

@media (max-width: 480px) {
  .service-detail-card {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .service-detail-card .service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }

  .service-detail-title {
    font-size: 24px;
  }

  .service-detail-description {
    font-size: 14px;
  }

  .service-detail-features h3 {
    font-size: 18px;
  }

  .service-detail-card .service-features li {
    font-size: 14px;
    padding: 8px 0;
  }

  .service-detail-card .service-price {
    padding: 16px;
  }

  .service-detail-card .price-value {
    font-size: 24px;
  }

  .service-detail-card .service-btn {
    padding: 14px 24px;
    font-size: 14px;
  }

  .service-detail-lead {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .service-detail-content-section {
    margin: 30px 0;
  }

  .service-detail-section-title {
    font-size: 19px;
    margin-bottom: 20px;
  }

  .service-detail-item {
    padding: 16px;
    margin-bottom: 16px;
  }

  .service-detail-item-title {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .service-detail-item-description {
    font-size: 14px;
  }

  .service-detail-list li {
    padding: 12px 16px;
    padding-left: 32px;
    font-size: 14px;
    margin-bottom: 6px;
  }

  .service-detail-list li::before {
    left: 10px;
    font-size: 14px;
  }

  .service-detail-about-person {
    padding: 16px;
  }

  .service-detail-person-name {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .service-detail-about-person .service-detail-list li {
    padding: 8px 0;
    padding-left: 18px;
    font-size: 14px;
  }

  .service-detail-about-person .service-detail-list li::before {
    left: 4px;
    font-size: 16px;
  }
}

/* ===== NEW YEAR PAGE ===== */
.new-year-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  background: transparent !important;
}

/* Затемнение для читаемости текста в hero */
.new-year-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 5, 0.2);
  z-index: 0;
}

.new-year-hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.new-year-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(255, 155, 74, 0.5);
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 32px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.3);
  color: var(--text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.new-year-badge i {
  color: #ffd700;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.new-year-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  text-shadow: 0 15px 45px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.new-year-emoji {
  font-size: 1.2em;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.new-year-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Стили только для новогодней страницы - изолированы */
.new-year-page .new-year-image-wrapper,
.new-year-hero .new-year-image-wrapper {
  margin-top: 40px;
}

.new-year-page .new-year-hero-image,
.new-year-hero .new-year-hero-image {
  width: 200px;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(220, 38, 38, 0.4);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Фон для всей страницы новогодних предложений */
body.new-year-page,
.new-year-page {
  background-color: transparent !important;
  background-image: url('../public/нг%20пейзаж.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  min-height: 100vh;
}

/* Убираем стандартный фон body для новогодней страницы */
body.new-year-page {
  background-image: url('../public/нг%20пейзаж.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

.new-year-offers {
  padding: 140px 0 80px;
  background: transparent !important;
  position: relative;
}

/* Затемнение для читаемости текста */
.new-year-offers::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 5, 0.3);
  z-index: 0;
}

.new-year-offers .container {
  position: relative;
  z-index: 1;
}

.new-year-offers .section-title {
  color: var(--text-primary) !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  margin-top: 0 !important;
  margin-bottom: 50px !important;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 70px;
}

.offer-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Стили для карточки с фоновым изображением */
.offer-card.offer-card-with-bg {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.offer-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 155, 74, 0.4);
  box-shadow: 0 20px 60px rgba(255, 155, 74, 0.3);
}

.offer-card.featured-offer {
  border: 2px solid rgba(255, 155, 74, 0.6);
  background: rgba(255, 155, 74, 0.1);
}

.offer-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #dc2626 0%, #ff7849 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5);
  z-index: 2;
}

.offer-badge.featured-badge {
  background: linear-gradient(135deg, #ffd700 0%, #ff7849 100%);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.offer-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  box-shadow: 0 8px 24px rgba(255, 155, 74, 0.4);
  position: relative;
  z-index: 2;
}

/* Стили для иконки с изображением */
.offer-icon.offer-icon-image {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.offer-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.offer-card:hover .offer-icon-image {
  border-color: rgba(255, 155, 74, 0.4);
  box-shadow: 0 15px 40px rgba(255, 155, 74, 0.5);
  transform: scale(1.1) rotate(5deg);
  transition: all 0.4s ease;
}

.offer-card:hover .offer-icon-img {
  transform: scale(1.05);
  transition: transform 0.4s ease;
}

.offer-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.offer-price {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.old-price {
  font-size: 18px;
  color: var(--text-secondary);
  text-decoration: line-through;
  opacity: 0.6;
}

.new-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-contrast);
  font-family: var(--font-display);
}

.offer-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.offer-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.offer-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.offer-features li i {
  color: var(--accent-contrast);
  font-size: 12px;
}

.offer-btn {
  width: 100%;
  padding: 14px 28px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  color: white;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.offer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 155, 74, 0.4);
}

.new-year-cta {
  margin-top: 60px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 2px solid rgba(255, 155, 74, 0.3);
  border-radius: 24px;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  z-index: 1;
}

.new-year-cta h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.new-year-cta p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Mobile styles for new year page */
@media (max-width: 768px) {
  .new-year-hero {
    padding: 100px 24px 60px;
    min-height: auto;
  }

  .new-year-title {
    font-size: 2.5rem;
    gap: 15px;
  }

  .new-year-page .new-year-hero-image,
  .new-year-hero .new-year-hero-image {
    width: 150px;
  }

  .offers-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .offer-card {
    padding: 30px 24px;
  }

  .new-year-cta {
    padding: 30px 24px;
  }

  .new-year-cta h3 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .new-year-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }

  .new-year-page .new-year-hero-image,
  .new-year-hero .new-year-hero-image {
    width: 120px;
  }

  .offer-card {
    padding: 24px 20px;
  }

  .offer-badge {
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    font-size: 16px;
  }

  .new-year-cta {
    padding: 24px 20px;
  }

.new-year-cta h3 {
  font-size: 19px;
}
}

/* Scroll reveal animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(0.4px);
  transition: opacity 0.65s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
  transition-delay: var(--scroll-animate-delay, 0ms);
  will-change: opacity, transform, filter;
}

.scroll-animate--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
  animation-delay: var(--scroll-animate-delay, 0ms);
  animation: scroll-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes scroll-pop {
  0% { opacity: 0; transform: translateY(26px) scale(0.985); }
  55% { opacity: 1; transform: translateY(-6px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-animate {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .scroll-animate--visible {
    animation: none;
  }
}

/* Виджеты ботов теперь разрешены на странице новогодних предложений */
/* Hero Animation */
@keyframes heroFadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Only apply opacity 0 when not yet in view if JS is active */
.hero.hero-animate-ready .hero-reel-content > *:nth-child(-n+4) {
  opacity: 0;
}

.hero.hero-in-view .hero-reel-content > *:nth-child(-n+4) {
  animation: heroFadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-fill-mode: both;
}

.hero.hero-in-view .hero-reel-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero.hero-in-view .hero-reel-content > *:nth-child(2) { animation-delay: 0.30s; }
.hero.hero-in-view .hero-reel-content > *:nth-child(3) { animation-delay: 0.45s; }
.hero.hero-in-view .hero-reel-content > *:nth-child(4) { animation-delay: 0.60s; }
