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

body {
  font-family: "Outfit", sans-serif;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 25%, #2a2a2a 50%, #3a3a3a 75%, #4a4a4a 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-brand {
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.logo-image {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.logo-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  transition: color 0.3s ease;
}

.nav-brand:hover .logo-text {
  color: #d1d5db;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.nav-link {
  text-decoration: none;
  color: #9ca3af;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: #f8fafc;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #6b7280, #9ca3af);
  border-radius: 1px;
}

/* Animated Lines Background for Sections */
.section-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.animated-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.line {
  position: absolute;
  background: linear-gradient(45deg, rgba(156, 163, 175, 0.3), rgba(229, 231, 235, 0.2));
  opacity: 0.4;
  box-shadow: 0 0 5px rgba(156, 163, 175, 0.1);
}

/* Horizontal lines */
.line.horizontal {
  height: 1px;
  width: 0;
  animation: slideHorizontal 8s ease-in-out infinite;
}

.line-1 {
  top: 15%;
  left: 0;
  animation-delay: 0s;
}

.line-2 {
  top: 35%;
  right: 0;
  animation-delay: 2s;
  animation-direction: reverse;
}

.line-3 {
  top: 55%;
  left: 0;
  animation-delay: 4s;
}

.line-4 {
  top: 75%;
  right: 0;
  animation-delay: 6s;
  animation-direction: reverse;
}

.line-5 {
  bottom: 10%;
  left: 0;
  animation-delay: 1s;
}

/* Vertical lines */
.line.vertical {
  width: 1px;
  height: 0;
  animation: slideVertical 10s ease-in-out infinite;
}

.line-6 {
  left: 20%;
  top: 0;
  animation-delay: 1s;
}

.line-7 {
  right: 25%;
  bottom: 0;
  animation-delay: 3s;
  animation-direction: reverse;
}

.line-8 {
  left: 60%;
  top: 0;
  animation-delay: 5s;
}

.line-9 {
  right: 10%;
  bottom: 0;
  animation-delay: 7s;
  animation-direction: reverse;
}

/* Diagonal lines */
.line.diagonal {
  width: 1px;
  height: 0;
  animation: slideDiagonal 12s ease-in-out infinite;
  transform-origin: bottom;
}

.line-10 {
  left: 10%;
  bottom: 10%;
  transform: rotate(45deg);
  animation-delay: 0.5s;
}

.line-11 {
  right: 15%;
  top: 20%;
  transform: rotate(-45deg);
  animation-delay: 2.5s;
}

.line-12 {
  left: 70%;
  bottom: 30%;
  transform: rotate(30deg);
  animation-delay: 4.5s;
}

.line-13 {
  right: 40%;
  top: 10%;
  transform: rotate(-60deg);
  animation-delay: 6.5s;
}

.line-14 {
  left: 30%;
  top: 60%;
  transform: rotate(60deg);
  animation-delay: 8.5s;
}

.line-15 {
  right: 60%;
  bottom: 20%;
  transform: rotate(-30deg);
  animation-delay: 10.5s;
}

@keyframes slideHorizontal {
  0%,
  20% {
    width: 0;
    opacity: 0;
  }
  30%,
  70% {
    width: 100%;
    opacity: 0.4;
  }
  80%,
  100% {
    width: 100%;
    opacity: 0;
  }
}

@keyframes slideVertical {
  0%,
  20% {
    height: 0;
    opacity: 0;
  }
  30%,
  70% {
    height: 100%;
    opacity: 0.4;
  }
  80%,
  100% {
    height: 100%;
    opacity: 0;
  }
}

@keyframes slideDiagonal {
  0%,
  20% {
    height: 0;
    opacity: 0;
  }
  30%,
  70% {
    height: 200px;
    opacity: 0.3;
  }
  80%,
  100% {
    height: 200px;
    opacity: 0;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
  color: #f8fafc;
  overflow: hidden;
  padding: 2rem 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 0 2rem 0; /* Увеличиваем верхний отступ с 4rem до 8rem */
}

.hero-badge {
  display: inline-block;
  background: rgba(107, 114, 128, 0.1);
  border: 1px solid rgba(156, 163, 175, 0.3);
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
  backdrop-filter: blur(10px);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(156, 163, 175, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(156, 163, 175, 0);
  }
}

.badge-text {
  color: #d1d5db;
  font-weight: 500;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
  animation: fadeInUp 1s ease-out;
}

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

.gradient-text {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  background-size: 200% 200%;
}

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

.hero-description {
  font-size: 1.25rem;
  color: #9ca3af;
  margin-bottom: 2rem;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(156, 163, 175, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(156, 163, 175, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #9ca3af;
  font-size: 0.9rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s both;
  margin-bottom: 3rem;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  color: #0a0a0a;
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(107, 114, 128, 0.4);
}

.btn-center {
  margin: 0 auto;
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 3;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid #9ca3af;
  border-bottom: 2px solid #9ca3af;
  transform: rotate(45deg);
}

/* Seamless section transitions */
.key-metrics,
.investment-focus,
.why-choose-us,
.cta-section,
.portfolio-section,
.team-section {
  position: relative;
  overflow: hidden;
}

.key-metrics::before,
.investment-focus::before,
.why-choose-us::before,
.cta-section::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(26, 26, 26, 0.5));
  pointer-events: none;
}

/* Key Metrics Section */
.key-metrics {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  color: #f8fafc;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.metric-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(156, 163, 175, 0.2);
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.metric-card:hover {
  transform: translateY(-10px);
  background: rgba(156, 163, 175, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.metric-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.metric-icon i {
  font-size: 1.5rem;
  color: #0a0a0a;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.metric-sublabel {
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Investment Focus Section */
.investment-focus {
  padding: 6rem 0;
  background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
  color: #f8fafc;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.focus-card-center {
  grid-column: 2 / 3;
}

@media (max-width: 1200px) {
  .focus-card-center {
    grid-column: auto;
  }
}

.focus-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(156, 163, 175, 0.2);
  backdrop-filter: blur(10px);
}

.focus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background: rgba(156, 163, 175, 0.1);
}

.focus-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.focus-icon i {
  font-size: 1.5rem;
  color: #0a0a0a;
}

.focus-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 1rem;
}

.focus-card p {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.focus-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(156, 163, 175, 0.2);
  color: #e2e8f0;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

/* Why Choose Us Section */
.why-choose-us {
  padding: 6rem 0;
  background: linear-gradient(135deg, #3a3a3a, #4a4a4a);
  color: #f8fafc;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.feature-card-center {
  grid-column: 2 / 3;
}

@media (max-width: 1200px) {
  .feature-card-center {
    grid-column: auto;
  }
}

.feature-card {
  text-align: center;
  padding: 2.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(156, 163, 175, 0.2);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  background: rgba(156, 163, 175, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 2rem;
  color: #0a0a0a;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #cbd5e1;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #4a4a4a, #5a5a5a);
  color: #f8fafc;
  text-align: center;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Team Section */
.team-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
  color: #f8fafc;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.25rem;
  color: #e2e8f0;
  max-width: 700px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
  z-index: 2;
}

.team-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(156, 163, 175, 0.2);
  backdrop-filter: blur(10px);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.team-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card:hover .member-photo {
  transform: scale(1.1);
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.8), rgba(156, 163, 175, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: #f8fafc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.1);
}

.team-info {
  padding: 2rem;
}

.team-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.team-role {
  color: #d1d5db;
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-bio {
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.team-expertise {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.expertise-tag {
  background: rgba(156, 163, 175, 0.2);
  color: #e2e8f0;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

/* Portfolio Section */
.portfolio-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
  color: #f8fafc;
}

.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  position: relative;
  z-index: 2;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(156, 163, 175, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  color: #cbd5e1;
  font-weight: 500;
}

.portfolio-filter {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 3rem 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid rgba(156, 163, 175, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  color: #0a0a0a;
  border-color: #9ca3af;
  transform: translateY(-2px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.portfolio-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(156, 163, 175, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-logo {
  margin-bottom: 1.5rem;
}

.company-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.portfolio-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.portfolio-category {
  color: #d1d5db;
  font-weight: 600;
  margin-bottom: 1rem;
}

.portfolio-description {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.portfolio-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.portfolio-metrics {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(156, 163, 175, 0.2);
}

.metric {
  text-align: left;
  flex: 1;
}

.metric:last-child {
  text-align: right;
}

.metric-label {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
  display: block;
}

.metric-value,
.metric-value-text {
  font-weight: 700;
  color: #f8fafc;
  display: block;
}

/* Legal Pages */
.legal-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(156, 163, 175, 0.2);
  position: relative;
  z-index: 2;
}

.legal-title {
  font-size: 3rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 1rem;
  border-bottom: 2px solid #9ca3af;
  padding-bottom: 0.5rem;
}

.legal-date {
  color: #9ca3af;
  font-style: italic;
  margin-bottom: 2rem;
}

.legal-text {
  line-height: 1.8;
  color: #e2e8f0;
}

.legal-section-content {
  margin-bottom: 2.5rem;
}

.legal-section-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 1rem;
  border-bottom: 2px solid #9ca3af;
  padding-bottom: 0.5rem;
}

.legal-section-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 1.5rem 0 0.75rem 0;
}

.legal-section-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.legal-section-content li {
  margin-bottom: 0.5rem;
}

.legal-section-content strong {
  color: #f8fafc;
  font-weight: 600;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  color: #f8fafc;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: #9ca3af;
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-column h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #f8fafc;
}

.footer-column a {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #d1d5db;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(156, 163, 175, 0.2);
}

.footer-copyright {
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(107, 114, 128, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(156, 163, 175, 0.2);
}

.social-link:hover {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  color: #0a0a0a;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding: 1rem 0;
  }

  .hero-content {
    padding: 6rem 0 1rem 0; /* Увеличиваем верхний отступ для мобильных с 3rem до 6rem */
  }

  .hero-badge {
    padding: 0.4rem 1.2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
  }

  .scroll-indicator {
    bottom: 1.5rem;
  }

  .nav-menu {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .legal-content {
    padding: 2rem;
  }

  .legal-title {
    font-size: 2rem;
  }

  .portfolio-metrics {
    flex-direction: column;
    gap: 1rem;
  }

  .metric:last-child {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 100vh;
    padding: 0.5rem 0;
  }

  .hero-content {
    padding: 5rem 0 0.5rem 0; /* Увеличиваем верхний отступ для маленьких экранов с 2.5rem до 5rem */
  }

  .hero-badge {
    padding: 0.3rem 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    padding: 0 0.5rem;
  }

  .hero-stats {
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding: 0.8rem 0;
  }

  .stat-item {
    padding: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .hero-buttons {
    margin-bottom: 3rem;
  }

  .scroll-indicator {
    bottom: 1rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  .btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .hero-badge {
    padding: 0.25rem 0.8rem;
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* Animation Classes */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="zoom-in"] {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease;
}

[data-aos="zoom-in"].aos-animate {
  opacity: 1;
  transform: scale(1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #6b7280;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Hero Section Lines */
.hero .line {
  background: linear-gradient(45deg, rgba(156, 163, 175, 0.4), rgba(229, 231, 235, 0.3));
  opacity: 0.5;
  box-shadow: 0 0 8px rgba(156, 163, 175, 0.2);
}

/* Mobile - hide or reduce lines visibility */
@media (max-width: 768px) {
  .line {
    opacity: 0.2;
    box-shadow: none;
  }

  .hero .line {
    opacity: 0.3;
    box-shadow: none;
  }

  @keyframes slideHorizontal {
    0%,
    20% {
      width: 0;
      opacity: 0;
    }
    30%,
    70% {
      width: 100%;
      opacity: 0.2;
    }
    80%,
    100% {
      width: 100%;
      opacity: 0;
    }
  }

  @keyframes slideVertical {
    0%,
    20% {
      height: 0;
      opacity: 0;
    }
    30%,
    70% {
      height: 100%;
      opacity: 0.2;
    }
    80%,
    100% {
      height: 100%;
      opacity: 0;
    }
  }

  @keyframes slideDiagonal {
    0%,
    20% {
      height: 0;
      opacity: 0;
    }
    30%,
    70% {
      height: 200px;
      opacity: 0.15;
    }
    80%,
    100% {
      height: 200px;
      opacity: 0;
    }
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 100vh;
    padding: 2rem 0;
  }

  .hero-content {
    padding: 2rem 0;
  }

  .hero-buttons {
    margin-bottom: 8rem; /* Еще больше отступ для очень маленьких экранов */
  }

  .scroll-indicator {
    bottom: 4rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  .btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
  }
}
