/* Базовые сбросы и переменные */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: 
    radial-gradient(circle at 20% 30%, rgba(95, 42, 122, 0.8) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(61, 27, 90, 0.7) 0%, transparent 40%),
    radial-gradient(circle at 40% 80%, rgba(30, 16, 53, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 70% 20%, rgba(123, 60, 255, 0.5) 0%, transparent 35%),
    radial-gradient(circle at 90% 40%, rgba(11, 6, 22, 0.9) 0%, transparent 60%),
    #0b0616;
  color: white;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Доступность */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
textarea:focus-visible {
  outline: 2px solid #a07eff;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Типографика */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: white;
}

h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.section h2 {
  color: white;
}

.nox-highlight {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: white;
}

/* Шапка с эффектом стекла */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 60px;
  background: rgba(11, 6, 22, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-img {
  max-width: 150px;
  height: auto;
  display: block;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #c9b6ff;
  transition: color 0.2s;
}

nav a:hover {
  color: #a07eff;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c9b6ff;
  font-size: 14px;
  white-space: nowrap;
}

.contact-item i {
  font-size: 16px;
  color: #7b3cff;
}

/* Кнопки */
.btn {
  background: #7b3cff;
  padding: 10px 24px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: #945eff;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #3a2a7c;
}

.btn-secondary:hover {
  background: #4f3aa3;
}

.hero,
.section {
  scroll-margin-top: 80px;
  position: relative;
  z-index: 1;
}

.hero::before,
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    transparent 20%,
    transparent 80%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
  z-index: -1;
}

/* Hero секция */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 80px 60px;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 540px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #e0d4ff;
  margin-bottom: 30px;
  line-height: 1.6;
}

@keyframes hologramFloat {
  0%, 100% { 
    transform: translateY(0px); 
    filter: drop-shadow(0 10px 20px rgba(123, 60, 255, 0.5)); 
    opacity: 1; 
  }
  50% { 
    transform: translateY(-15px); 
    filter: drop-shadow(0 20px 30px rgba(123, 60, 255, 0.7)); 
    opacity: 1; 
  }
  90% { transform: translateY(-2px) skewX(0deg); opacity: 1; }
  91% { transform: translateY(-2px) skewX(-5deg); opacity: 0.8; filter: drop-shadow(0 0 40px rgba(123, 60, 255, 1)); }
  92% { transform: translateY(-2px) skewX(5deg); opacity: 0.9; }
  93% { transform: translateY(-2px) skewX(0deg); opacity: 1; }
}

.hero img {
  max-width: 540px;
  width: 100%;
  height: auto;
  animation: hologramFloat 6s linear infinite; 
}

.hero-buttons {
  margin-top: 30px;
}

.hero-buttons .btn {
  margin-right: 15px;
}

.hero-buttons .btn:last-child {
  margin-right: 0;
}

.section {
  padding: 80px 60px;
  text-align: center;
}

.two-col {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-top: 40px;
}

.two-col__text {
  flex: 1;
}

.two-col__image {
  flex: 1;
  text-align: center;
  perspective: 1000px;
}

.two-col__image img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
  transform-style: preserve-3d;
}

.two-col__image:hover img {
  transform: translateY(-10px) rotateX(4deg) rotateY(-4deg) scale(1.02); 
  box-shadow: -15px 15px 35px rgba(0, 0, 0, 0.6), 10px -10px 25px rgba(123, 60, 255, 0.3);
}

.features-list {
  list-style: none;
  text-align: left;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #e0d4ff;
}

