/* ========== УЛУЧШЕННАЯ ВЕРСИЯ CSS С ОПТИМИЗАЦИЯМИ ========== */

/* Базовые настройки и переменные */
:root {
  /* Шрифты */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Playfair Display', 'Times New Roman', serif;
  --font-accent: 'Cormorant Garamond', 'Georgia', serif;
  
  /* Цветовая схема */
  --primary: #d4af37;
  --primary-rgb: 212, 175, 55;
  --background: #0d0d0d;
  --background-secondary: #1a1a1a;
  --foreground: #ffffff;
  --foreground-secondary: rgba(255, 255, 255, 0.7);
  --border: rgba(212, 175, 55, 0.2);
  --radius: 0.5rem;
  
  /* Оптимизированные переходы */
  --transition: all 0.3s ease;
  --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Базовые сбросы стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--foreground);
  text-align: center;
  background: linear-gradient(180deg, var(--background) 0%, var(--background-secondary) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  
  /* Улучшенная типографика */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Защита контента */
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

/* Разрешаем выделение в полях ввода */
input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Защита изображений */
img {
  pointer-events: none !important;
  -webkit-user-drag: none !important;
  user-drag: none !important;
}

/* ========== ПРЕМИАЛЬНАЯ ЗОЛОТАЯ РАМКА ========== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid rgba(212, 175, 55, 0.4);
  pointer-events: none;
  z-index: 9999;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1);
  }
  50% {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: inset 0 0 40px rgba(212, 175, 55, 0.2);
  }
}

/* Угловые декоративные элементы */
body::after {
  content: '';
  position: fixed;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
  pointer-events: none;
  z-index: 9999;
  opacity: 0.7;
}

/* ========== ТИПОГРАФИЯ ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 3px;
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* ========== ОСНОВНЫЕ СТИЛИ КОМПОНЕНТОВ ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Утилитарные классы */
.font-playfair { font-family: var(--font-secondary); }
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.h-screen { height: 100vh; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-10 { margin-bottom: 2.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-primary { color: var(--primary); }
.bg-black\/70 { background-color: rgba(0, 0, 0, 0.7); }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-black\/30 { background-color: rgba(0, 0, 0, 0.3); }
.border-t { border-top-width: 1px; }
.border-primary\/20 { border-color: rgba(var(--primary-rgb), 0.2); }
.pt-16 { padding-top: 4rem; }
.pb-4 { padding-bottom: 1rem; }
.py-24 { padding-top: 10rem; padding-bottom: 10rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Градиенты */
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}
.from-primary\/5 {
  --tw-gradient-from: rgba(var(--primary-rgb), 0.05);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(var(--primary-rgb), 0));
}
.to-transparent {
  --tw-gradient-to: transparent;
}
.from-black\/30 {
  --tw-gradient-from: rgba(0, 0, 0, 0.3);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}
.to-background\/30 {
  --tw-gradient-to: rgba(var(--background), 0.3);
}

/* ========== PARTICLE BACKGROUND ========== */
.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: -3;
  background: 
    radial-gradient(ellipse at center, rgba(26, 26, 46, 0.4) 0%, transparent 70%),
    linear-gradient(135deg,
      #0d0d0d 0%,
      #1a1a2e 25%,
      #16213e 50%,
      #0f3460 75%,
      #0d0d0d 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  /* Оптимизация производительности */
  will-change: transform;
  transition: transform 0.5s ease-out;
}

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

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.7);
  z-index: -1;
  pointer-events: none;
}

#particles-js {
  width: 100%;
  height: 100%;
}

#particles-js canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ========== УЛУЧШЕННАЯ НАВИГАЦИЯ ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1rem 2rem 0.8rem;
}

.navbar-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.navbar-top {
  width: 100%;
  text-align: center;
  position: relative;
}

.navbar-top .logo a {
  font-size: 1.1rem;
  color: var(--foreground);
  text-decoration: none;
  letter-spacing: 2px;
  font-family: var(--font-secondary);
  font-weight: 400;
  transition: var(--transition-smooth);
  display: inline-block;
}

.navbar-top .logo a:hover {
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.8),
               0 0 40px rgba(212, 175, 55, 0.4);
  transform: scale(1.03);
  letter-spacing: 3px;
}

.navbar-top .logo a .text-gold {
  color: var(--primary);
}

