/*GOOGLE FONTS*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');


/*RESET&BASE*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


:root {
  /* Backgrounds - глубокие, профессиональные */
  --bg-dark: #0B0D17;
  --bg-surface: #12141F;
  --bg-card: rgba(18, 20, 31, 0.6);
  --glass-bg: rgba(20, 25, 40, 0.4);
  --glass-border: rgba(255, 255, 255, 0.06);
  
  /* Text - высокий контраст */
  --text-primary: #F8F9FA;
  --text-secondary: rgba(248, 249, 250, 0.65);
  --text-tertiary: rgba(248, 249, 250, 0.4);
  
  /* Accent - серьёзный синий вместо фиолетового */
  --accent-primary: #2563EB;
  --accent-secondary: #1D4ED8;
  --accent-light: #3B82F6;
  
  /* Gradients - технологичные, не игрушечные */
  --gradient-primary: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  --gradient-accent: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(29, 78, 216, 0.05) 100%);
  
  /* Shadows - глубже и серьёзнее */
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-accent: 0 8px 32px rgba(37, 99, 235, 0.25);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}


* {
  scroll-margin-top: 80px;
}


body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}


/* Новый премиум фон - статичный, без сетки */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 1400px 1000px at 20% 25%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 1200px 900px at 80% 70%, rgba(29, 78, 216, 0.04) 0%, transparent 55%),
    radial-gradient(circle 600px at 50% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
  z-index: -2;
  pointer-events: none;
}

/* Виньетка по краям */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
  z-index: -1;
  pointer-events: none;
}


/*HEADER*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  backdrop-filter: blur(12px) saturate(150%);
  background: rgba(11, 13, 23, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav a:hover {
  color: var(--text-primary);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-highlight {
  color: var(--text-primary) !important;
  background: var(--glass-bg);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.nav-highlight::after {
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: none;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.burger-menu {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.burger-menu.active {
  display: flex;
}

.burger-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.125rem;
  padding: 0.75rem 0;
  transition: var(--transition);
}

.burger-menu a:hover {
  color: var(--text-primary);
}

.menu-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 0.5rem 0;
}

/*HERO*/
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: visible;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 0;
  align-items: center;
  position: relative;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.title-main {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.title-gradient {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1.2rem 2.5rem;
  border-radius: 15px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  border: none;
}

/*БЕЛАЯ КНОПКА*/
.btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
  padding: 1.3rem 3rem;
  position: relative;
  overflow: hidden;
  font-weight: 600;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: visible;
}

.hero-main-visual {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-main-visual img {
  position: relative;
  right: -36%;
  top: -350px;
  width: 140%;
  height: auto;
  object-fit: contain;
  transform: rotate(-50deg);
  filter: drop-shadow(0 0 80px rgba(102, 126, 234, 0.35));
  transition: transform 0.4s ease, right 0.4s ease, top 0.4s ease;
}

/*FEATURES*/
.features {
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/*КАРТОЧКИ С ФОНОМ*/
.feature-card {
  position: relative;
  background: rgba(18, 20, 31, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 13, 23, 0.92) 0%, rgba(18, 20, 31, 0.88) 100%);
  z-index: 1;
  transition: var(--transition);
}

.feature-card:hover::before {
  background: linear-gradient(135deg, rgba(11, 13, 23, 0.82) 0%, rgba(18, 20, 31, 0.78) 100%);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(37, 99, 235, 0.15);
}

/* УДАЛИ ПОЛНОСТЬЮ .feature-overlay {} */

.feature-card:hover .feature-overlay {
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.75) 0%, rgba(10, 10, 15, 0.65) 100%);
}

/*Контент поверх overlay*/
.feature-content {
  position: relative;
  z-index: 2;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.3));
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/*STATS*/
.stats {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}


.stat-item {
  text-align: center;
  padding: 2.5rem;
  position: relative;
  background: transparent;
  transition: var(--transition);
  border: none;
  border-radius: 0;
}

/* Градиентный borer-bottom вместо квадрата */
.stat-item::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.stat-item:hover::after {
  width: 100%;
}

/* Топ-линия с эффектом */
.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-item:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
}


.stat-number {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}


.stat-label {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/*CTA*/
.cta {
  padding: 8rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/*CTA с фоном*/
.cta-content {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 4rem 3rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background-size: 40%;
  background-position: right center;
  background-repeat: no-repeat;
}

/*Лёгкое затемнение*/
.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.25);
  z-index: 1;
}

/*Мягкая оранжевая обводка вокруг робота справа*/
.cta-content::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 35%;
  transform: translateY(-50%);
  width: 45%;
  height: 75%;
  background: radial-gradient(
    ellipse,
    rgba(255, 140, 0, 0.12) 0%,
    rgba(255, 165, 0, 0.08) 30%,
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
  filter: blur(70px);
}

/*Контент поверх overlay*/
.cta-inner {
  position: relative;
  z-index: 2;
}

.cta-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 2rem;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 8px 12px rgba(102, 126, 234, 0.4));
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.cta-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button-wrapper {
  display: flex;
  justify-content: center;
}

