
/* Базовые стили */
:root {
  --corporate: #000000;
  --accent: #ff3333;
  --highlight: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: black;
  color: white;
  margin: 0;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Утилиты */
.container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.relative { position: relative; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.flex { display: flex; }
.grid { display: grid; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-between: space-between; }
.justify-end { justify-content: flex-end; }
.gap-3 { gap: 0.75rem; }
.gap-8 { gap: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.overflow-hidden { overflow: hidden; }
.bg-black { background-color: black; }
.text-white { color: white; }
.text-red-500 { color: rgb(239, 68, 68); }
.text-emerald-500 { color: rgb(16, 185, 129); }
.font-black { font-weight: 900; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-light { font-weight: 300; }
.font-mono { font-family: 'IBM Plex Mono', monospace; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-16 { margin-top: 4rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }

.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:text-sm { font-size: 0.875rem; }
  .md\:text-lg { font-size: 1.125rem; }
  .md\:text-xl { font-size: 1.25rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:text-\[120px\] { font-size: 120px; }
  .md\:p-8 { padding: 2rem; }
  .md\:p-16 { padding: 4rem; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\: py-4 { padding-top: 1rem; padding-bottom: 1rem; }
  .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .md\:mb-8 { margin-bottom: 2rem; }
  .md\:mb-12 { margin-bottom: 3rem; }
  .md\:mb-32 { margin-bottom: 8rem; }
  .md\:mt-32 { margin-top: 8rem; }
  .md\:gap-16 { gap: 4rem; }
  .md\:h-48 { height: 12rem; }
}

/* Компоненты */
.service-card {
  position: relative;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 51, 51, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 51, 51, 0.2) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.1;
  pointer-events: none;
}

.service-card:hover {
  transform: translateX(20px);
}

.corporate-button {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.corporate-button:hover {
  transform: translateY(-2px);
}

.corporate-heading {
  text-shadow: 4px 4px 0 rgba(255, 51, 51, 0.3);
  background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.terminal-line {
  font-family: 'IBM Plex Mono', monospace;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Модальное окно */
#modal {
  display: flex;
}

#modal.hidden {
  display: none;
}

/* Кнопка закрытия модального окна */
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 51, 51, 0.2);
  background: transparent;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 51, 51, 0.1);
}

.modal-close-btn::before,
.modal-close-btn::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 1rem;
  background-color: currentColor;
  transform-origin: center;
}

.modal-close-btn::before {
  transform: rotate(45deg);
}

.modal-close-btn::after {
  transform: rotate(-45deg);
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    transform: translateX(-20px);
    opacity: 0;
  }
  to { 
    transform: translateX(0);
    opacity: 1;
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-in {
  animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Утилиты для карточек */
.border-2 { border-width: 2px; }
.border-red-500\/20 { border-color: rgba(239, 68, 68, 0.2); }
.border-emerald-500\/20 { border-color: rgba(16, 185, 129, 0.2); }
.border-blue-500\/20 { border-color: rgba(59, 130, 246, 0.2); }

.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-black\/95 { background-color: rgba(0, 0, 0, 0.95); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); }

.hover\:bg-red-500\/5:hover { background-color: rgba(239, 68, 68, 0.05); }
.hover\:bg-emerald-500\/5:hover { background-color: rgba(16, 185, 129, 0.05); }
.hover\:bg-blue-500\/5:hover { background-color: rgba(59, 130, 246, 0.05); }

.from-red-500 { --tw-gradient-from: rgb(239, 68, 68); }
.from-emerald-500 { --tw-gradient-from: rgb(16, 185, 129); }
.from-blue-500 { --tw-gradient-from: rgb(59, 130, 246); }
.to-red-500\/60 { --tw-gradient-to: rgba(239, 68, 68, 0.6); }
.to-emerald-500\/60 { --tw-gradient-to: rgba(16, 185, 129, 0.6); }
.to-blue-500\/60 { --tw-gradient-to: rgba(59, 130, 246, 0.6); }

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to));
}

.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

.text-transparent {
  -webkit-text-fill-color: transparent;
}

/* Утилиты для модального окна */
.group-hover\:translate-x-2:hover {
  transform: translateX(0.5rem);
}

.group-hover\:scale-150:hover {
  transform: scale(1.5);
}

.group-hover\:opacity-100:hover {
  opacity: 1;
}

/* Декоративные линии */
.h-px { height: 1px; }
.w-px { width: 1px; }
.bg-red-500\/20 { background-color: rgba(239, 68, 68, 0.2); }

/* Точки в списках */
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.rounded-full { border-radius: 9999px; }