/* Золотой ореол за логотипом */
.navbar-top .logo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 150%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, 
    rgba(212, 175, 55, 0.15) 0%, 
    transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.navbar-top .logo:hover::before {
  opacity: 1;
}

.navbar-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

#nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(212, 175, 55, 0.3) 50%, 
    transparent 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position 0.6s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
  background-position: 0 0;
}

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

/* Улучшенные фокус-состояния для доступности */
.nav-link:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.lang-switcher {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.lang-switcher a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.lang-switcher span {
  color: #d4af37;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary);
}

/* ========== АДАПТИВНАЯ НАВИГАЦИЯ ========== */
@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }

  #nav-menu {
    display: flex !important;
    flex-direction: row !important;
    position: static !important;
    max-height: none !important;
    background: transparent !important;
    border: none !important;
    gap: 2rem !important;
    padding: 0 !important;
  }

  #nav-menu li {
    width: auto !important;
    padding: 0 !important;
    border: none !important;
  }

  .navbar-bottom {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 1.5rem 0.8rem;
  }

  .navbar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .navbar-top {
    order: 1;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .navbar-top .logo a {
    font-size: 0.95rem;
    letter-spacing: 1.5px;
  }

  .navbar-bottom {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .menu-toggle {
    display: flex !important;
    position: static;
    order: 1;
    font-size: 1.5rem;
  }

  .lang-switcher {
    order: 2;
    font-size: 0.85rem;
    gap: 0.4rem;
  }

  #nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 999;
  }

  #nav-menu.active {
    max-height: 400px;
    padding: 1rem 0;
  }

  #nav-menu li {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  }

  .nav-link {
    font-size: 1rem;
    display: block;
    width: 100%;
  }

  /* Упрощаем анимации для мобильных */
  .custom-cursor {
    display: none;
  }
  
  .about-card:hover {
    transform: translateY(-5px) !important;
  }
}

@media (max-width: 480px) {
  .navbar-top .logo a {
    font-size: 0.8rem;
  }

  .menu-toggle {
    font-size: 1.3rem;
  }

  .lang-switcher {
    font-size: 0.75rem;
  }
}

/* ========== СЕКЦИИ С АНИМАЦИЯМИ ========== */
section {
  position: relative;
  animation: fadeInSection 0.8s ease-in-out;
}

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

/* Золотые разделители секций */
section::after {
  content: "✦";
  display: block;
  text-align: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin: 3rem auto 0;
  opacity: 0.6;
  animation: sectionPulse 3s ease-in-out infinite;
}

footer::after {
  display: none !important;
}

@keyframes sectionPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ========== ГЛАВНАЯ СЕКЦИЯ С ЛОГОТИПОМ ========== */
#home {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
}

#main-logo {
  opacity: 0;
  max-width: 600px;
  width: 85%;
  height: auto;
  animation: logoEntrance 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards,
             glowPulse 3s ease-in-out 1.8s infinite;
  will-change: transform, opacity, filter;
  transition: transform 0.4s ease;
  image-rendering: -webkit-optimize-contrast;
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-5deg);
    filter: blur(10px);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0) drop-shadow(0 0 30px rgba(212, 175, 55, 0.8))
            drop-shadow(0 0 60px rgba(212, 175, 55, 0.5));
  }
}

@keyframes glowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.8))
            drop-shadow(0 0 60px rgba(212, 175, 55, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 50px rgba(212, 175, 55, 1))
            drop-shadow(0 0 100px rgba(212, 175, 55, 0.7));
  }
}

#main-logo:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 60px rgba(212, 175, 55, 1))
          drop-shadow(0 0 120px rgba(212, 175, 55, 0.8)) !important;
}

@media (max-width: 1024px) {
  #main-logo { max-width: 500px; }
}