/*БЕЛАЯ КНОПКА*/
.btn-cta {
  background: #ffffff;
  color: #0a0a0f;
  font-size: 1.125rem;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
  padding: 1.5rem 3.5rem;
}

.btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(255, 255, 255, 0.3);
  background: #f5f5f5;
}

.btn-icon {
  width: 35px;
  height: 35px;
}

/*FOOTER*/
.footer {
  position: relative;
  padding: 4rem 2rem 0;
  margin: 0 auto;
  border-top: 1px solid var(--glass-border);
  overflow: hidden;
  z-index: 2;
  width: 100%;
}

.footer-metal {
  position: absolute;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  z-index: 0;
  pointer-events: none;
}

.footer-metal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.7) saturate(1.3) drop-shadow(0 0 80px rgba(102, 126, 234, 0.4));
  animation: metalFloat 6s ease-in-out infinite;
}

@keyframes metalFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-tagline {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column h3,
.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.footer-bottom {
  padding: 1rem 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  position: relative;
  z-index: 2;
  background: var(--bg-dark);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.footer-bottom p {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/*LANGUAGE SWITCHER*/
.language-switcher {
  position: relative;
  margin-left: 1.5rem;
  z-index: 100;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.globe-icon {
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
  min-width: 20px;
  min-height: 20px;
}

.current-lang {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: rgba(15, 15, 20, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  text-align: left;
  font-family: inherit;
  white-space: nowrap;
}

.lang-option:hover {
  background: rgba(102, 126, 234, 0.15);
  color: #fff;
  transform: translateX(4px);
}

.lang-option.selected {
  background: rgba(102, 126, 234, 0.25);
  color: #667eea;
  font-weight: 600;
  pointer-events: none;
}

.lang-option.selected::after {
  content: "✓";
  margin-left: auto;
  font-size: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/*EFFECTS*/
@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/*SCROLLBAR/SELECTION*/
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

::selection {
  background: rgba(102, 126, 234, 0.3);
  color: var(--text-primary);
}

::-moz-selection {
  background: rgba(102, 126, 234, 0.3);
  color: var(--text-primary);
}
/* ===== TECHNOLOGIES ===== */
.technologies {
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.technologies-container {
  max-width: 1200px;
  margin: 0 auto;
}

.tech-header {
  text-align: center;
  margin-bottom: 5rem;
}

.tech-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.tech-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Карточки технологий */
.tech-card {
  position: relative;
  padding: 0;
  background: transparent;
  border: none;
}

.tech-card-inner {
  position: relative;
  padding: 2.5rem;
  border-left: 2px solid var(--accent-purple);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Фоновый блик при hover */
.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, transparent 30%);
  border-left: 2px solid rgba(102, 126, 234, 0);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.tech-card:hover::before {
  opacity: 1;
  border-left: 2px solid rgba(102, 126, 234, 0.3);
}

.tech-card:hover .tech-card-inner {
  border-left: 2px solid var(--gradient-primary);
  padding-left: 3rem;
}

/* Иконка */
.tech-icon-box {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.tech-icon-box i {
  font-size: 1.75rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tech-card:hover .tech-icon-box {
  background: rgba(102, 126, 234, 0.2);
  transform: scale(1.1);
}

/* Заголовок карточки */
.tech-card-title {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Текст карточки */
.tech-card-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Нижняя линия-индикатор */
.tech-card-line {
  width: 40px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width 0.4s ease;
}

.tech-card:hover .tech-card-line {
  width: 100%;
}

/* --- ЗАМЕНИТЬ ТЕКУЩИЙ БЛОК @media (max-width: 900px) --- */

@media (max-width: 900px) {
  .hero {
    padding-top: 6rem; /* Чуть меньше отступ сверху */
    min-height: auto; /* Убираем фиксацию высоты */
  }

  .hero-content {
    grid-template-columns: 1fr; /* Одна колонка */
    gap: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column-reverse; /* Сначала текст, потом картинка (или наоборот, уберите reverse если хотите картинку сверху) */
  }

  .hero-text {
    max-width: 100%;
    padding: 0 1rem;
  }

  .hero-buttons {
    justify-content: center; /* Центрируем кнопки */
  }

  .hero-visual {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    margin-top: 0;
  }

  .hero-main-visual {
    width: 80%; 
    max-width: 400px;
    height: auto;
  }

  
  .hero-main-visual img {
    position: static; 
    right: auto;
    top: auto;
    width: 100%;
    height: auto;
    transform: rotate(-10deg); 
    filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.25));
  }
}
/* ===== ПОЛНАЯ АДАПТИВНОСТЬ ===== */

/* ----- ПЛАНШЕТЫ (768px - 1024px) ----- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-main-visual img {
    right: 0;
    top: -150px;
    width: 100%;
    transform: rotate(-30deg);
  }
  
  .section-title,
  .tech-title {
    font-size: 2.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----- МОБИЛЬНЫЕ УСТРОЙСТВА (до 768px) ----- */
@media (max-width: 768px) {
  /* HEADER - показываем бургер, скрываем навигацию */
  .nav {
    display: none;
  }
  
  .burger {
    display: flex;
  }
  
  .header-content {
    padding: 0 1rem;
  }
  
  .language-switcher {
    margin-left: 0.5rem;
  }
  
  .lang-toggle {
    padding: 6px 10px;
  }
  
  .current-lang {
    display: none; /* Скрываем текст, оставляем иконку */
  }
  
  /* HERO */
  .hero {
    padding: 6rem 0 3rem;
    min-height: auto;
  }
  
  .hero-content {
    padding: 0 1rem;
    text-align: center;
  }
  
  .title-main {
    font-size: 2.5rem;
  }
  
  .title-gradient {
    font-size: 1.75rem;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }
  
  .hero-visual {
    order: -1; /* Картинка сверху на мобильных */
  }
  
  .hero-main-visual {
    width: 70%;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .hero-main-visual img {
    position: static;
    right: auto;
    top: auto;
    width: 100%;
    transform: rotate(-15deg);
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.2));
  }
  
  /* SECTIONS */
  .features,
  .technologies,
  .stats,
  .cta {
    padding: 4rem 1rem;
  }
  
  .section-title,
  .tech-title {
    font-size: 2rem;
  }
  
  .section-subtitle,
  .tech-subtitle {
    font-size: 1rem;
  }
  
  /* FEATURES GRID */
  .features-grid,
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  /* STATS */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .stat-item {
    padding: 1.5rem 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.875rem;
  }
  
  /* CTA */
  .cta-content {
    padding: 2.5rem 1.5rem;
    background-size: cover;
    background-position: center;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
  
  .cta-description {
    font-size: 1rem;
  }
  
  .btn-cta {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  /* FOOTER */
  .footer {
    padding: 3rem 1rem 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer-left {
    text-align: center;
    align-items: center;
  }
  
  .footer-metal {
    width: 300px;
    height: 300px;
    bottom: -150px;
  }
  
  /* TECH CARDS */
  .tech-card-inner {
    padding: 1.5rem;
  }
  
  .tech-card:hover .tech-card-inner {
    padding-left: 1.5rem;
  }
}

/* ----- МАЛЕНЬКИЕ МОБИЛЬНЫЕ (до 480px) ----- */
@media (max-width: 480px) {
  .header {
    padding: 0.75rem 0;
  }
  
  .logo-text {
    font-size: 1rem;
  }
  
  .logo-icon {
    width: 28px;
    height: 28px;
  }
  
  .title-main {
    font-size: 2rem;
  }
  
  .title-gradient {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 0.9375rem;
  }
  
  .hero-main-visual {
    width: 60%;
    max-width: 220px;
  }
  
  .section-title,
  .tech-title {
    font-size: 1.75rem;
  }
  
  /* Stats - 2x2 сетка */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  /* Footer - одна колонка */
  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-column {
    align-items: center;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
  
  /* Burger menu */
  .burger-menu {
    top: 60px;
    padding: 1rem;
  }
  
  .burger-menu a {
    font-size: 1rem;
    padding: 0.625rem 0;
  }
}

/* ----- ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 360px) ----- */
@media (max-width: 360px) {
  .title-main {
    font-size: 1.75rem;
  }
  
  .title-gradient {
    font-size: 1.25rem;
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .feature-card,
  .tech-card-inner {
    padding: 1.25rem;
  }
}

/* ----- ЛАНДШАФТНАЯ ОРИЕНТАЦИЯ МОБИЛЬНЫХ ----- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 5rem 0 2rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-visual {
    order: 0;
  }
  
  .hero-main-visual {
    max-width: 200px;
  }
}
/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ HERO ===== */

/* Начальное состояние — невидимо */
.hero-text {
  opacity: 0;
}

.title-main {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

.title-gradient {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

.hero-description {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.9s;
}

.hero-buttons {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 1.0s;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Сам hero-text делаем видимым */
.hero-text {
  opacity: 1;
}

/* Анимация */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- БОЛЬШИЕ ЭКРАНЫ (1400px+) ----- */
@media (min-width: 1400px) {
  .hero-main-visual img {
    right: -48%;
    top: -340px;
    width: 130%;
  }
}


/* ----- ФИКС: Header Actions контейнер ----- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cta-bg {
  background-image: url('/img/backgrounds/cta-bg.webp');
  background-size: 40%;
  background-position: right center;
  background-repeat: no-repeat;
}


@media (max-width: 768px) {
  .cta-bg {
    background-size: 60%;
    background-position: right bottom;
  }
}

@media (max-width: 480px) {
  .cta-bg {
    background-size: 80%;
    background-position: center bottom;
    padding-bottom: 200px; /* Место для картинки снизу */
  }
}
/* Скрыть hero-картинку на мобильных и планшетах */
@media (max-width: 1024px) {
  .hero-visual {
    display: none;
  }
  
  /* Центрируем текст когда картинки нет */
  .hero-content {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  
  .hero-text {
    text-align: center;
    max-width: 600px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}