.features-list li {
  padding: 15px 15px 15px 35px;
  position: relative;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid transparent;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.features-list li::before {
  content: '•';
  color: #7b3cff;
  position: absolute;
  left: 12px;
  top: 15px;
  font-size: 1.5rem;
  line-height: 1.6;
  transition: transform 0.3s ease, color 0.3s ease;
}

.features-list li:last-child {
  margin-bottom: 0;
}

.features-list li:hover {
  transform: translateX(8px);
  background: rgba(123, 60, 255, 0.05);
  border-color: rgba(123, 60, 255, 0.1);
  box-shadow: inset 4px 0 0 #7b3cff;
}

.features-list li:hover::before {
  color: #b19eff;
  transform: scale(1.3);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
  list-style: none;
}

.card {
  background: #140b26;
  padding: 30px;
  border-radius: 14px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(123, 60, 255, 0.1);
  position: relative;
  overflow: hidden; 
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(123, 60, 255, 0.15);
  border-color: rgba(123, 60, 255, 0.3);
}

.card:hover::after {
  animation: shine 1.2s ease-out forwards;
}

@keyframes shine {
  0% { left: -150%; }
  100% { left: 200%; }
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.card p {
  color: #c9b6ff;
  margin-bottom: 10px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Стили для партнёрского сообщения (секция контактов) */
.partner-message h3 {
  font-size: 28px;
  margin-bottom: 20px;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, #fff, #c9b6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.partner-message p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #e0d4ff;
  margin-bottom: 30px;
}

.partner-contacts {
  margin-top: 30px;
  border-top: 1px solid rgba(123, 60, 255, 0.3);
  padding-top: 25px;
}

.partner-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  color: #c9b6ff;
  margin-bottom: 15px;
}

.partner-contact-item i {
  font-size: 1.3rem;
  color: #7b3cff;
  width: 30px;
  text-align: center;
}

.partner-contact-item span {
  font-weight: 500;
}

footer {
  padding: 40px;
  background: #070311;
  color: #8e7bd6;
  text-align: center;
  position: relative;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0 10px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #b19eff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 6, 22, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 20px;
  z-index: 99;
  border-top: 1px solid rgba(123, 60, 255, 0.2);
  text-align: center;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.sticky-cta .btn {
  width: 100%;
  margin: 0;
  font-size: 16px;
  padding: 14px;
  box-shadow: 0 4px 15px rgba(123, 60, 255, 0.4);
}

/* Переключатель языков */
.lang-switcher {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 12px;
  border-radius: 40px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(123, 60, 255, 0.3);
}

.lang-btn {
  background: transparent;
  border: none;
  color: #c9b6ff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: rgba(123, 60, 255, 0.2);
  color: white;
}

.lang-btn.active {
  background: #7b3cff;
  color: white;
  box-shadow: 0 2px 8px rgba(123, 60, 255, 0.4);
}

#contact .two-col__text {
  flex: 1;
  text-align: left;
}

.partner-contact-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #c9b6ff;
  transition: color 0.2s ease;
}

.partner-contact-item a:hover {
  color: #a07eff;
  text-decoration: underline;
}

/* Чтобы сохранить единый стиль для иконки внутри ссылки */
.partner-contact-item a i {
  color: #7b3cff;
  transition: color 0.2s ease;
}

.partner-contact-item a:hover i {
  color: #b19eff;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .hero, .section {
    padding: 60px 40px;
  }
  .header-contacts {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 10px 20px;
    flex-wrap: wrap;
  }
  .logo-img {
    max-width: 120px;
  }
  nav {
    order: 2;
    width: 100%;
    margin: 10px 0;
    text-align: center;
  }
  nav a {
    margin: 0 8px;
  }
  .header-contacts {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 12px;
  }
  .lang-switcher {
    order: 1;
    margin-right: 0;
  }
  .lang-btn {
    padding: 4px 10px;
    font-size: 12px;
  }
  .contact-item {
    font-size: 13px;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    gap: 30px;
  }
  h1 {
    font-size: 32px;
  }
  h2 {
    font-size: 28px;
  }
  .section {
    padding: 40px 20px;
  }
  .hero,
  .section {
    scroll-margin-top: 70px;
  }
  .two-col {
    flex-direction: column;
    gap: 30px;
  }
  .two-col__image:hover img {
    transform: translateY(-5px);
  }
  .features-list li:hover {
    transform: none;
  }
  .features-list {
    font-size: 1rem;
    text-align: left;
  }
  .partner-message h3 {
    font-size: 24px;
  }
  .partner-message p {
    font-size: 1rem;
  }
  .partner-contact-item {
    font-size: 0.95rem;
  }
  .hero-buttons .btn {
    margin-right: 10px;
    margin-bottom: 10px;
  }
  .sticky-cta {
    display: block;
  }
  footer {
    padding-bottom: 90px;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 8px 18px;
    font-size: 14px;
  }
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-right: 0;
  }
  .contact-item {
    white-space: normal;
    font-size: 12px;
  }
  .hero,
  .section {
    scroll-margin-top: 100px;
  }
  .partner-message h3 {
    font-size: 22px;
  }
}