.site-title {
  font-family: "Playfair Display", serif;
  font-weight: 300;
  font-style: normal;
  font-size: clamp(60px, 12vw, 180px);
  line-height: 1.2;
  letter-spacing: 0.15em;
  margin-bottom: 50px;
  
  /* Золотой градиент вместо цвета */
  background: linear-gradient(135deg, 
      #d4af37 0%, 
      #f4e5c3 25%, 
      #d4af37 50%, 
      #aa8a2e 75%, 
      #d4af37 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  /* Анимация появления + блеск */
  opacity: 0;
  animation: fadeInTitle 2s ease forwards, goldShimmer 3s ease-in-out infinite;
  position: relative;
}

@keyframes fadeInTitle {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.site-title::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 5rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  z-index: 1;
}

.text-gold {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

.text-gold-bold {
  color: var(--primary);
  font-weight: 400;
  text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
}

/* ========== КАРТОЧКИ С УЛУЧШЕННОЙ ПРОИЗВОДИТЕЛЬНОСТЬЮ ========== */
.about-card,
.expertise-card,
.methodology-card,
.investment-block {
  animation: fadeInCard 0.6s ease-in-out backwards;
  /* Оптимизация производительности */
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.2s; }
.about-card:nth-child(3) { animation-delay: 0.3s; }

.expertise-card:nth-child(1) { animation-delay: 0.1s; }
.expertise-card:nth-child(2) { animation-delay: 0.2s; }
.expertise-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Раздел "О нас" */
.about-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.about-card {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  padding: 1.5rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.37),
    inset 0 1px 1px rgba(212, 175, 55, 0.1);
}

.about-card:hover {
  transform: translateY(-12px) rotateX(2deg);
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(212, 175, 55, 0.5),
    0 0 40px rgba(212, 175, 55, 0.2);
  border-color: var(--primary);
  background: rgba(26, 26, 26, 0.8);
}

.about-card p {
  line-height: 1.6;
  color: var(--foreground-secondary);
  text-shadow: 0 0 5px rgba(var(--primary-rgb), 0.1);
}

.philosophy-quote {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid var(--primary);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(var(--primary-rgb), 0.1);
}

.philosophy-quote cite {
  display: block;
  margin-top: 1rem;
  text-align: right;
  color: var(--primary);
  font-style: normal;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

/* Раздел "Экспертиза" */
.expertise-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.expertise-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 10px;
  padding: 20px;
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.expertise-card:hover {
  transform: scale(1.05) rotateX(1deg);
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.4);
  border-color: var(--primary);
}

.expertise-icon {
  font-size: 35px;
  margin-bottom: 10px;
  color: var(--primary);
  text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5);
}

.expertise-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.expertise-card p {
  margin-bottom: 20px;
  flex-grow: 1;
}

/* ========== УЛУЧШЕННЫЕ КНОПКИ ========== */
.read-more,
.submit-btn,
.download-button,
#show-contacts-btn {
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.read-more::before,
.submit-btn::before,
.download-button::before,
#show-contacts-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.read-more:hover::before,
.submit-btn:hover::before,
.download-button:hover::before,
#show-contacts-btn:hover::before {
  width: 300px;
  height: 300px;
}

.read-more:hover,
.submit-btn:hover,
.download-button:hover {
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.read-more {
  display: block;
  width: 100%;
  padding: 12px 0;
  margin-top: auto;
  font-weight: bold;
  text-align: center;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 5px;
  cursor: pointer;
}

.read-more:hover {
  background: rgba(var(--primary-rgb), 0.2);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
}

.popup-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(var(--primary-rgb), 0.5);
  border-radius: 10px;
  padding: 2rem;
  max-width: 600px;
  text-align: left;
  color: #fff;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(var(--primary-rgb), 0.5);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #ffd700;
}

/* Раздел "Партнеры" */
.partners-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.partners-marquee {
  width: 100%;
  overflow: hidden;
}

.partners-track {
  display: flex;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-card {
  flex: 0 0 250px;
  margin: 0 20px;
  background: var(--foreground);
  border-radius: 10px;
  padding: 1.5rem;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partner-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(var(--primary-rgb), 0.5);
  transform: translateY(-5px);
  border: 1px solid var(--primary);
}

.partner-card img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: var(--transition);
}

.partner-card:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* Раздел "Investment Focus" */
.investment-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.investment-block {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 10px;
  padding: 2rem 1rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.investment-block:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(var(--primary-rgb), 0.4);
  background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0.1), rgba(0, 0, 0, 0.5));
}

.investment-icon {
  width: 70px;
  height: 70px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}

.investment-icon i {
  font-size: 1.8rem;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

.investment-text {
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

/* Раздел "Методология" */
.methodology-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.methodology-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 10px;
  padding: 1.5rem;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.methodology-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(var(--primary-rgb), 0.4);
  border-color: var(--primary);
  background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0.1), rgba(0, 0, 0, 0.5));
}

