/* --- Базовые переменные и шрифты --- */
:root {
  --color1: #4b5563; /* Medium Gray - иконки, второстепенный текст */
  --color2: #1f2937; /* Dark Gray - заголовки, кнопки */
  --color3: #030712; /* Deep Black - основной текст */
  --color4: #9ca3af; /* Silver Gray - границы, декорации */
  --color5: #f9fafb; /* Ghost White - фон */
  --accent: #2563eb; /* Blue accent - только для ссылок и фокуса */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--color3);
  background-color: var(--color5);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Анимации появления (Reveal) --- */
.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.reveal-element.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Кастомные градиенты --- */
.bg-gray-gradient {
  background: linear-gradient(135deg, #f3f4f6 0%, #d1d5db 100%);
}

.hero-pattern {
  background-color: #111827;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 40px 40px;
}

/* --- Уведомления (Notifications) --- */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 2rem;
  border-radius: 12px;
  background: var(--color2);
  color: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

/* --- Cookie Popup (Compliance) --- */
.cookie-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: white;
  border: 1px solid var(--color4);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
  z-index: 9999;
  transform: translateY(200%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-popup.show {
  transform: translateY(0);
}

.cookie-popup-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cookie-popup-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-popup-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.cookie-popup-text {
  font-size: 0.875rem;
  color: var(--color1);
}

.cookie-popup-link {
  text-decoration: underline;
  color: var(--color3);
}

.cookie-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.cookie-btn-accept {
  background: var(--color3);
  color: white;
}

.cookie-btn-accept:hover {
  background: #374151;
}

.cookie-btn-decline {
  background: transparent;
  border: 1px solid var(--color4);
}

/* --- Стили Формы --- */
input:focus {
  box-shadow: 0 4px 0px 0px var(--color3);
}

#successMessage {
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Декоративные элементы (Grid) --- */
.deco-grid {
  background-image: linear-gradient(var(--color4) 1px, transparent 1px),
    linear-gradient(90deg, var(--color4) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.05;
}

/* --- Кнопки и интерактивы --- */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
  width: 300%;
  height: 300%;
}

/* Мобильное меню (Burger) */
#burger-btn span {
  transition: all 0.3s ease;
}

#burger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
#burger-btn.active span:nth-child(2) { opacity: 0; }
#burger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* --- Footer --- */
footer a {
  transition: color 0.2s;
}

footer a:hover {
  color: var(--color3);
  text-decoration: underline;
}