.methodology-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.4);
}

.methodology-card p {
  line-height: 1.6;
  color: var(--foreground-secondary);
  text-shadow: 0 0 5px rgba(var(--primary-rgb), 0.1);
}

/* Иконки для методологии */
.methodology-card .icon {
  font-size: 48px !important;
  color: #d4af37 !important;
  margin-bottom: 1rem !important;
  display: block !important;
  text-align: center !important;
}

/* Font Awesome */
.fas, .fab, .far, .fa {
  display: inline-block !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
}

.fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* Раздел "ESG Калькулятор" */
.calculator-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(var(--primary-rgb), 0.2);
  cursor: help;
  position: relative;
}

.calculator-form {
  margin-bottom: 2rem;
}

.calculator-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  text-align: left;
  text-shadow: 0 0 5px rgba(var(--primary-rgb), 0.2);
}

.calculator-form select {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 5px;
  color: var(--foreground);
  font-size: 1rem;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3), 0 0 5px rgba(var(--primary-rgb), 0.2);
}

.calculator-form button {
  width: 100%;
  padding: 1rem;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
}

.calculator-form button:hover {
  background: linear-gradient(to right, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.3));
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
  transform: translateY(-2px);
}

.ratings-result {
  display: none;
  margin-top: 2rem;
}

.ratings-result.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

.ratings-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.ratings-table th,
.ratings-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.2);
}

.ratings-table th {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

.recommendations-container {
  display: none;
  margin-top: 2rem;
}

.recommendations-container.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

.recommendation-title {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.4);
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.recommendation-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 5px;
  padding: 1rem;
  transition: var(--transition);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.recommendation-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(var(--primary-rgb), 0.3);
  background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0.05), rgba(0, 0, 0, 0.3));
}

.recommendation-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 5px;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
}

.download-button:hover {
  background: linear-gradient(to right, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.3));
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
  transform: translateY(-2px);
}

.download-button i {
  margin-right: 0.5rem;
}

/* Раздел "Обратная связь" */
.feedback-btn-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

#show-contacts-btn {
  padding: 1rem 2rem;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
}

#show-contacts-btn:hover {
  background: linear-gradient(to right, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.3));
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
  transform: translateY(-2px);
}

#contacts {
  margin-top: 2rem;
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(var(--primary-rgb), 0.3);
  background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0.05), rgba(0, 0, 0, 0.5));
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}

.contact-icon span {
  color: var(--primary);
  font-weight: bold;
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

.contact-info {
  text-align: left;
}

.contact-info h4 {
  margin-bottom: 0.5rem;
  text-shadow: 0 0 5px rgba(var(--primary-rgb), 0.2);
}

.contact-info a {
  color: var(--foreground-secondary);
  text-decoration: none;
  transition: var(--transition);
  text-shadow: 0 0 5px rgba(var(--primary-rgb), 0.1);
}

.contact-info a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(var(--primary-rgb), 0.2);
}

.contact-form-container h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.4);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
  text-shadow: 0 0 5px rgba(var(--primary-rgb), 0.3);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 5px;
  color: var(--foreground);
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3), 0 0 5px rgba(var(--primary-rgb), 0.2);
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3), 0 0 10px rgba(var(--primary-rgb), 0.4);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
}

.submit-btn:hover {
  background: linear-gradient(to right, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.3));
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
  transform: translateY(-2px);
}

.submit-btn i {
  margin-left: 0.5rem;
}

/* Футер */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column {
  text-align: left;
}

.footer-column h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.4);
}

.footer-column p {
  color: var(--foreground-secondary);
  line-height: 1.6;
  text-shadow: 0 0 5px rgba(var(--primary-rgb), 0.1);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
}

.footer-column ul li i {
  font-size: 16px;
  color: var(--primary);
  margin-right: 10px;
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

.footer-column ul li span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--foreground-secondary);
}

.footer-column ul li a {
  color: var(--foreground-secondary);
  text-decoration: none;
  transition: var(--transition);
  text-shadow: 0 0 5px rgba(var(--primary-rgb), 0.1);
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(212, 175, 55, 0.3) 50%, 
    transparent 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position 0.6s ease;
}

.footer-column ul li a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
  background-position: 0 0;
}

.footer-bottom {
  border-top: 1px solid rgba(var(--primary-rgb), 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--foreground-secondary);
  font-size: 0.9rem;
}

/* ========== ПРЕМИАЛЬНЫЙ КУРСОР "САТУРН" ========== */
@media (min-width: 769px) {
  * {
    cursor: none !important;
  }

  .custom-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease;
  }

  .custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 30% 30%, #ffd700, #d4af37);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
      0 0 10px rgba(212, 175, 55, 0.8),
      inset -2px -2px 6px rgba(0, 0, 0, 0.3);
  }

  .custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 10px;
    border: 2px solid rgba(212, 175, 55, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(70deg) rotateZ(-15deg);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    animation: saturnRotate 8s linear infinite;
  }

  @keyframes saturnRotate {
    0%, 100% {
      transform: translate(-50%, -50%) rotateX(70deg) rotateZ(-15deg);
    }
    50% {
      transform: translate(-50%, -50%) rotateX(70deg) rotateZ(-20deg);
    }
  }

  .custom-cursor.active {
    transform: translate(-50%, -50%) scale(1.8);
  }

  .custom-cursor.active::before {
    box-shadow: 
      0 0 20px rgba(212, 175, 55, 1),
      inset -2px -2px 6px rgba(0, 0, 0, 0.3);
  }

  .custom-cursor.active::after {
    border-color: rgba(212, 175, 55, 1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
  }

  /* Возвращаем стандартный курсор для ввода текста */
  input, textarea, select {
    cursor: text !important;
  }
}

/* ========== PRELOADER ========== */
#preloader {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at 50% 50%, #181824 40%, #0b0b15 100%);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s cubic-bezier(.6,.9,.39,1.15);
}
.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.gold-ring-animation {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border-top: 3px solid #d4af37;
  border-bottom: 3px solid transparent;
  margin: 40px auto 10px;
  box-shadow: 0 0 20px #d4af3766;
  animation: spinRing 1.6s linear infinite;
}
@keyframes spinRing {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

.preloader-content img {
  max-width: 180px;  /* можно изменить на 120-160px по вкусу */
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  display: block;
  filter: drop-shadow(0 0 40px #d4af37a6);
  opacity: 0;
  transition: opacity 1s;
}

.preloader-logo {
  max-width: 120px !important;
  width: 100% !important;
  height: auto !important;
  margin-bottom: 10px !important;
  display: block !important;
  filter: drop-shadow(0 0 40px #d4af37a6) !important;
  opacity: 1 !important;
  transition: opacity 1s;
}

/* ========== ПРЕМИАЛЬНЫЕ TOOLTIPS ========== */
[data-tooltip] {
  position: relative !important;
  cursor: help !important;
}

[data-tooltip]::after {
  content: attr(data-tooltip) !important;
  position: absolute !important;
  bottom: 120% !important;
  left: 50% !important;
  transform: translateX(-50%) scale(0.95) !important;
  background: rgba(0, 0, 0, 0.95) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  white-space: normal !important;
  max-width: 320px !important;
  width: max-content !important;
  z-index: 10000 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.4) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;
  text-align: left !important;
  border: 1px solid rgba(212, 175, 55, 0.6) !important;
  pointer-events: none !important;
}

[data-tooltip]:hover::after {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) scale(1) !important;
}

@media (max-width: 768px) {
  [data-tooltip]::after {
    width: 85vw !important;
    max-width: 320px !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
  }
  
  [data-tooltip]:hover::after {
    transform: translate(-50%, -50%) scale(1) !important;
  }
}

/* Медиа-запросы */
@media (max-width: 992px) {
  .section-title {
    font-size: 2rem;
  }

  .site-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex !important;
  }
  
  #nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    padding: 1.5rem;
    gap: 1rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  #nav-menu.active {
    max-height: 500px;
    opacity: 1;
  }
  
  #home {
    min-height: calc(100vh - 100px) !important;
    padding: 0 20px !important;
  }
  
  #main-logo { 
    max-width: 85vw !important;
    width: 85vw !important;
  }
}

@media (max-width: 480px) {
  #main-logo { 
    max-width: 90vw !important; 
    width: 90vw !important; 
  }
}

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